Migrate from fest-assert to assertj

Fixes gh-338
This commit is contained in:
Rob Winch
2016-01-25 19:41:54 -06:00
parent 1003821dad
commit 5dff0ff37b
30 changed files with 32 additions and 32 deletions

View File

@@ -15,7 +15,7 @@
*/
package org.springframework.session.data.redis;
import static org.fest.assertions.Assertions.assertThat;
import static org.assertj.core.api.Assertions.*;
import java.util.Map;
import java.util.UUID;
@@ -96,7 +96,7 @@ public class RedisOperationsSessionRepositoryITests {
assertThat(repository.getSession(toSave.getId())).isNull();
assertThat(registry.getEvent()).isInstanceOf(SessionDestroyedEvent.class);
assertThat(redis.boundSetOps(usernameSessionKey).members()).excludes(toSave.getId());
assertThat(redis.boundSetOps(usernameSessionKey).members()).doesNotContain(toSave.getId());
assertThat(registry.getEvent().getSession().getAttribute(expectedAttributeName)).isEqualTo(expectedAttributeValue);
@@ -142,7 +142,7 @@ public class RedisOperationsSessionRepositoryITests {
findByPrincipalName = repository.findByPrincipalName(principalName);
assertThat(findByPrincipalName).hasSize(0);
assertThat(findByPrincipalName.keySet()).excludes(toSave.getId());
assertThat(findByPrincipalName.keySet()).doesNotContain(toSave.getId());
}
@Configuration

View File

@@ -16,7 +16,7 @@
package org.springframework.session.data.redis.config.annotation.web.http;
import static org.fest.assertions.Assertions.assertThat;
import static org.assertj.core.api.Assertions.*;
import org.junit.Before;
import org.junit.Test;

View File

@@ -15,7 +15,7 @@
*/
package org.springframework.session.hazelcast;
import static org.fest.assertions.Assertions.assertThat;
import static org.assertj.core.api.Assertions.*;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@@ -15,7 +15,7 @@
*/
package org.springframework.session.hazelcast.config.annotation.web.http;
import static org.fest.assertions.Assertions.assertThat;
import static org.assertj.core.api.Assertions.*;
import org.junit.Before;
import org.junit.Test;

View File

@@ -15,7 +15,7 @@
*/
package org.springframework.session.hazelcast.config.annotation.web.http;
import static org.fest.assertions.Assertions.assertThat;
import static org.assertj.core.api.Assertions.*;
import org.junit.Test;
import org.junit.runner.RunWith;