Package nodebox.node

Examples of nodebox.node.NodeRepository


    private static final NodeLibrary mathLibrary = NodeLibrary.load(new File("libraries/math/math.ndbx"), NodeRepository.of());
    private static final NodeLibrary stringLibrary = NodeLibrary.load(new File("libraries/string/string.ndbx"), NodeRepository.of());

    @Test
    public void testGetFunctionRepository() {
        NodeRepository nodeRepository = NodeRepository.of(mathLibrary, stringLibrary);
        FunctionRepository functionRepository = nodeRepository.getFunctionRepository();
        assertTrue(functionRepository.hasLibrary("math"));
        assertTrue(functionRepository.hasLibrary("string"));
    }
View Full Code Here

TOP

Related Classes of nodebox.node.NodeRepository

Copyright © 2018 www.massapicom. 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.