Use Assert4J
This commit is contained in:
@@ -19,10 +19,10 @@ package org.springframework.cloud.zookeeper.discovery.watcher.presence;
|
||||
import java.util.Collections;
|
||||
|
||||
import org.apache.curator.x.discovery.ServiceCache;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.BDDAssertions.then;
|
||||
import static org.assertj.core.api.Fail.fail;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
@@ -42,7 +42,7 @@ public class DefaultDependencyPresenceOnStartupVerifierTests {
|
||||
// when:
|
||||
try {
|
||||
dependencyVerifier.verifyDependencyPresence(SERVICE_NAME, serviceCache, true);
|
||||
Assert.fail("Should throw no instances running exception");
|
||||
fail("Should throw no instances running exception");
|
||||
}
|
||||
catch (Exception e) {
|
||||
// then:
|
||||
|
||||
Reference in New Issue
Block a user