Skip to content

Commit a4627bc

Browse files
committed
Move FullBucketRead test to use random bucket
1 parent 79ff0b3 commit a4627bc

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/test/java/com/basho/riak/client/api/commands/indexes/itest/ITestFullBucketRead.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,17 @@ public static void BeforeClass() throws ExecutionException, InterruptedException
4242
{
4343
Assume.assumeTrue(testTimeSeries);
4444
Assume.assumeTrue(testCoveragePlan);
45+
46+
bucketName = BinaryValue.create("ITestFullBucketRead" + new Random().nextLong());
4547
setupData();
4648
}
4749

50+
@AfterClass
51+
public static void AfterClass() throws ExecutionException, InterruptedException
52+
{
53+
resetAndEmptyBucket(defaultNamespace());
54+
}
55+
4856
private static void setupData() throws ExecutionException, InterruptedException
4957
{
5058
String indexName = "creationNo";
@@ -84,16 +92,6 @@ private static void setupCoveragePlan() throws ExecutionException, InterruptedEx
8492
}
8593
}
8694

87-
@AfterClass
88-
public static void cleanupData() throws ExecutionException, InterruptedException
89-
{
90-
resetAndEmptyBucket(bucketName);
91-
if (testBucketType)
92-
{
93-
resetAndEmptyBucket(defaultNamespace());
94-
}
95-
}
96-
9795
@Test
9896
public void readPlainTextValues() throws ExecutionException, InterruptedException, UnknownHostException
9997
{

0 commit comments

Comments
 (0)