From cd33c1361a47aa6f8a5e484c0025a0a4fab6cb51 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 14 Aug 2022 11:17:43 +0800 Subject: Code reformat. --- .../keuin/crosslink/messaging/router/ConcreteRouterTest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/test/java/com/keuin') diff --git a/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java b/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java index b9ace8d..3f6f9bd 100644 --- a/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java +++ b/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java @@ -6,12 +6,10 @@ import com.keuin.crosslink.messaging.action.RouteAction; import com.keuin.crosslink.messaging.filter.IFilter; import com.keuin.crosslink.messaging.filter.ReIdFilter; import com.keuin.crosslink.messaging.message.IMessage; -import com.keuin.crosslink.messaging.rule.IRule; import com.keuin.crosslink.messaging.rule.ImmutableRule; import com.keuin.crosslink.messaging.rule.ObjectType; import com.keuin.crosslink.messaging.sender.ISender; import com.keuin.crosslink.testable.FakeEndpoint; -import com.keuin.crosslink.testable.FakeRouter; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -21,14 +19,14 @@ import java.util.List; import java.util.UUID; import java.util.regex.Pattern; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; class ConcreteRouterTest { private ConcreteRouter router; - private FakeEndpoint ep1 = new FakeEndpoint("a"); - private FakeEndpoint ep2 = new FakeEndpoint("b"); - private FakeEndpoint ep3 = new FakeEndpoint("c"); + private final FakeEndpoint ep1 = new FakeEndpoint("a"); + private final FakeEndpoint ep2 = new FakeEndpoint("b"); + private final FakeEndpoint ep3 = new FakeEndpoint("c"); @BeforeEach void setUp() { -- cgit v1.2.3