Skip to content

Commit be9f9ce

Browse files
committed
Remove unnecessary times(1)
1 parent 322ae57 commit be9f9ce

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/test/java/rx/SingleTest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,8 @@ public void takeUntilSuccess() {
13701370
other.sendOnSuccess("one");
13711371

13721372
result.assertError(CancellationException.class);
1373-
verify(sSource, times(1)).unsubscribe();
1374-
verify(sOther, times(1)).unsubscribe();
1373+
verify(sSource).unsubscribe();
1374+
verify(sOther).unsubscribe();
13751375
}
13761376

13771377
@Test
@@ -1388,8 +1388,8 @@ public void takeUntilSourceSuccess() {
13881388
source.sendOnSuccess("one");
13891389

13901390
result.assertValue("one");
1391-
verify(sSource, times(1)).unsubscribe();
1392-
verify(sOther, times(1)).unsubscribe();
1391+
verify(sSource).unsubscribe();
1392+
verify(sOther).unsubscribe();
13931393
}
13941394

13951395
@Test
@@ -1406,8 +1406,8 @@ public void takeUntilNext() {
14061406
other.sendOnNext("one");
14071407

14081408
result.assertError(CancellationException.class);
1409-
verify(sSource, times(1)).unsubscribe();
1410-
verify(sOther, times(1)).unsubscribe();
1409+
verify(sSource).unsubscribe();
1410+
verify(sOther).unsubscribe();
14111411
}
14121412

14131413
@Test
@@ -1424,8 +1424,8 @@ public void takeUntilSourceSuccessObservable() {
14241424
source.sendOnSuccess("one");
14251425

14261426
result.assertValue("one");
1427-
verify(sSource, times(1)).unsubscribe();
1428-
verify(sOther, times(1)).unsubscribe();
1427+
verify(sSource).unsubscribe();
1428+
verify(sOther).unsubscribe();
14291429
}
14301430

14311431
@Test
@@ -1443,8 +1443,8 @@ public void takeUntilSourceError() {
14431443
source.sendOnError(error);
14441444

14451445
result.assertError(error);
1446-
verify(sSource, times(1)).unsubscribe();
1447-
verify(sOther, times(1)).unsubscribe();
1446+
verify(sSource).unsubscribe();
1447+
verify(sOther).unsubscribe();
14481448
}
14491449

14501450
@Test
@@ -1462,8 +1462,8 @@ public void takeUntilSourceErrorObservable() {
14621462
source.sendOnError(error);
14631463

14641464
result.assertError(error);
1465-
verify(sSource, times(1)).unsubscribe();
1466-
verify(sOther, times(1)).unsubscribe();
1465+
verify(sSource).unsubscribe();
1466+
verify(sOther).unsubscribe();
14671467
}
14681468

14691469
@Test
@@ -1481,8 +1481,8 @@ public void takeUntilOtherError() {
14811481
other.sendOnError(error);
14821482

14831483
result.assertError(error);
1484-
verify(sSource, times(1)).unsubscribe();
1485-
verify(sOther, times(1)).unsubscribe();
1484+
verify(sSource).unsubscribe();
1485+
verify(sOther).unsubscribe();
14861486
}
14871487

14881488
@Test
@@ -1500,8 +1500,8 @@ public void takeUntilOtherErrorObservable() {
15001500
other.sendOnError(error);
15011501

15021502
result.assertError(error);
1503-
verify(sSource, times(1)).unsubscribe();
1504-
verify(sOther, times(1)).unsubscribe();
1503+
verify(sSource).unsubscribe();
1504+
verify(sOther).unsubscribe();
15051505
}
15061506

15071507
@Test
@@ -1518,8 +1518,8 @@ public void takeUntilOtherCompleted() {
15181518
other.sendOnCompleted();
15191519

15201520
result.assertError(CancellationException.class);
1521-
verify(sSource, times(1)).unsubscribe();
1522-
verify(sOther, times(1)).unsubscribe();
1521+
verify(sSource).unsubscribe();
1522+
verify(sOther).unsubscribe();
15231523

15241524
}
15251525

0 commit comments

Comments
 (0)