From 6ae9154cec855de0d3c9b9b956cd45f1b8e52ea6 Mon Sep 17 00:00:00 2001 From: Dennis Hendriks Date: Mon, 14 Aug 2023 13:50:31 +0200 Subject: [PATCH] More test fixes. --- .../p2Repository/DownloadVerifyNoDigestAlgoTest.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tycho-its/src/test/java/org/eclipse/tycho/test/p2Repository/DownloadVerifyNoDigestAlgoTest.java b/tycho-its/src/test/java/org/eclipse/tycho/test/p2Repository/DownloadVerifyNoDigestAlgoTest.java index 939266eb16..db6cd4a84a 100644 --- a/tycho-its/src/test/java/org/eclipse/tycho/test/p2Repository/DownloadVerifyNoDigestAlgoTest.java +++ b/tycho-its/src/test/java/org/eclipse/tycho/test/p2Repository/DownloadVerifyNoDigestAlgoTest.java @@ -10,12 +10,6 @@ package org.eclipse.tycho.test.p2Repository; -import static org.junit.Assert.assertFalse; - -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Paths; - import org.apache.maven.it.Verifier; import org.eclipse.tycho.test.AbstractTychoIntegrationTest; import org.junit.Test; @@ -24,10 +18,8 @@ public class DownloadVerifyNoDigestAlgoTest extends AbstractTychoIntegrationTest @Test public void test() throws Exception { Verifier verifier = getVerifier("p2Repository.downloadVerifyNoDigestAlgo", false); - verifier.setLogFileName("p2Repository.downloadVerifyNoDigestAlgo.log"); verifier.executeGoal("verify"); verifier.verifyErrorFreeLog(); - String logContents = Files.readString(Paths.get("p2Repository.downloadVerifyNoDigestAlgo.log")); - assertFalse(logContents.contains("No digest algorithm is available to verify download")); + verifyTextNotInLog(verifier, "No digest algorithm is available to verify download"); } }