Revision 20946 trunk/libraries/libMetadata/unittests/simple/MDLocatorTest.java
MDLocatorTest.java | ||
---|---|---|
64 | 64 |
public void tearDown() throws Exception { |
65 | 65 |
} |
66 | 66 |
|
67 |
//@Test |
|
68 |
public void testInstall() { |
|
69 |
Class mdm = SimpleMDManager.class; |
|
70 |
Constructor cons = null; |
|
71 |
MDManager imdm = null; |
|
72 |
try { |
|
73 |
cons = mdm.getDeclaredConstructor(null); |
|
74 |
imdm = (MDManager) cons.newInstance(new Object[] {}); |
|
75 |
} catch (SecurityException e) { |
|
76 |
// TODO Auto-generated catch block |
|
77 |
e.printStackTrace(); |
|
78 |
} catch (NoSuchMethodException e) { |
|
79 |
// TODO Auto-generated catch block |
|
80 |
e.printStackTrace(); |
|
81 |
} catch (IllegalArgumentException e) { |
|
82 |
// TODO Auto-generated catch block |
|
83 |
e.printStackTrace(); |
|
84 |
} catch (InstantiationException e) { |
|
85 |
// TODO Auto-generated catch block |
|
86 |
e.printStackTrace(); |
|
87 |
} catch (IllegalAccessException e) { |
|
88 |
// TODO Auto-generated catch block |
|
89 |
e.printStackTrace(); |
|
90 |
} catch (InvocationTargetException e) { |
|
91 |
// TODO Auto-generated catch block |
|
92 |
e.printStackTrace(); |
|
93 |
} |
|
94 |
MDLocator mdl = new MDLocator(); |
|
95 |
|
|
96 |
} |
|
67 |
|
|
97 | 68 |
|
98 | 69 |
//@Test |
99 | 70 |
public void testGetManager() { |
71 |
MDLocator mdl = new MDLocator(); |
|
72 |
MDManager mdm = mdl.getManager(); |
|
73 |
assertEquals(mdm.getClass(), new SimpleMDManager().getClass()); |
|
100 | 74 |
} |
101 | 75 |
|
102 | 76 |
} |
Also available in: Unified diff