Elffuss BraidHub

kikocis/java-driver public

Test fixes for Codec changes.
Changeset7355a7b59bf3187c922a51a825e96378d5da2b92d794b883f36b20432c0adbfe
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-10-12 22:11 -05:00
Committerolim7t <omichallat+github@gmail.com> · 2015-10-14 22:35 +02:00
Parentse393edf53a17

Browse the files at this changeset

2 files changed

modified driver-core/src/test/java/com/datastax/driver/core/BoundStatementTest.java +3 −3
@@ -25,7 +25,7 @@
2525 import static org.assertj.core.api.Assertions.assertThat;
2626 import static org.assertj.core.api.Assertions.fail;
2727
28-import com.datastax.driver.core.exceptions.InvalidTypeException;
28+import com.datastax.driver.core.exceptions.CodecNotFoundException;
2929
3030 public class BoundStatementTest extends CCMBridge.PerClassSingleNodeCluster {
3131
@@ -60,8 +60,8 @@
6060
6161 try {
6262 statement.getString(0);
63- fail("Expected type error");
64- } catch (InvalidTypeException e) { /* expected */ }
63+ fail("Expected codec not found error");
64+ } catch (CodecNotFoundException e) { /* expected */ }
6565
6666 try {
6767 statement.getString(3);
modified driver-core/src/test/java/com/datastax/driver/core/TypeCodecOverlappingJavaTypeIntegrationTest.java +1 −1
@@ -68,7 +68,7 @@
6868 session.execute(
6969 ps.bind()
7070 .setString(0, "42")
71- .setList(1, newArrayList("42"))
71+ .setList(1, newArrayList("42"), String.class)
7272 .setString(2, "42") // here we have the CQL type so VarcharCodec will be used even if IntToStringCodec accepts it
7373 );
7474 ps = session.prepare(selectQuery);