36
36
import org .apache .accumulo .core .conf .Property ;
37
37
import org .apache .accumulo .core .data .NamespaceId ;
38
38
import org .apache .accumulo .core .data .TableId ;
39
- import org .apache .accumulo .harness .AccumuloClusterHarness ;
39
+ import org .apache .accumulo .harness .SharedMiniClusterBase ;
40
40
import org .apache .accumulo .server .ServerContext ;
41
41
import org .apache .accumulo .server .conf .store .NamespacePropKey ;
42
42
import org .apache .accumulo .server .conf .store .TablePropKey ;
43
43
import org .apache .accumulo .server .util .PropUtil ;
44
+ import org .junit .jupiter .api .AfterAll ;
45
+ import org .junit .jupiter .api .BeforeAll ;
44
46
import org .junit .jupiter .api .Test ;
45
47
import org .junit .jupiter .api .Timeout ;
46
48
47
- public class ZooKeeperPropertiesIT extends AccumuloClusterHarness {
49
+ public class ZooKeeperPropertiesIT extends SharedMiniClusterBase {
50
+
51
+ @ BeforeAll
52
+ public static void setup () throws Exception {
53
+ SharedMiniClusterBase .startMiniCluster ();
54
+ }
55
+
56
+ @ AfterAll
57
+ public static void teardown () {
58
+ SharedMiniClusterBase .stopMiniCluster ();
59
+ }
48
60
49
61
@ Test
50
62
public void testNoFiles () {
@@ -59,7 +71,7 @@ public void testNoFiles() {
59
71
@ Timeout (30 )
60
72
public void testTablePropUtils () throws AccumuloException , TableExistsException ,
61
73
AccumuloSecurityException , TableNotFoundException {
62
- ServerContext context = getServerContext ();
74
+ ServerContext context = getCluster (). getServerContext ();
63
75
64
76
try (AccumuloClient client = Accumulo .newClient ().from (getClientProps ()).build ()) {
65
77
@@ -111,7 +123,7 @@ public void testTablePropUtils() throws AccumuloException, TableExistsException,
111
123
@ Timeout (30 )
112
124
public void testNamespacePropUtils () throws AccumuloException , AccumuloSecurityException ,
113
125
NamespaceExistsException , NamespaceNotFoundException {
114
- ServerContext context = getServerContext ();
126
+ ServerContext context = getCluster (). getServerContext ();
115
127
116
128
try (AccumuloClient client = Accumulo .newClient ().from (getClientProps ()).build ()) {
117
129
0 commit comments