kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 9887657e9b5e477284e573b4d31bb344e8bd1f80ce04da187a137cbecf673895 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-07-29 21:07 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-07-29 21:07 +02:00 |
| Parents | e8805fe5e9ad |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/SessionTest.java +4 −3
| @@ -18,6 +18,7 @@ | ||
| 18 | 18 | import java.util.Arrays; |
| 19 | 19 | import java.util.Collection; |
| 20 | 20 | import java.util.List; |
| 21 | +import java.util.Locale; | |
| 21 | 22 | |
| 22 | 23 | import org.testng.annotations.Test; |
| 23 | 24 | import static org.testng.Assert.assertEquals; |
| @@ -45,7 +46,7 @@ | ||
| 45 | 46 | public void executeTest() throws Exception { |
| 46 | 47 | // Simple calls to all versions of the execute/executeAsync methods |
| 47 | 48 | String key = "execute_test"; |
| 48 | - ResultSet rs = session.execute(String.format(TestUtils.INSERT_FORMAT, TABLE1, key, "foo", 42, 24.03f)); | |
| 49 | + ResultSet rs = session.execute(String.format(Locale.US, TestUtils.INSERT_FORMAT, TABLE1, key, "foo", 42, 24.03f)); | |
| 49 | 50 | assertTrue(rs.isExhausted()); |
| 50 | 51 | |
| 51 | 52 | // execute |
| @@ -62,7 +63,7 @@ | ||
| 62 | 63 | // Simple calls to all versions of the execute/executeAsync methods for prepared statements |
| 63 | 64 | // Note: the goal is only to exercice the Session methods, PreparedStatementTest have better prepared statement tests. |
| 64 | 65 | String key = "execute_prepared_test"; |
| 65 | - ResultSet rs = session.execute(String.format(TestUtils.INSERT_FORMAT, TABLE2, key, "foo", 42, 24.03f)); | |
| 66 | + ResultSet rs = session.execute(String.format(Locale.US, TestUtils.INSERT_FORMAT, TABLE2, key, "foo", 42, 24.03f)); | |
| 66 | 67 | assertTrue(rs.isExhausted()); |
| 67 | 68 | |
| 68 | 69 | PreparedStatement p = session.prepare(String.format(TestUtils.SELECT_ALL_FORMAT + " WHERE k = ?", TABLE2)); |
| @@ -113,7 +114,7 @@ | ||
| 113 | 114 | |
| 114 | 115 | // Simple calls to all versions of the execute/executeAsync methods |
| 115 | 116 | String key = "execute_compressed_test"; |
| 116 | - ResultSet rs = compressedSession.execute(String.format(TestUtils.INSERT_FORMAT, TABLE3, key, "foo", 42, 24.03f)); | |
| 117 | + ResultSet rs = compressedSession.execute(String.format(Locale.US, TestUtils.INSERT_FORMAT, TABLE3, key, "foo", 42, 24.03f)); | |
| 117 | 118 | assertTrue(rs.isExhausted()); |
| 118 | 119 | |
| 119 | 120 | String SELECT_ALL = String.format(TestUtils.SELECT_ALL_FORMAT + " WHERE k = '%s'", TABLE3, key); |