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

Method testImportClass03

test/jakarta/el/TestImportHandler.java:152–165  ·  view source on GitHub ↗

Import conflicting classes

()

Source from the content-addressed store, hash-verified

150 * Import conflicting classes
151 */
152 @Test
153 public void testImportClass03() {
154 ImportHandler handler = new ImportHandler();
155
156 handler.importClass("org.apache.tomcat.util.ExceptionUtils");
157 for (int i = 1; i <= 3; i++) {
158 try {
159 handler.importClass("org.apache.jasper.util.ExceptionUtils");
160 Assert.fail("Expected ELException but got none on iteration " + i);
161 } catch (ELException ex) {
162 // Expected
163 }
164 }
165 }
166
167
168 /**

Callers

nothing calls this directly

Calls 2

importClassMethod · 0.95
failMethod · 0.80

Tested by

no test coverage detected