Package nodebox.node

Examples of nodebox.node.NodeContext


        assertEquals(expectedResult2, context.renderNode(oscReceiveNode2.withInputValue("args", "x ,y")));
        assertEquals(expectedResult2, context.renderNode(oscReceiveNode2.withInputValue("args", "x,  y")));
    }

    private NodeContext createNodeContextWithData(Map<String, Object> data) {
        return new NodeContext(testLibrary, null, data);
    }
View Full Code Here


    public static void assertResultsEqual(Iterable<?> result, Object... args) {
        assertEquals(ImmutableList.copyOf(args), ImmutableList.copyOf(result));
    }

    public static void assertResultsEqual(Node network, Node child, Object... args) {
        NodeContext context = new NodeContext(testLibrary);
        Iterable<?> values = context.renderChild(network, child);
        assertResultsEqual(values, args);
    }
View Full Code Here

    public static void assertNoResults(Node network, Node child) {
        assertResultsEqual(network, child);
    }

    public static void assertResultsEqual(Node node, Object... args) {
        NodeContext context = new NodeContext(testLibrary);
        Iterable<?> values = context.renderNode(node);
        assertResultsEqual(values, args);
    }
View Full Code Here

TOP

Related Classes of nodebox.node.NodeContext

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.