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

Method testResolveClass03

test/jakarta/el/TestImportHandler.java:58–73  ·  view source on GitHub ↗

Conflict on resolution.

()

Source from the content-addressed store, hash-verified

56 * Conflict on resolution.
57 */
58 @Test
59 public void testResolveClass03() {
60 ImportHandler handler = new ImportHandler();
61
62 handler.importPackage("org.apache.tomcat.util");
63 handler.importPackage("org.apache.jasper.runtime");
64
65 for (int i = 1; i <= 3; i++) {
66 try {
67 Class<?> clazz = handler.resolveClass("ExceptionUtils");
68 Assert.fail("Expected ELException but got [" + clazz.getName() + "] on iteration " + i);
69 } catch (ELException ex) {
70 // Expected
71 }
72 }
73 }
74
75
76 /**

Callers

nothing calls this directly

Calls 4

importPackageMethod · 0.95
resolveClassMethod · 0.95
failMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected