@@ -34,7 +34,7 @@ public class ExceptionsTest{
3434 * Create a keyspace twice and a table twice.
3535 * Catch and test all the exception methods.
3636 */
37- @ Test (groups = "integration " )
37+ @ Test (groups = "short " )
3838 public void alreadyExistsException () throws Throwable {
3939 Cluster .Builder builder = Cluster .builder ();
4040 CCMBridge .CCMCluster cluster = CCMBridge .buildCluster (1 , builder );
@@ -96,7 +96,7 @@ public void authenticationException() throws Exception {
9696 * Tests DriverInternalError.
9797 * Tests basic message, rethrow, and copy abilities.
9898 */
99- @ Test (groups = "integration " )
99+ @ Test (groups = "unit " )
100100 public void driverInternalError () throws Exception {
101101 String errorMessage = "Test Message" ;
102102
@@ -118,7 +118,7 @@ public void driverInternalError() throws Exception {
118118 * Tests InvalidConfigurationInQueryException.
119119 * Tests basic message abilities.
120120 */
121- @ Test (groups = "integration " )
121+ @ Test (groups = "unit " )
122122 public void invalidConfigurationInQueryException () throws Exception {
123123 String errorMessage = "Test Message" ;
124124
@@ -133,7 +133,7 @@ public void invalidConfigurationInQueryException() throws Exception {
133133 * Tests InvalidQueryException.
134134 * Tests basic message and copy abilities.
135135 */
136- @ Test (groups = "integration " )
136+ @ Test (groups = "unit " )
137137 public void invalidQueryException () throws Exception {
138138 String errorMessage = "Test Message" ;
139139
@@ -151,7 +151,7 @@ public void invalidQueryException() throws Exception {
151151 * Tests InvalidTypeException.
152152 * Tests basic message and copy abilities.
153153 */
154- @ Test (groups = "integration " )
154+ @ Test (groups = "unit " )
155155 public void invalidTypeException () throws Exception {
156156 String errorMessage = "Test Message" ;
157157
@@ -170,14 +170,14 @@ public void invalidTypeException() throws Exception {
170170 * by attempting to build a cluster using the IP address "255.255.255.255"
171171 * and test all available exception methods.
172172 */
173- @ Test (groups = "integration " )
173+ @ Test (groups = "short " )
174174 public void noHostAvailableException () throws Exception {
175175 String ipAddress = "255.255.255.255" ;
176176 HashMap <InetAddress , String > errorsHashMap = new HashMap <InetAddress , String >();
177177 errorsHashMap .put (InetAddress .getByName (ipAddress ), "[/255.255.255.255] Cannot connect" );
178178
179179 try {
180- Cluster cluster = Cluster .builder ().addContactPoints ("255.255.255.255" ).build ();
180+ Cluster .builder ().addContactPoints ("255.255.255.255" ).build ();
181181 } catch (NoHostAvailableException e ) {
182182 assertEquals (e .getMessage (), String .format ("All host(s) tried for query failed (tried: [/%s])" , ipAddress ));
183183 assertEquals (e .getErrors (), errorsHashMap );
@@ -194,7 +194,7 @@ public void noHostAvailableException() throws Exception {
194194 * Then forcibly kill single node and attempt a read of the key at CL.ALL.
195195 * Catch and test all available exception methods.
196196 */
197- @ Test (groups = "integration " )
197+ @ Test (groups = "long " )
198198 public void readTimeoutException () throws Throwable {
199199 Cluster .Builder builder = Cluster .builder ();
200200 CCMBridge .CCMCluster cluster = CCMBridge .buildCluster (3 , builder );
@@ -238,7 +238,7 @@ public void readTimeoutException() throws Throwable {
238238 * Tests SyntaxError.
239239 * Tests basic message and copy abilities.
240240 */
241- @ Test (groups = "integration " )
241+ @ Test (groups = "unit " )
242242 public void syntaxError () throws Exception {
243243 String errorMessage = "Test Message" ;
244244
@@ -256,7 +256,7 @@ public void syntaxError() throws Exception {
256256 * Tests TraceRetrievalException.
257257 * Tests basic message and copy abilities.
258258 */
259- @ Test (groups = "integration " )
259+ @ Test (groups = "unit " )
260260 public void traceRetrievalException () throws Exception {
261261 String errorMessage = "Test Message" ;
262262
@@ -274,7 +274,7 @@ public void traceRetrievalException() throws Exception {
274274 * Tests TruncateException.
275275 * Tests basic message and copy abilities.
276276 */
277- @ Test (groups = "integration " )
277+ @ Test (groups = "unit " )
278278 public void truncateException () throws Exception {
279279 String errorMessage = "Test Message" ;
280280
@@ -292,7 +292,7 @@ public void truncateException() throws Exception {
292292 * Tests UnauthorizedException.
293293 * Tests basic message and copy abilities.
294294 */
295- @ Test (groups = "integration " )
295+ @ Test (groups = "unit " )
296296 public void unauthorizedException () throws Exception {
297297 String errorMessage = "Test Message" ;
298298
@@ -313,7 +313,7 @@ public void unauthorizedException() throws Exception {
313313 * and attempt to read and write the same key at CL.ALL.
314314 * Catch and test all available exception methods.
315315 */
316- @ Test (groups = "integration " )
316+ @ Test (groups = "long " )
317317 public void unavailableException () throws Throwable {
318318 Cluster .Builder builder = Cluster .builder ();
319319 CCMBridge .CCMCluster cluster = CCMBridge .buildCluster (3 , builder );
@@ -369,7 +369,7 @@ public void unavailableException() throws Throwable {
369369 * Then forcibly kill single node and attempt to write the same key at CL.ALL.
370370 * Catch and test all available exception methods.
371371 */
372- @ Test (groups = "integration " )
372+ @ Test (groups = "long " )
373373 public void writeTimeoutException () throws Throwable {
374374 Cluster .Builder builder = Cluster .builder ();
375375 CCMBridge .CCMCluster cluster = CCMBridge .buildCluster (3 , builder );
0 commit comments