Skip to content

Commit fc328a5

Browse files
authored
Migrate tests from using fest-assert to AssertJ (#876)
1 parent d63c3d4 commit fc328a5

File tree

179 files changed

+194
-320
lines changed

Some content is hidden

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

179 files changed

+194
-320
lines changed

openam-audit/openam-audit-context/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
<groupId>org.openidentityplatform.commons.guice</groupId>
5454
<artifactId>core</artifactId>
5555
</dependency>
56-
<dependency>
57-
<groupId>org.easytesting</groupId>
58-
<artifactId>fest-assert</artifactId>
59-
</dependency>
6056
<dependency>
6157
<groupId>org.mockito</groupId>
6258
<artifactId>mockito-core</artifactId>

openam-audit/openam-audit-context/src/test/java/org/forgerock/openam/audit/AuditContextFilterTest.java

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

1717
package org.forgerock.openam.audit;
1818

19-
import static org.fest.assertions.Assertions.assertThat;
19+
import static org.assertj.core.api.Assertions.assertThat;
2020
import static org.mockito.Mockito.doAnswer;
2121
import static org.mockito.Mockito.when;
2222

openam-authentication/openam-auth-oidc/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@
5353
<artifactId>testng</artifactId>
5454
<scope>test</scope>
5555
</dependency>
56-
<dependency>
57-
<groupId>org.easytesting</groupId>
58-
<artifactId>fest-assert</artifactId>
59-
<scope>test</scope>
60-
</dependency>
6156
<dependency>
6257
<groupId>org.mockito</groupId>
6358
<artifactId>mockito-all</artifactId>

openam-authentication/openam-auth-oidc/src/test/java/org/forgerock/openam/authentication/modules/oidc/JwtAttributeMapperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.util.Map;
2525
import java.util.Set;
2626

27-
import static org.fest.assertions.Assertions.assertThat;
27+
import static org.assertj.core.api.Assertions.assertThat;
2828

2929
public class JwtAttributeMapperTest {
3030
private static final String EMAIL = "email";

openam-authentication/openam-auth-oidc/src/test/java/org/forgerock/openam/authentication/modules/oidc/OpenIdConnectConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.Map;
2424
import java.util.Set;
2525

26-
import static org.fest.assertions.Assertions.*;
26+
import static org.assertj.core.api.Assertions.*;
2727
import static org.forgerock.openam.utils.CollectionUtils.*;
2828

2929

openam-authentication/openam-auth-scripted/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@
5656
<artifactId>mockito-all</artifactId>
5757
<scope>test</scope>
5858
</dependency>
59-
<dependency>
60-
<groupId>org.easytesting</groupId>
61-
<artifactId>fest-assert</artifactId>
62-
<scope>test</scope>
63-
</dependency>
6459

6560
</dependencies>
6661
</project>

openam-console/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@
181181
<groupId>org.openidentityplatform.openam</groupId>
182182
<artifactId>openam-oauth2</artifactId>
183183
</dependency>
184-
<dependency>
185-
<groupId>org.easytesting</groupId>
186-
<artifactId>fest-assert</artifactId>
187-
<scope>test</scope>
188-
</dependency>
189184
<dependency>
190185
<groupId>org.mockito</groupId>
191186
<artifactId>mockito-core</artifactId>

openam-console/src/test/java/com/sun/identity/console/base/AMPropertySheetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import java.util.Map;
2929
import java.util.Set;
3030

31-
import static org.fest.assertions.Assertions.assertThat;
31+
import static org.assertj.core.api.Assertions.assertThat;
3232
import static org.mockito.BDDMockito.given;
3333
import static org.mockito.Mockito.mock;
3434

openam-console/src/test/java/com/sun/identity/console/base/model/AMAdminUtilsToSetTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.HashSet;
2424
import java.util.Set;
2525

26-
import static org.fest.assertions.Assertions.assertThat;
26+
import static org.assertj.core.api.Assertions.assertThat;
2727
import static org.testng.Assert.assertEquals;
2828

2929
/**
@@ -83,7 +83,7 @@ public void shouldIgnoreEmptyStringsIfAsked() {
8383
assertThat(result).isNotNull()
8484
.hasSize(2)
8585
.contains("aaa", "ccc")
86-
.excludes("");
86+
.doesNotContain("");
8787
}
8888

8989
@Test

openam-core/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,6 @@
395395
<artifactId>testng</artifactId>
396396
<scope>test</scope>
397397
</dependency>
398-
<dependency>
399-
<groupId>org.easytesting</groupId>
400-
<artifactId>fest-assert</artifactId>
401-
</dependency>
402398
<dependency>
403399
<groupId>org.mockito</groupId>
404400
<artifactId>mockito-all</artifactId>

0 commit comments

Comments
 (0)