DATACASS-814 - Polishing.
Fix typo in docs. Convert space indents to tabs. Original pull request: #180.
This commit is contained in:
@@ -79,7 +79,7 @@ public class MapPreparedStatementCache implements PreparedStatementCache {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.data.cassandra.core.cql.support.PrepatedStatementCache#getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession, com.datastax.oss.driver.api.core.cql.SimpleStatement, java.util.function.Supplier)
|
||||
* @see org.springframework.data.cassandra.core.cql.support.PreparedStatementCache#getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession, com.datastax.oss.driver.api.core.cql.SimpleStatement, java.util.function.Supplier)
|
||||
*/
|
||||
@Override
|
||||
public PreparedStatement getPreparedStatement(CqlSession session, SimpleStatement statement,
|
||||
|
||||
@@ -184,16 +184,16 @@ class CachedPreparedStatementCreatorUnitTests {
|
||||
verify(session).prepare(secondStatement);
|
||||
}
|
||||
|
||||
@Test // DATACASS-814
|
||||
void shouldUseCqlTextInCacheKey() {
|
||||
@Test // DATACASS-814
|
||||
void shouldUseCqlTextInCacheKey() {
|
||||
|
||||
String cql = "SELECT foo FROM users;";
|
||||
String cql = "SELECT foo FROM users;";
|
||||
|
||||
MapPreparedStatementCache cache = MapPreparedStatementCache.create();
|
||||
CachedPreparedStatementCreator creator = CachedPreparedStatementCreator.of(cache, cql);
|
||||
creator.createPreparedStatement(session);
|
||||
MapPreparedStatementCache cache = MapPreparedStatementCache.create();
|
||||
CachedPreparedStatementCreator creator = CachedPreparedStatementCreator.of(cache, cql);
|
||||
creator.createPreparedStatement(session);
|
||||
|
||||
MapPreparedStatementCache.CacheKey cacheKey = cache.getCache().keySet().iterator().next();
|
||||
assertThat(cacheKey.cql).isSameAs(cql);
|
||||
}
|
||||
MapPreparedStatementCache.CacheKey cacheKey = cache.getCache().keySet().iterator().next();
|
||||
assertThat(cacheKey.cql).isEqualTo(cql);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user