Port data tests to assertj

This commit is contained in:
Janne Valkealahti
2020-11-28 14:43:55 +00:00
parent d19b5d298a
commit 2fa227985c
4 changed files with 97 additions and 105 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,9 +15,7 @@
*/
package org.springframework.statemachine.data;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Iterator;
@@ -349,9 +347,9 @@ public abstract class AbstractRepositoryTests {
break;
}
}
assertThat(endState, notNullValue());
assertThat(endState.getPseudoState(), notNullValue());
assertThat(endState.getPseudoState().getKind(), is(PseudoStateKind.END));
assertThat(endState).isNotNull();
assertThat(endState.getPseudoState()).isNotNull();
assertThat(endState.getPseudoState().getKind()).isEqualTo(PseudoStateKind.END);
}
@SuppressWarnings("unchecked")