Removing cluster size parameters per test to accomodate one-time cluster creation now in use.
Change-Id: I8935cc0417e43e19d30f39064d2724231974a6c7
Showing
3 changed files
with
26 additions
and
26 deletions
... | @@ -71,7 +71,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -71,7 +71,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
71 | */ | 71 | */ |
72 | @Test | 72 | @Test |
73 | public void testBasicMapOperations() throws Throwable { | 73 | public void testBasicMapOperations() throws Throwable { |
74 | - basicMapOperationTests(3); | 74 | + basicMapOperationTests(); |
75 | } | 75 | } |
76 | 76 | ||
77 | /** | 77 | /** |
... | @@ -79,7 +79,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -79,7 +79,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
79 | */ | 79 | */ |
80 | @Test | 80 | @Test |
81 | public void testMapComputeOperations() throws Throwable { | 81 | public void testMapComputeOperations() throws Throwable { |
82 | - mapComputeOperationTests(3); | 82 | + mapComputeOperationTests(); |
83 | } | 83 | } |
84 | 84 | ||
85 | /** | 85 | /** |
... | @@ -87,7 +87,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -87,7 +87,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
87 | */ | 87 | */ |
88 | @Test | 88 | @Test |
89 | public void testMapListeners() throws Throwable { | 89 | public void testMapListeners() throws Throwable { |
90 | - mapListenerTests(3); | 90 | + mapListenerTests(); |
91 | } | 91 | } |
92 | 92 | ||
93 | /** | 93 | /** |
... | @@ -95,7 +95,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -95,7 +95,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
95 | */ | 95 | */ |
96 | @Test | 96 | @Test |
97 | public void testTransactionCommit() throws Throwable { | 97 | public void testTransactionCommit() throws Throwable { |
98 | - transactionCommitTests(3); | 98 | + transactionCommitTests(); |
99 | } | 99 | } |
100 | 100 | ||
101 | /** | 101 | /** |
... | @@ -103,10 +103,10 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -103,10 +103,10 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
103 | */ | 103 | */ |
104 | @Test | 104 | @Test |
105 | public void testTransactionRollback() throws Throwable { | 105 | public void testTransactionRollback() throws Throwable { |
106 | - transactionRollbackTests(3); | 106 | + transactionRollbackTests(); |
107 | } | 107 | } |
108 | 108 | ||
109 | - protected void basicMapOperationTests(int clusterSize) throws Throwable { | 109 | + protected void basicMapOperationTests() throws Throwable { |
110 | final byte[] rawFooValue = Tools.getBytesUtf8("Hello foo!"); | 110 | final byte[] rawFooValue = Tools.getBytesUtf8("Hello foo!"); |
111 | final byte[] rawBarValue = Tools.getBytesUtf8("Hello bar!"); | 111 | final byte[] rawBarValue = Tools.getBytesUtf8("Hello bar!"); |
112 | 112 | ||
... | @@ -235,7 +235,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -235,7 +235,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
235 | }).join(); | 235 | }).join(); |
236 | } | 236 | } |
237 | 237 | ||
238 | - public void mapComputeOperationTests(int clusterSize) throws Throwable { | 238 | + public void mapComputeOperationTests() throws Throwable { |
239 | final byte[] value1 = Tools.getBytesUtf8("value1"); | 239 | final byte[] value1 = Tools.getBytesUtf8("value1"); |
240 | final byte[] value2 = Tools.getBytesUtf8("value2"); | 240 | final byte[] value2 = Tools.getBytesUtf8("value2"); |
241 | final byte[] value3 = Tools.getBytesUtf8("value3"); | 241 | final byte[] value3 = Tools.getBytesUtf8("value3"); |
... | @@ -273,7 +273,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -273,7 +273,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
273 | } | 273 | } |
274 | 274 | ||
275 | 275 | ||
276 | - protected void mapListenerTests(int clusterSize) throws Throwable { | 276 | + protected void mapListenerTests() throws Throwable { |
277 | final byte[] value1 = Tools.getBytesUtf8("value1"); | 277 | final byte[] value1 = Tools.getBytesUtf8("value1"); |
278 | final byte[] value2 = Tools.getBytesUtf8("value2"); | 278 | final byte[] value2 = Tools.getBytesUtf8("value2"); |
279 | final byte[] value3 = Tools.getBytesUtf8("value3"); | 279 | final byte[] value3 = Tools.getBytesUtf8("value3"); |
... | @@ -333,7 +333,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -333,7 +333,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
333 | map.removeListener(listener).join(); | 333 | map.removeListener(listener).join(); |
334 | } | 334 | } |
335 | 335 | ||
336 | - protected void transactionCommitTests(int clusterSize) throws Throwable { | 336 | + protected void transactionCommitTests() throws Throwable { |
337 | final byte[] value1 = Tools.getBytesUtf8("value1"); | 337 | final byte[] value1 = Tools.getBytesUtf8("value1"); |
338 | final byte[] value2 = Tools.getBytesUtf8("value2"); | 338 | final byte[] value2 = Tools.getBytesUtf8("value2"); |
339 | 339 | ||
... | @@ -428,7 +428,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { | ... | @@ -428,7 +428,7 @@ public class AtomixConsistentMapTest extends AtomixTestBase { |
428 | 428 | ||
429 | } | 429 | } |
430 | 430 | ||
431 | - protected void transactionRollbackTests(int clusterSize) throws Throwable { | 431 | + protected void transactionRollbackTests() throws Throwable { |
432 | final byte[] value1 = Tools.getBytesUtf8("value1"); | 432 | final byte[] value1 = Tools.getBytesUtf8("value1"); |
433 | final byte[] value2 = Tools.getBytesUtf8("value2"); | 433 | final byte[] value2 = Tools.getBytesUtf8("value2"); |
434 | 434 | ... | ... |
... | @@ -60,10 +60,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -60,10 +60,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
60 | 60 | ||
61 | @Test | 61 | @Test |
62 | public void testRun() throws Throwable { | 62 | public void testRun() throws Throwable { |
63 | - leaderElectorRunTests(3); | 63 | + leaderElectorRunTests(); |
64 | } | 64 | } |
65 | 65 | ||
66 | - private void leaderElectorRunTests(int numServers) throws Throwable { | 66 | + private void leaderElectorRunTests() throws Throwable { |
67 | Atomix client1 = createAtomixClient(); | 67 | Atomix client1 = createAtomixClient(); |
68 | AtomixLeaderElector elector1 = client1.getResource("test-elector-run", | 68 | AtomixLeaderElector elector1 = client1.getResource("test-elector-run", |
69 | AtomixLeaderElector.class).join(); | 69 | AtomixLeaderElector.class).join(); |
... | @@ -87,10 +87,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -87,10 +87,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
87 | 87 | ||
88 | @Test | 88 | @Test |
89 | public void testWithdraw() throws Throwable { | 89 | public void testWithdraw() throws Throwable { |
90 | - leaderElectorWithdrawTests(3); | 90 | + leaderElectorWithdrawTests(); |
91 | } | 91 | } |
92 | 92 | ||
93 | - private void leaderElectorWithdrawTests(int numServers) throws Throwable { | 93 | + private void leaderElectorWithdrawTests() throws Throwable { |
94 | Atomix client1 = createAtomixClient(); | 94 | Atomix client1 = createAtomixClient(); |
95 | AtomixLeaderElector elector1 = client1.getResource("test-elector-withdraw", | 95 | AtomixLeaderElector elector1 = client1.getResource("test-elector-withdraw", |
96 | AtomixLeaderElector.class).join(); | 96 | AtomixLeaderElector.class).join(); |
... | @@ -125,10 +125,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -125,10 +125,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
125 | 125 | ||
126 | @Test | 126 | @Test |
127 | public void testAnoint() throws Throwable { | 127 | public void testAnoint() throws Throwable { |
128 | - leaderElectorAnointTests(3); | 128 | + leaderElectorAnointTests(); |
129 | } | 129 | } |
130 | 130 | ||
131 | - private void leaderElectorAnointTests(int numServers) throws Throwable { | 131 | + private void leaderElectorAnointTests() throws Throwable { |
132 | Atomix client1 = createAtomixClient(); | 132 | Atomix client1 = createAtomixClient(); |
133 | AtomixLeaderElector elector1 = client1.getResource("test-elector-anoint", | 133 | AtomixLeaderElector elector1 = client1.getResource("test-elector-anoint", |
134 | AtomixLeaderElector.class).join(); | 134 | AtomixLeaderElector.class).join(); |
... | @@ -181,10 +181,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -181,10 +181,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
181 | 181 | ||
182 | @Test | 182 | @Test |
183 | public void testPromote() throws Throwable { | 183 | public void testPromote() throws Throwable { |
184 | - leaderElectorPromoteTests(3); | 184 | + leaderElectorPromoteTests(); |
185 | } | 185 | } |
186 | 186 | ||
187 | - private void leaderElectorPromoteTests(int numServers) throws Throwable { | 187 | + private void leaderElectorPromoteTests() throws Throwable { |
188 | AtomixClient client1 = createAtomixClient(); | 188 | AtomixClient client1 = createAtomixClient(); |
189 | AtomixLeaderElector elector1 = client1.getResource("test-elector-promote", | 189 | AtomixLeaderElector elector1 = client1.getResource("test-elector-promote", |
190 | AtomixLeaderElector.class).join(); | 190 | AtomixLeaderElector.class).join(); |
... | @@ -241,10 +241,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -241,10 +241,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
241 | 241 | ||
242 | @Test | 242 | @Test |
243 | public void testLeaderSessionClose() throws Throwable { | 243 | public void testLeaderSessionClose() throws Throwable { |
244 | - leaderElectorLeaderSessionCloseTests(3); | 244 | + leaderElectorLeaderSessionCloseTests(); |
245 | } | 245 | } |
246 | 246 | ||
247 | - private void leaderElectorLeaderSessionCloseTests(int numServers) throws Throwable { | 247 | + private void leaderElectorLeaderSessionCloseTests() throws Throwable { |
248 | AtomixClient client1 = createAtomixClient(); | 248 | AtomixClient client1 = createAtomixClient(); |
249 | AtomixLeaderElector elector1 = client1.getResource("test-elector-leader-session-close", | 249 | AtomixLeaderElector elector1 = client1.getResource("test-elector-leader-session-close", |
250 | AtomixLeaderElector.class).join(); | 250 | AtomixLeaderElector.class).join(); |
... | @@ -265,10 +265,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -265,10 +265,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
265 | 265 | ||
266 | @Test | 266 | @Test |
267 | public void testNonLeaderSessionClose() throws Throwable { | 267 | public void testNonLeaderSessionClose() throws Throwable { |
268 | - leaderElectorNonLeaderSessionCloseTests(3); | 268 | + leaderElectorNonLeaderSessionCloseTests(); |
269 | } | 269 | } |
270 | 270 | ||
271 | - private void leaderElectorNonLeaderSessionCloseTests(int numServers) throws Throwable { | 271 | + private void leaderElectorNonLeaderSessionCloseTests() throws Throwable { |
272 | Atomix client1 = createAtomixClient(); | 272 | Atomix client1 = createAtomixClient(); |
273 | AtomixLeaderElector elector1 = client1.getResource("test-elector-non-leader-session-close", | 273 | AtomixLeaderElector elector1 = client1.getResource("test-elector-non-leader-session-close", |
274 | AtomixLeaderElector.class).join(); | 274 | AtomixLeaderElector.class).join(); |
... | @@ -289,10 +289,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { | ... | @@ -289,10 +289,10 @@ public class AtomixLeaderElectorTest extends AtomixTestBase { |
289 | 289 | ||
290 | @Test | 290 | @Test |
291 | public void testQueries() throws Throwable { | 291 | public void testQueries() throws Throwable { |
292 | - leaderElectorQueryTests(3); | 292 | + leaderElectorQueryTests(); |
293 | } | 293 | } |
294 | 294 | ||
295 | - private void leaderElectorQueryTests(int numServers) throws Throwable { | 295 | + private void leaderElectorQueryTests() throws Throwable { |
296 | Atomix client1 = createAtomixClient(); | 296 | Atomix client1 = createAtomixClient(); |
297 | Atomix client2 = createAtomixClient(); | 297 | Atomix client2 = createAtomixClient(); |
298 | AtomixLeaderElector elector1 = client1.getResource("test-elector-query", | 298 | AtomixLeaderElector elector1 = client1.getResource("test-elector-query", | ... | ... |
... | @@ -48,10 +48,10 @@ public class AtomixLongTest extends AtomixTestBase { | ... | @@ -48,10 +48,10 @@ public class AtomixLongTest extends AtomixTestBase { |
48 | 48 | ||
49 | @Test | 49 | @Test |
50 | public void testBasicOperations() throws Throwable { | 50 | public void testBasicOperations() throws Throwable { |
51 | - basicOperationsTest(3); | 51 | + basicOperationsTest(); |
52 | } | 52 | } |
53 | 53 | ||
54 | - protected void basicOperationsTest(int clusterSize) throws Throwable { | 54 | + protected void basicOperationsTest() throws Throwable { |
55 | Atomix atomix = createAtomixClient(); | 55 | Atomix atomix = createAtomixClient(); |
56 | AtomixCounter along = new AtomixCounter("test-long-basic-operations", | 56 | AtomixCounter along = new AtomixCounter("test-long-basic-operations", |
57 | atomix.getLong("test-long").join()); | 57 | atomix.getLong("test-long").join()); | ... | ... |
-
Please register or login to post a comment