kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 7355a7b59bf3187c922a51a825e96378d5da2b92d794b883f36b20432c0adbfe |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-10-12 22:11 -05:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-10-14 22:35 +02:00 |
| Parents | e393edf53a17 |
2 files changed
modified driver-core/src/test/java/com/datastax/driver/core/BoundStatementTest.java +3 −3
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | import static org.assertj.core.api.Assertions.assertThat; |
| 26 | 26 | import static org.assertj.core.api.Assertions.fail; |
| 27 | 27 | |
| 28 | -import com.datastax.driver.core.exceptions.InvalidTypeException; | |
| 28 | +import com.datastax.driver.core.exceptions.CodecNotFoundException; | |
| 29 | 29 | |
| 30 | 30 | public class BoundStatementTest extends CCMBridge.PerClassSingleNodeCluster { |
| 31 | 31 | |
| @@ -60,8 +60,8 @@ | ||
| 60 | 60 | |
| 61 | 61 | try { |
| 62 | 62 | 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 */ } | |
| 65 | 65 | |
| 66 | 66 | try { |
| 67 | 67 | statement.getString(3); |
modified driver-core/src/test/java/com/datastax/driver/core/TypeCodecOverlappingJavaTypeIntegrationTest.java +1 −1
| @@ -68,7 +68,7 @@ | ||
| 68 | 68 | session.execute( |
| 69 | 69 | ps.bind() |
| 70 | 70 | .setString(0, "42") |
| 71 | - .setList(1, newArrayList("42")) | |
| 71 | + .setList(1, newArrayList("42"), String.class) | |
| 72 | 72 | .setString(2, "42") // here we have the CQL type so VarcharCodec will be used even if IntToStringCodec accepts it |
| 73 | 73 | ); |
| 74 | 74 | ps = session.prepare(selectQuery); |