Skip to content

Commit

Permalink
Trying to fix the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhendriks committed Aug 13, 2023
1 parent f51b274 commit 8fd6ca5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/

package org.eclipse.tycho.test.p2Repository;

import static org.junit.Assert.assertFalse;
Expand All @@ -17,15 +18,14 @@

import org.apache.maven.it.Verifier;
import org.eclipse.tycho.test.AbstractTychoIntegrationTest;
import org.junit.Assert;

public class DownloadVerifyNoDigestAlgoTest extends AbstractTychoIntegrationTest throws IOException {
import org.junit.Test;

public class DownloadVerifyNoDigestAlgoTest extends AbstractTychoIntegrationTest {
@Test
public void test() throws Exception {
Verifier verifier = getVerifier("p2Repository.downloadVerifyNoDigestAlgo", false);
verifier.setLogFileName("p2Repository.downloadVerifyNoDigestAlgo.log");
verifier.executeGoals(asList("verify"));
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"));
Expand Down

0 comments on commit 8fd6ca5

Please sign in to comment.