Package org.apache.uima.fit.factory.testAes

Examples of org.apache.uima.fit.factory.testAes.ParameterizedAE.initialize()


            "files9", new File[] { new File("test/data/file"), new File("test/data/file2") },
            ParameterizedAE.PARAM_STRING_9, "singleelementarray",
            "files10", new File("test/data/file"), "booleans8", true);

    ParameterizedAE component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertEquals("pineapple", component.getString1());
    assertArrayEquals(new String[] { "coconut", "mango" }, component.getString2());
    assertEquals(null, component.getString3());
    assertArrayEquals(new String[] { "apple" }, component.getString4());
    assertArrayEquals(new String[] { "" }, component.getString5());
View Full Code Here


            new String[0], "files5", new String[] { "foos/bars" }, "files6", new String[] {
                "C:\\Documents and Settings\\Philip\\My Documents\\", "/usr/local/bin" }, "files7",
            new String[0], "files8", new String[] { "foos/bars" }, "files9",
            Arrays.asList(new File("test/data/file"), new File("test/data/file2")));
    component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertEquals("lime", component.getString1());
    assertArrayEquals(new String[] { "banana", "strawberry" }, component.getString2());
    assertEquals("cherry", component.getString3());
    assertArrayEquals(new String[] { "raspberry", "blueberry", "blackberry" },
            component.getString4());
View Full Code Here

            ParameterizedAE.PARAM_FLOAT_3, 1.234f, ParameterizedAE.PARAM_FLOAT_6, new Float[] {
                1.234f, 0.001f }, ParameterizedAE.PARAM_BOOLEAN_1, true,
            ParameterizedAE.PARAM_BOOLEAN_3, new boolean[3], ParameterizedAE.PARAM_FLOAT_5,
            new float[] { 1.2f, 3.4f }, "file2", "foo2/bar2");
    component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertFalse(component.getBoolean3()[0]);
    assertFalse(component.getBoolean3()[1]);
    assertFalse(component.getBoolean3()[2]);
    assertEquals(component.getFloat5()[0], 1.2f, 0.001f);
    assertEquals(component.getFloat5()[1], 3.4f, 0.001f);
View Full Code Here

            new String[0], "files5", new String[] { "foos/bars" }, "files6", new String[] {
                "C:\\Documents and Settings\\Philip\\My Documents\\", "/usr/local/bin" }, "files7",
            new String[0], "files8", new String[] { "foos/bars" }, "files9",
            Arrays.asList(new File("test/data/file"), new File("test/data/file2")));
    component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertEquals("lime", component.getString1());
    assertArrayEquals(new String[] { "banana", "strawberry" }, component.getString2());
    assertEquals("cherry", component.getString3());
    assertArrayEquals(new String[] { "raspberry", "blueberry", "blackberry" },
            component.getString4());
View Full Code Here

            ParameterizedAE.PARAM_FLOAT_3, 1.234f, ParameterizedAE.PARAM_FLOAT_6, new Float[] {
                1.234f, 0.001f }, ParameterizedAE.PARAM_BOOLEAN_1, true,
            ParameterizedAE.PARAM_BOOLEAN_3, new boolean[3], ParameterizedAE.PARAM_FLOAT_5,
            new float[] { 1.2f, 3.4f }, "file2", "foo2/bar2");
    component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertFalse(component.getBoolean3()[0]);
    assertFalse(component.getBoolean3()[1]);
    assertFalse(component.getBoolean3()[2]);
    assertEquals(component.getFloat5()[0], 1.2f, 0.001f);
    assertEquals(component.getFloat5()[1], 3.4f, 0.001f);
View Full Code Here

    // This is supposed to be fixed as part of issue #79
    // -- REC 2011-05-02
    // ParameterizedAE.PARAM_STRING_9, "singleelementarray");

    ParameterizedAE component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertEquals("pineapple", component.getString1());
    assertArrayEquals(new String[] { "coconut", "mango" }, component.getString2());
    assertEquals(null, component.getString3());
    assertArrayEquals(new String[] { "apple" }, component.getString4());
    assertArrayEquals(new String[] { "" }, component.getString5());
View Full Code Here

            "files9", new File[] { new File("test/data/file"), new File("test/data/file2") },
            ParameterizedAE.PARAM_STRING_9, "singleelementarray",
            "files10", new File("test/data/file"), "booleans8", true);

    ParameterizedAE component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertEquals("pineapple", component.getString1());
    assertArrayEquals(new String[] { "coconut", "mango" }, component.getString2());
    assertEquals(null, component.getString3());
    assertArrayEquals(new String[] { "apple" }, component.getString4());
    assertArrayEquals(new String[] { "" }, component.getString5());
View Full Code Here

            new String[0], "files5", new String[] { "foos/bars" }, "files6", new String[] {
                "C:\\Documents and Settings\\Philip\\My Documents\\", "/usr/local/bin" }, "files7",
            new String[0], "files8", new String[] { "foos/bars" }, "files9",
            Arrays.asList(new File("test/data/file"), new File("test/data/file2")));
    component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertEquals("lime", component.getString1());
    assertArrayEquals(new String[] { "banana", "strawberry" }, component.getString2());
    assertEquals("cherry", component.getString3());
    assertArrayEquals(new String[] { "raspberry", "blueberry", "blackberry" },
            component.getString4());
View Full Code Here

            ParameterizedAE.PARAM_FLOAT_3, 1.234f, ParameterizedAE.PARAM_FLOAT_6, new Float[] {
                1.234f, 0.001f }, ParameterizedAE.PARAM_BOOLEAN_1, true,
            ParameterizedAE.PARAM_BOOLEAN_3, new boolean[3], ParameterizedAE.PARAM_FLOAT_5,
            new float[] { 1.2f, 3.4f }, "file2", "foo2/bar2");
    component = new ParameterizedAE();
    component.initialize(engine.getUimaContext());
    assertFalse(component.getBoolean3()[0]);
    assertFalse(component.getBoolean3()[1]);
    assertFalse(component.getBoolean3()[2]);
    assertEquals(component.getFloat5()[0], 1.2f, 0.001f);
    assertEquals(component.getFloat5()[1], 3.4f, 0.001f);
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.