File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/unit-test/org/hamcrest/generator/config Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 18
18
public class XmlConfiguratorTest extends TestCase {
19
19
20
20
private MockSugarConfiguration sugarConfiguration ;
21
- private StubClassLoader classLoader ;
22
21
private XmlConfigurator config ;
23
22
24
23
protected void setUp () throws Exception {
25
24
super .setUp ();
26
25
sugarConfiguration = new MockSugarConfiguration ();
27
- classLoader = new StubClassLoader ();
28
- config = new XmlConfigurator (sugarConfiguration , classLoader );
26
+ config = new XmlConfigurator (sugarConfiguration , getClass ().getClassLoader ());
29
27
}
30
28
31
29
public void testAddsMatcherFactoryMethodsToConfiguration () throws Exception {
@@ -96,10 +94,4 @@ public List<FactoryMethod> factoryMethods() {
96
94
}
97
95
}
98
96
99
- private static class StubClassLoader extends ClassLoader {
100
- public Class <?> loadClass (String name ) throws ClassNotFoundException {
101
- return super .loadClass (name );
102
- }
103
- }
104
-
105
97
}
You can’t perform that action at this time.
0 commit comments