Skip to content

Commit

Permalink
use hamcrest 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Dec 19, 2024
1 parent 00c11d2 commit 19916ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
18 changes: 12 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,18 @@ under the License.
</dependency>

<!-- test -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -211,12 +223,6 @@ under the License.
<version>${mavenVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.26.3</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- needed in tests runtime -->
<groupId>org.slf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory;
import org.eclipse.aether.repository.LocalRepository;

import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.stringContainsInOrder;

/**
* RemoteResources plugin Test Case
Expand Down Expand Up @@ -307,7 +308,7 @@ protected void buildResourceBundle(String id, String sourceEncoding, String[] re

List<String> expectedOrder = new ArrayList<>(Arrays.asList(resourceNames));
Collections.sort(expectedOrder);
assertThat(data).containsSubsequence(expectedOrder);
assertThat(data, stringContainsInOrder(expectedOrder));

if (null != jarName) {
try (OutputStream fos = Files.newOutputStream(jarName.toPath());
Expand Down

0 comments on commit 19916ff

Please sign in to comment.