DATACASS-814 - Polishing.

Fix typo in docs. Convert space indents to tabs.

Original pull request: #180.
This commit is contained in:
Mark Paluch
2020-10-23 15:18:00 +02:00
parent 3b058156d4
commit 857bde1311
2 changed files with 10 additions and 10 deletions

View File

@@ -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,

View File

@@ -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);
}
}