Use Assert4J

This commit is contained in:
Ryan Baxter
2025-04-10 11:37:55 -04:00
parent afebc258b6
commit 1d8e9102b7

View File

@@ -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: