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

Method testImportStatic01

test/jakarta/el/TestImportHandler.java:200–209  ·  view source on GitHub ↗

Import a valid static field.

()

Source from the content-addressed store, hash-verified

198 * Import a valid static field.
199 */
200 @Test
201 public void testImportStatic01() {
202 ImportHandler handler = new ImportHandler();
203
204 handler.importStatic("org.apache.tomcat.util.scan.Constants.Package");
205
206 Class<?> result = handler.resolveStatic("Package");
207
208 Assert.assertEquals(org.apache.tomcat.util.scan.Constants.class, result);
209 }
210
211
212 /**

Callers

nothing calls this directly

Calls 2

importStaticMethod · 0.95
resolveStaticMethod · 0.95

Tested by

no test coverage detected