Skip to content

Commit 29de1b3

Browse files
authored
Merge pull request #2137 from ligangty/2.7.x
Chore: replace junit assertThat with hamcrest assertThat due to deprecated warning
2 parents 8797143 + 5f08563 commit 29de1b3

387 files changed

Lines changed: 387 additions & 391 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addons/changelog/ftests/src/main/java/org/commonjava/indy/changelog/RepoChangelogStoreDisableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import static org.commonjava.indy.pkg.maven.model.MavenPackageTypeDescriptor.MAVEN_PKG_KEY;
3434
import static org.hamcrest.CoreMatchers.equalTo;
3535
import static org.junit.Assert.assertNotNull;
36-
import static org.junit.Assert.assertThat;
36+
import static org.hamcrest.MatcherAssert.assertThat;
3737
import static org.junit.Assert.assertTrue;
3838

3939
/**

addons/changelog/ftests/src/main/java/org/commonjava/indy/changelog/RepoChangelogStoreTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
import static org.commonjava.indy.pkg.maven.model.MavenPackageTypeDescriptor.MAVEN_PKG_KEY;
3535
import static org.hamcrest.CoreMatchers.equalTo;
36-
import static org.junit.Assert.assertThat;
36+
import static org.hamcrest.MatcherAssert.assertThat;
3737

3838
/**
3939
* This test ensure that each repo change will trigger a change log entry in cache.

addons/content-browse/ftests/src/main/java/org/commonjava/indy/content/browse/ftest/MetaListingRescheduleTimeoutTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import static org.commonjava.indy.pkg.maven.model.MavenPackageTypeDescriptor.MAVEN_PKG_KEY;
4444
import static org.hamcrest.CoreMatchers.equalTo;
4545
import static org.hamcrest.CoreMatchers.notNullValue;
46-
import static org.junit.Assert.assertThat;
46+
import static org.hamcrest.MatcherAssert.assertThat;
4747

4848
/**
4949
* This case test if the ".listing.txt" metadata re-schedule is working.

addons/content-browse/ftests/src/main/java/org/commonjava/indy/content/browse/ftest/StoreNPMThenListingDirTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import static org.hamcrest.CoreMatchers.equalTo;
3838
import static org.hamcrest.CoreMatchers.notNullValue;
3939
import static org.junit.Assert.assertEquals;
40-
import static org.junit.Assert.assertThat;
40+
import static org.hamcrest.MatcherAssert.assertThat;
4141

4242
/**
4343
* Verifies that the available packages are listed via browse api.

addons/content-browse/ftests/src/main/java/org/commonjava/indy/content/browse/ftest/StoreThenGetUnSuffixedDirAndDownloadTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import static org.commonjava.indy.model.core.StoreType.hosted;
2929
import static org.hamcrest.CoreMatchers.equalTo;
3030
import static org.hamcrest.CoreMatchers.notNullValue;
31-
import static org.junit.Assert.assertThat;
31+
import static org.hamcrest.MatcherAssert.assertThat;
3232

3333
/**
3434
* Verifies that nothing happens to stored content when an implied directory listing is requested.

addons/content-browse/ftests/src/main/java/org/commonjava/indy/content/browse/ftest/StoreThenGetUnSuffixedDirAndDownloadViaGroupTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import static org.commonjava.indy.model.core.StoreType.hosted;
2929
import static org.hamcrest.CoreMatchers.equalTo;
3030
import static org.hamcrest.CoreMatchers.notNullValue;
31-
import static org.junit.Assert.assertThat;
31+
import static org.hamcrest.MatcherAssert.assertThat;
3232

3333
/**
3434
* Verifies that nothing happens to stored content when an implied directory listing is requested.

addons/diagnostics/ftests/src/main/java/org/commonjava/indy/diags/ftest/DownloadDiagBundleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import static org.commonjava.indy.client.core.util.UrlUtils.buildUrl;
4343
import static org.hamcrest.CoreMatchers.equalTo;
4444
import static org.hamcrest.CoreMatchers.notNullValue;
45-
import static org.junit.Assert.assertThat;
45+
import static org.hamcrest.MatcherAssert.assertThat;
4646

4747
/**
4848
* Created by jdcasey on 1/11/17.

addons/dot-maven/common/src/test/java/org/commonjava/indy/dotmaven/util/NameUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package org.commonjava.indy.dotmaven.util;
1717

1818
import static org.hamcrest.CoreMatchers.equalTo;
19-
import static org.junit.Assert.assertThat;
19+
import static org.hamcrest.MatcherAssert.assertThat;
2020

2121
import org.junit.Test;
2222

addons/dot-maven/common/src/test/java/org/commonjava/indy/dotmaven/util/SettingsURIMatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package org.commonjava.indy.dotmaven.util;
1717

1818
import static org.hamcrest.CoreMatchers.equalTo;
19-
import static org.junit.Assert.assertThat;
19+
import static org.hamcrest.MatcherAssert.assertThat;
2020

2121
import org.junit.Test;
2222

addons/dot-maven/ftests/src/main/java/org/commonjava/indy/dotmaven/settings/SettingsGeneratedForRemoteRepoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import static org.apache.commons.io.IOUtils.closeQuietly;
1919
import static org.hamcrest.CoreMatchers.equalTo;
2020
import static org.hamcrest.CoreMatchers.notNullValue;
21-
import static org.junit.Assert.assertThat;
21+
import static org.hamcrest.MatcherAssert.assertThat;
2222

2323
import java.io.InputStream;
2424

0 commit comments

Comments
 (0)