DATACASS-720 - Relax test plan for LWT tests.
LWT tests are now simplified and to not attempt to issue another query as Cassandra becomes eventually consistent.
This commit is contained in:
@@ -138,7 +138,6 @@ public class AsyncCassandraTemplateIntegrationTests extends AbstractKeyspaceCrea
|
||||
ListenableFuture<EntityWriteResult<User>> lwt = template.insert(user, lwtOptions);
|
||||
|
||||
assertThat(getUninterruptibly(lwt).wasApplied()).isFalse();
|
||||
assertThat(getUser(user.getId()).getFirstname()).isEqualTo("Walter");
|
||||
}
|
||||
|
||||
@Test // DATACASS-292
|
||||
@@ -199,7 +198,6 @@ public class AsyncCassandraTemplateIntegrationTests extends AbstractKeyspaceCrea
|
||||
ListenableFuture<EntityWriteResult<User>> lwt = template.update(user, lwtOptions);
|
||||
|
||||
assertThat(getUninterruptibly(lwt).wasApplied()).isFalse();
|
||||
assertThat(getUser(user.getId())).isNull();
|
||||
}
|
||||
|
||||
@Test // DATACASS-292
|
||||
|
||||
@@ -31,7 +31,6 @@ import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -147,14 +146,6 @@ public class CassandraTemplateIntegrationTests extends AbstractKeyspaceCreatingI
|
||||
assertThat(loaded).isEqualTo(token1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldSelectNullByQuery() {
|
||||
|
||||
UUID loaded = template.selectOne("SELECT MAX(user_id) FROM user_tokens", UUID.class);
|
||||
|
||||
System.out.println(loaded);
|
||||
}
|
||||
|
||||
@Test // DATACASS-292, DATACASS-573
|
||||
public void insertShouldInsertEntity() {
|
||||
|
||||
@@ -291,7 +282,6 @@ public class CassandraTemplateIntegrationTests extends AbstractKeyspaceCreatingI
|
||||
WriteResult lwt = template.update(user, lwtOptions);
|
||||
|
||||
assertThat(lwt.wasApplied()).isTrue();
|
||||
assertThat(template.selectOneById(user.getId(), User.class).getFirstname()).isEqualTo("Walter Hartwell");
|
||||
}
|
||||
|
||||
@Test // DATACASS-343
|
||||
|
||||
Reference in New Issue
Block a user