File tree Expand file tree Collapse file tree
src/unit-test/org/hamcrest/generator/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818public class XmlConfiguratorTest extends TestCase {
1919
2020 private MockSugarConfiguration sugarConfiguration ;
21- private StubClassLoader classLoader ;
2221 private XmlConfigurator config ;
2322
2423 protected void setUp () throws Exception {
2524 super .setUp ();
2625 sugarConfiguration = new MockSugarConfiguration ();
27- classLoader = new StubClassLoader ();
28- config = new XmlConfigurator (sugarConfiguration , classLoader );
26+ config = new XmlConfigurator (sugarConfiguration , getClass ().getClassLoader ());
2927 }
3028
3129 public void testAddsMatcherFactoryMethodsToConfiguration () throws Exception {
@@ -96,10 +94,4 @@ public List<FactoryMethod> factoryMethods() {
9694 }
9795 }
9896
99- private static class StubClassLoader extends ClassLoader {
100- public Class <?> loadClass (String name ) throws ClassNotFoundException {
101- return super .loadClass (name );
102- }
103- }
104-
10597}
You can’t perform that action at this time.
0 commit comments