KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > tests > runner > SimpleTestCollectorTest


1 package junit.tests.runner;
2
3 import junit.framework.TestCase;
4 import junit.runner.SimpleTestCollector;
5
6 public class SimpleTestCollectorTest extends TestCase {
7     
8     public void testMissingDirectory() {
9         SimpleTestCollector collector= new SimpleTestCollector();
10         assertFalse(collector.collectFilesInPath("foobar").elements().hasMoreElements());
11     }
12
13 }
14
15
Popular Tags