View Javadoc

1   package net.sourceforge.pmd.util.database;
2   
3   import javax.xml.transform.Source;
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 ResourceResolverTest extends TestCase {
13    
14    public ResourceResolverTest(String testName) {
15      super(testName);
16    }
17  
18    public static Test suite() {
19      TestSuite suite = new TestSuite(ResourceResolverTest.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 resolve method, of class ResourceResolver.
35     */
36    public void testResolve() throws Exception {
37      System.out.println("resolve");
38      String href = "";
39      String base = "";
40      ResourceResolver instance = new ResourceResolver();
41      Source expResult = null;
42      Source result = instance.resolve(href, base);
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  }