Examples of withInputValue()


Examples of nodebox.node.Node.withInputValue()

                .withInputValue("args", "x,y");
        List<Map<String, Object>> expectedResult2 = ImmutableList.<Map<String, Object>>of(
                ImmutableMap.<String, Object>of("address", "/2/multitoggle/2/15", "x", 0.1, "y", 0.2),
                ImmutableMap.<String, Object>of("address", "/2/multitoggle/4/10", "x", 0.3, "y", 0.6));
        assertEquals(expectedResult2, context.renderNode(oscReceiveNode2));
        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

Examples of nodebox.node.Node.withInputValue()

        List<Map<String, Object>> expectedResult2 = ImmutableList.<Map<String, Object>>of(
                ImmutableMap.<String, Object>of("address", "/2/multitoggle/2/15", "x", 0.1, "y", 0.2),
                ImmutableMap.<String, Object>of("address", "/2/multitoggle/4/10", "x", 0.3, "y", 0.6));
        assertEquals(expectedResult2, context.renderNode(oscReceiveNode2));
        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

Examples of org.apache.hadoop.mrunit.ReduceDriver.withInputValue()

  @Test
  public void testOutputFormatWithMismatchInOutputClasses() throws IOException {
    final ReduceDriver driver = ReduceDriver.newReduceDriver(reducer);
    driver.withOutputFormat(TextOutputFormat.class, TextInputFormat.class);
    driver.withInputKey(new Text("a"));
    driver.withInputValue(new LongWritable(1)).withInputValue(
        new LongWritable(2));
    driver.withOutput(new LongWritable(), new Text("a\t3"));
    driver.runTest();
  }
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.