Package com.indeed.proctor.common.el

Examples of com.indeed.proctor.common.el.LibraryFunctionMapper.resolveFunction()


    @Test
    public void testConstruction() {
        final Map<String, Class<?>> libraryClasses = Maps.newHashMap();
        libraryClasses.put("tlfm", TestLibraryFunctionMapper.class);
        final LibraryFunctionMapper mapper = new LibraryFunctionMapper(libraryClasses);
        final Method foundMe = mapper.resolveFunction("tlfm", "findMe");
        assertNotNull(foundMe);
        final Method foundMeToo = mapper.resolveFunction("tlfm", "findMeToo");
        assertNotNull(foundMeToo);
    }
}
View Full Code Here


        final Map<String, Class<?>> libraryClasses = Maps.newHashMap();
        libraryClasses.put("tlfm", TestLibraryFunctionMapper.class);
        final LibraryFunctionMapper mapper = new LibraryFunctionMapper(libraryClasses);
        final Method foundMe = mapper.resolveFunction("tlfm", "findMe");
        assertNotNull(foundMe);
        final Method foundMeToo = mapper.resolveFunction("tlfm", "findMeToo");
        assertNotNull(foundMeToo);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.