From 401e4b8752d873465ac197ff1cc7ae3484608ddf Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Thu, 9 Dec 2021 09:14:05 +0100 Subject: fix: only asserts a substring of the classpath Increases the max number of test processes, which may reduce the test execution time. --- .../java/ch/fhnw/thga/gradleplugins/FregePluginFunctionalTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/functionalTest/java/ch/fhnw/thga/gradleplugins/FregePluginFunctionalTest.java') diff --git a/src/functionalTest/java/ch/fhnw/thga/gradleplugins/FregePluginFunctionalTest.java b/src/functionalTest/java/ch/fhnw/thga/gradleplugins/FregePluginFunctionalTest.java index 40c2f04..cf6dc70 100644 --- a/src/functionalTest/java/ch/fhnw/thga/gradleplugins/FregePluginFunctionalTest.java +++ b/src/functionalTest/java/ch/fhnw/thga/gradleplugins/FregePluginFunctionalTest.java @@ -404,10 +404,7 @@ public class FregePluginFunctionalTest { BuildResult result = runGradleTask(REPL_FREGE_TASK_NAME, "-q"); assertTrue(project.getTasks().getByName(REPL_FREGE_TASK_NAME) instanceof ReplFregeTask); assertEquals(SUCCESS, result.task(":" + REPL_FREGE_TASK_NAME).getOutcome()); - Path expectedFregeJarPath = testProjectDir.toPath() - .resolve(Paths.get(DEFAULT_DOWNLOAD_DIRECTORY, "frege3.25.84.jar")) - .toAbsolutePath(); - assertTrue(result.getOutput().contains(expectedFregeJarPath.toString())); + assertTrue(result.getOutput().contains("frege3.25.84.jar")); } @Test @@ -421,7 +418,7 @@ public class FregePluginFunctionalTest { BuildResult result = runGradleTask(REPL_FREGE_TASK_NAME, "-q"); assertTrue(project.getTasks().getByName(REPL_FREGE_TASK_NAME) instanceof ReplFregeTask); assertEquals(SUCCESS, result.task(":" + REPL_FREGE_TASK_NAME).getOutcome()); - System.out.println(result.getOutput()); + assertTrue(result.getOutput().contains("frege3.25.84.jar")); assertTrue(result.getOutput().contains("org.json")); } } -- cgit