2222import org .scassandra .http .client .Query ;
2323import org .slf4j .Logger ;
2424import org .slf4j .LoggerFactory ;
25+ import org .testng .annotations .AfterClass ;
2526import org .testng .annotations .AfterMethod ;
2627import org .testng .annotations .BeforeClass ;
2728import org .testng .annotations .Test ;
@@ -37,14 +38,19 @@ public class ConsistencyTest {
3738 private static final Logger logger = LoggerFactory .getLogger (ConsistencyTest .class );
3839 private ScassandraCluster sCluster ;
3940
40- @ BeforeClass
41+ @ BeforeClass ( groups = "short" )
4142 public void setUp () {
4243 sCluster = ScassandraCluster .builder ().withNodes (1 ).build ();
4344 sCluster .init ();
4445
4546 }
4647
47- @ AfterMethod
48+ @ AfterClass (groups = "short" )
49+ public void tearDownClass () {
50+ sCluster .stop ();
51+ }
52+
53+ @ AfterMethod (groups = "short" )
4854 public void tearDown () {
4955 clearActivityLog ();
5056 }
@@ -63,12 +69,13 @@ public Cluster.Builder builder() {
6369 .withPort (sCluster .getBinaryPort ()).withNettyOptions (nonQuietClusterCloseOptions );
6470 }
6571
72+ /**
73+ * This method checks the expected/sent serial consistency level against that which is received.
74+ * ConsistencyLevel.SERIAL is the default serial consistency level, so even when sent it will return
75+ * as null.
76+ */
6677 public void checkSerialCLMatch (ConsistencyLevel expected , String received ) {
67- /**
68- * This method checks the expected/sent serial consistency level against that which is received.
69- * ConsistencyLevel.SERIAL is the default serial consistency level, so even when sent it will return
70- * as null.
71- */
78+
7279 if (expected .equals (ConsistencyLevel .SERIAL )) {
7380 assertNull (received );
7481
0 commit comments