Skip to content

Commit

Permalink
use assertj-core
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Dec 19, 2024
1 parent f88c0fd commit 00c11d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ under the License.
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.26.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory;
import org.eclipse.aether.repository.LocalRepository;

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

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

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

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

0 comments on commit 00c11d2

Please sign in to comment.