-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abc
committed
Nov 4, 2022
1 parent
29971c8
commit ec063ee
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
tycho-its/src/test/java/org/eclipse/tycho/test/linkedResources/LinkedResourcesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.eclipse.tycho.test.linkedResources; | ||
|
||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.hamcrest.Matchers.containsString; | ||
import static org.hamcrest.Matchers.hasItem; | ||
import static org.hamcrest.Matchers.not; | ||
|
||
import java.util.List; | ||
|
||
import org.apache.maven.it.VerificationException; | ||
import org.apache.maven.it.Verifier; | ||
import org.eclipse.tycho.test.AbstractTychoIntegrationTest; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class LinkedResourcesTest extends AbstractTychoIntegrationTest { | ||
|
||
@Test | ||
public void testLinkedSettingsFolder() throws Exception { | ||
Verifier verifier = getVerifier("linked-resources", false); | ||
verifier.executeGoals(List.of("verify")); | ||
|
||
verifyNoUseProjectSettingsWarning(verifier); | ||
} | ||
|
||
private void verifyNoUseProjectSettingsWarning(Verifier verifier) throws VerificationException { | ||
List<String> lines = verifier.loadFile(verifier.getBasedir(), verifier.getLogFileName(), false); | ||
|
||
String warningMsg = "[WARNING] Parameter 'useProjectSettings' is set to true, but preferences file"; | ||
|
||
assertThat(lines, not(hasItem(containsString(warningMsg)))); | ||
} | ||
} |