File tree 1 file changed +0
-30
lines changed
test/jdk/java/util/concurrent/ConcurrentLinkedQueue
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -281,36 +281,6 @@ public void pollActionsOneNodeSlack(
281
281
assertInvariants (q );
282
282
}
283
283
284
- /**
285
- * Actions that append an element, and are expected to
286
- * leave at most one slack node at tail.
287
- */
288
- @ DataProvider
289
- public Object [][] addActions () {
290
- return List .<Consumer <ConcurrentLinkedQueue >>of (
291
- q -> q .add (1 ),
292
- q -> q .offer (1 ))
293
- .stream ().map (x -> new Object []{ x }).toArray (Object [][]::new );
294
- }
295
-
296
- @ Test (dataProvider = "addActions" )
297
- public void addActionsOneNodeSlack (
298
- Consumer <ConcurrentLinkedQueue > addAction ) {
299
- ConcurrentLinkedQueue q = new ConcurrentLinkedQueue ();
300
- int n = 1 + rnd .nextInt (5 );
301
- for (int i = 0 ; i < n ; i ++) {
302
- boolean slack = next (tail (q )) != null ;
303
- addAction .accept (q );
304
- if (slack )
305
- assertNull (next (tail (q )));
306
- else {
307
- assertNotNull (next (tail (q )));
308
- assertNull (next (next (tail (q ))));
309
- }
310
- assertInvariants (q );
311
- }
312
- }
313
-
314
284
byte [] serialBytes (Object o ) {
315
285
try {
316
286
ByteArrayOutputStream bos = new ByteArrayOutputStream ();
You can’t perform that action at this time.
0 commit comments