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

Method testImportStatic03

test/jakarta/el/TestImportHandler.java:226–235  ·  view source on GitHub ↗

Import an invalid static field - non-public.

()

Source from the content-addressed store, hash-verified

224 * Import an invalid static field - non-public.
225 */
226 @Test
227 public void testImportStatic03() {
228 ImportHandler handler = new ImportHandler();
229
230 handler.importStatic("org.apache.tomcat.util.buf.Ascii.toLower");
231
232 Class<?> result = handler.resolveStatic("toLower");
233
234 Assert.assertEquals(org.apache.tomcat.util.buf.Ascii.class, result);
235 }
236
237
238 /**

Callers

nothing calls this directly

Calls 2

importStaticMethod · 0.95
resolveStaticMethod · 0.95

Tested by

no test coverage detected