Author: pkluegl Date: Wed Nov 6 12:24:07 2019 New Revision: 1869464 URL: http://svn.apache.org/viewvc?rev=1869464&view=rev Log: UIMA-6092: fixed test
Modified: uima/ruta/trunk/ruta-core-ext/src/test/java/org/apache/uima/ruta/action/MarkFastReloadTest.java Modified: uima/ruta/trunk/ruta-core-ext/src/test/java/org/apache/uima/ruta/action/MarkFastReloadTest.java URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-core-ext/src/test/java/org/apache/uima/ruta/action/MarkFastReloadTest.java?rev=1869464&r1=1869463&r2=1869464&view=diff ============================================================================== --- uima/ruta/trunk/ruta-core-ext/src/test/java/org/apache/uima/ruta/action/MarkFastReloadTest.java (original) +++ uima/ruta/trunk/ruta-core-ext/src/test/java/org/apache/uima/ruta/action/MarkFastReloadTest.java Wed Nov 6 12:24:07 2019 @@ -27,7 +27,7 @@ import org.apache.uima.ruta.engine.RutaE import org.apache.uima.ruta.engine.RutaTestUtils; import org.junit.Test; -public class MarkFastReloadTest { +public class MarkFastReloadTest { @Test public void test() { @@ -39,8 +39,10 @@ public class MarkFastReloadTest { String ruleFileName = namespace + "/" + name + RutaEngine.SCRIPT_FILE_EXTENSION; String textFileName = namespace + "/" + name + ".txt"; Map<String, Object> parameters = new HashMap<>(); - parameters.put(RutaEngine.PARAM_ADDITIONAL_EXTENSIONS, new String[] {MarkReloadExtension.class.getName()}); - cas = RutaTestUtils.process(ruleFileName, textFileName, parameters, 50, null, null, namespace + "/", null); + parameters.put(RutaEngine.PARAM_ADDITIONAL_EXTENSIONS, + new String[] { MarkReloadExtension.class.getName() }); + cas = RutaTestUtils.process(ruleFileName, textFileName, parameters, 50, null, null, + namespace + "/", null); } catch (Exception e) { e.printStackTrace(); assert (false); @@ -48,11 +50,10 @@ public class MarkFastReloadTest { RutaTestUtils.assertAnnotationsEquals(cas, 1, 3, "1 0 0", "100", "2 0 0"); RutaTestUtils.assertAnnotationsEquals(cas, 2, 0); - RutaTestUtils.assertAnnotationsEquals(cas, 3, 1, "100"); + RutaTestUtils.assertAnnotationsEquals(cas, 3, 3, "1 0 0", "100", "2 0 0"); RutaTestUtils.assertAnnotationsEquals(cas, 4, 2, "1 0 0", "2 0 0"); cas.release(); } - }