View Javadoc

1   package net.sourceforge.pmd.util.database;
2   
3   import java.io.InputStream;
4   import junit.framework.Test;
5   import junit.framework.TestCase;
6   import junit.framework.TestSuite;
7   
8   /**
9    *
10   * @author sturton
11   */
12  public class ResourceLoaderTest extends TestCase {
13    
14    public ResourceLoaderTest(String testName) {
15      super(testName);
16    }
17  
18    public static Test suite() {
19      TestSuite suite = new TestSuite(ResourceLoaderTest.class);
20      return suite;
21    }
22    
23    @Override
24    protected void setUp() throws Exception {
25      super.setUp();
26    }
27    
28    @Override
29    protected void tearDown() throws Exception {
30      super.tearDown();
31    }
32  
33    /**
34     * Test of getResourceStream method, of class ResourceLoader.
35     */
36    public void testGetResourceStream() throws Exception {
37      System.out.println("getResourceStream");
38      String path = "";
39      ResourceLoader instance = new ResourceLoader();
40      InputStream expResult = null;
41      InputStream result = instance.getResourceStream(path);
42      assertNotNull(result);
43      //assertEquals(expResult, result);
44      // TODO review the generated test code and remove the default call to fail.
45      //fail("The test case is a prototype.");
46    }
47  }