Upgrade of maven plugins (#951)
* Upgrade maven plugins * Upgrade maven plugins Some general code cleanup was necessary due to upgrade of PMD and checkstyle. Also needed to add Junit 4 as a dependency due to Mockito.timout issue found here: https://github.com/mockito/mockito/issues/152
This commit is contained in:
committed by
Ilkka Seppälä
parent
05d0f0babf
commit
218ba44dbf
@ -43,7 +43,8 @@ public class RetryTest {
|
||||
public void errors() {
|
||||
final BusinessException e = new BusinessException("unhandled");
|
||||
final Retry<String> retry = new Retry<>(
|
||||
() -> { throw e; },
|
||||
() -> {
|
||||
throw e; },
|
||||
2,
|
||||
0
|
||||
);
|
||||
@ -67,7 +68,8 @@ public class RetryTest {
|
||||
public void attempts() {
|
||||
final BusinessException e = new BusinessException("unhandled");
|
||||
final Retry<String> retry = new Retry<>(
|
||||
() -> { throw e; },
|
||||
() -> {
|
||||
throw e; },
|
||||
2,
|
||||
0
|
||||
);
|
||||
@ -91,7 +93,8 @@ public class RetryTest {
|
||||
public void ignore() throws Exception {
|
||||
final BusinessException e = new CustomerNotFoundException("customer not found");
|
||||
final Retry<String> retry = new Retry<>(
|
||||
() -> { throw e; },
|
||||
() -> {
|
||||
throw e; },
|
||||
2,
|
||||
0,
|
||||
ex -> CustomerNotFoundException.class.isAssignableFrom(ex.getClass())
|
||||
|
Reference in New Issue
Block a user