Separate assertions between instanceof check and hasDelta check.

This commit is contained in:
John Blum
2019-12-02 16:25:11 -08:00
parent 58689388c2
commit 07512779e7

View File

@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.session.data.gemfire;
import static org.assertj.core.api.Assertions.assertThat;
@@ -26,12 +25,12 @@ import static org.springframework.session.data.gemfire.AbstractGemFireOperations
import java.util.Optional;
import java.util.concurrent.atomic.AtomicReference;
import org.junit.Test;
import org.mockito.Mockito;
import edu.umd.cs.mtc.MultithreadedTestCase;
import edu.umd.cs.mtc.TestFramework;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import org.springframework.session.Session;
@@ -172,7 +171,8 @@ public abstract class AbstractConcurrentSessionOperationsIntegrationTests extend
assertThat(session.getAttributeNames()).containsOnly("attributeOne", "attributeTwo", "attributeThree");
assertThat(session.<String>getAttribute("attributeThree")).isEqualTo("testThree");
assertThat(session instanceof GemFireSession && ((GemFireSession) session).hasDelta()).isTrue();
assertThat(session).isInstanceOf(GemFireSession.class);
assertThat(((GemFireSession) session).hasDelta()).isTrue();
save(session);
}