Mar
2011
Checking out the samples
Before starting to post more code, I would like to to take a minute and show how the actual sample code can be accessed easily. Of course you can always browse it using a web browser, but there are better ways if you want to explore it in more detail (sidenote: the code is currently in my personal repository, but probably it will be moved in a separate repo if this project picks up steam – when this happens this post will be updated).
To cut a long ramble short, here are the commands to get and build the code:
1 2 3 | svn checkout http://hype-free.googlecode.com/svn/trunk/espresso-shots espresso-shots-test cd espresso-shots-test/ ant |
This supposes that you have SVN from the command line (you can also use something like TortoiseSVN or the clients integrated in the IDEs) and a relatively recent version of Ant. The project uses Ivy for dependency management, but it is automatically downloaded at the first build. If you use an IDE, you should install the corresponding Ivy plugin (IvyDE for Eclipse and IvyDEA for IntelliJ).
The code is organized as a series of JUnit testcases, so at the end you should see something like the following:
1 2 3 4 5 6 7 8 9 10 11 12 | ... [junit] Testcase: testSimpleException took 0.122 sec [junit] Testcase: testAugmentedStackTrace took 0.027 sec [junit] Testcase: testAnonymousInnerClass took 0.009 sec [junit] Testsuite: org.transylvania.jug.espresso.shots.d20110221.TestSizeExecutionSpeed [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.713 sec [junit] [junit] Testcase: testNonblockingQueue took 0.588 sec [junit] Testcase: testNavigableSet took 0.124 sec BUILD SUCCESSFUL Total time: 8 seconds |
Pingback: Testing randomly in Java | Transylvania JUG
Pingback: Navigating (Searching) Collections | Transylvania JUG