MCPcopy Create free account
hub / github.com/apache/tomcat / testImportClass04

Method testImportClass04

test/jakarta/el/TestImportHandler.java:171–181  ·  view source on GitHub ↗

Import duplicate classes (i.e. the same class twice).

()

Source from the content-addressed store, hash-verified

169 * Import duplicate classes (i.e. the same class twice).
170 */
171 @Test
172 public void testImportClass04() {
173 ImportHandler handler = new ImportHandler();
174
175 handler.importClass("org.apache.tomcat.util.res.StringManager");
176 handler.importClass("org.apache.tomcat.util.res.StringManager");
177
178 Class<?> result = handler.resolveClass("StringManager");
179
180 Assert.assertEquals(StringManager.class, result);
181 }
182
183
184 /**

Callers

nothing calls this directly

Calls 2

importClassMethod · 0.95
resolveClassMethod · 0.95

Tested by

no test coverage detected