Elffuss BraidHub

kikocis/java-driver public

Merge pull request #259 from tolbertam/LargeDataTest-group-change

Update groups in LargeDataTest so they run as part of integration tests.
Changeset13cd4939edecc065eedb071c21a69dc68595a34049e263819d9466aadb83ace0
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2015-01-09 14:54 +01:00
CommitterOlivier Michallat <olim7t@users.noreply.github.com> · 2015-01-09 14:54 +01:00
Parents6c1d4260f642, 96db92ca9a95

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/LargeDataTest.java +9 −6
@@ -129,9 +129,12 @@
129129 * Converts an integer to an string of letters
130130 * @param i The integer that maps to letter
131131 * @return
132+ *
133+ * TODO This doesn't offer protection from generating column names that are reserved keywords. This does
134+ * work with CQL 3.0, but may break in future specifications. Should fix this to ensure it does not.
132135 */
133136 private static String createColumnName(int i) {
134- String[] letters = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"};
137+ String[] letters = {"a", "b", "c", "d", "e", "f", "g", "h", "j", "l"};
135138
136139 StringBuilder columnName;
137140 int currentI;
@@ -176,7 +179,7 @@
176179 * Test a wide row of size 1,000,000
177180 * @throws Throwable
178181 */
179- @Test(groups = "integration")
182+ @Test(groups = "long")
180183 public void wideRows() throws Throwable {
181184 Cluster.Builder builder = Cluster.builder();
182185 CCMBridge.CCMCluster c = CCMBridge.buildCluster(1, builder);
@@ -199,7 +202,7 @@
199202 * Test a batch that writes a row of size 10,000
200203 * @throws Throwable
201204 */
202- @Test(groups = "integration")
205+ @Test(groups = "short")
203206 public void wideBatchRows() throws Throwable {
204207 Cluster.Builder builder = Cluster.builder();
205208 CCMBridge.CCMCluster c = CCMBridge.buildCluster(1, builder);
@@ -222,7 +225,7 @@
222225 * Test a wide row of size 1,000,000 consisting of a ByteBuffer
223226 * @throws Throwable
224227 */
225- @Test(groups = "integration")
228+ @Test(groups = "long")
226229 public void wideByteRows() throws Throwable {
227230 Cluster.Builder builder = Cluster.builder();
228231 CCMBridge.CCMCluster c = CCMBridge.buildCluster(1, builder);
@@ -245,7 +248,7 @@
245248 * Test a row with a single extra large text value
246249 * @throws Throwable
247250 */
248- @Test(groups = "integration")
251+ @Test(groups = "short")
249252 public void largeText() throws Throwable {
250253 Cluster.Builder builder = Cluster.builder();
251254 CCMBridge.CCMCluster c = CCMBridge.buildCluster(1, builder);
@@ -268,7 +271,7 @@
268271 * Creates a table with 330 columns
269272 * @throws Throwable
270273 */
271- @Test(groups = "integration")
274+ @Test(groups = "short")
272275 public void wideTable() throws Throwable {
273276 Cluster.Builder builder = Cluster.builder();
274277 CCMBridge.CCMCluster c = CCMBridge.buildCluster(1, builder);