kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 64d8e0bf36e4df23408e0d9f5e6c5fd2798dff7322cf8556a28a50e43cb88792 |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2016-09-07 11:52 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-09-16 10:45 -07:00 |
| Parents | 6170c129364d |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/querybuilder/QueryBuilderTest.java +4 −9
| @@ -727,16 +727,11 @@ | ||
| 727 | 727 | assertTrue(query.isTracing()); |
| 728 | 728 | } |
| 729 | 729 | |
| 730 | - @Test(groups = "unit") | |
| 730 | + @Test(groups = "unit", expectedExceptions = CodecNotFoundException.class) | |
| 731 | 731 | public void rejectUnknownValueTest() throws Exception { |
| 732 | - try { | |
| 733 | - RegularStatement s = update("foo").with(set("a", new byte[13])).where(eq("k", 2)) | |
| 734 | - .setForceNoValues(true); | |
| 735 | - s.getQueryString(); | |
| 736 | - fail("should have failed to inline a byte[]"); | |
| 737 | - } catch (CodecNotFoundException e) { | |
| 738 | - // Ok, that's what we expect | |
| 739 | - } | |
| 732 | + RegularStatement s = update("foo").with(set("a", new byte[13])).where(eq("k", 2)) | |
| 733 | + .setForceNoValues(true); | |
| 734 | + s.getQueryString(); | |
| 740 | 735 | } |
| 741 | 736 | |
| 742 | 737 | @Test(groups = "unit") |