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
|
||||
|
||||
@@ -32,7 +32,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;
|
||||
|
||||
@@ -330,7 +329,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
|
||||
@@ -405,7 +403,6 @@ public class CassandraTemplateIntegrationTests extends AbstractKeyspaceCreatingI
|
||||
template.insert(user);
|
||||
|
||||
assertThat(template.delete(user, lwtOptions).wasApplied()).isTrue();
|
||||
assertThat(template.delete(user, lwtOptions).wasApplied()).isFalse();
|
||||
}
|
||||
|
||||
@Test // DATACASS-606
|
||||
@@ -418,7 +415,6 @@ public class CassandraTemplateIntegrationTests extends AbstractKeyspaceCreatingI
|
||||
|
||||
Query query = Query.query(where("id").is("heisenberg")).queryOptions(lwtOptions);
|
||||
assertThat(template.delete(query, User.class)).isTrue();
|
||||
assertThat(template.delete(query, User.class)).isFalse();
|
||||
}
|
||||
|
||||
@Test // DATACASS-182
|
||||
|
||||
Reference in New Issue
Block a user