Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test case for ShenyuClientRegisterEventPublisher #5417

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update ShenyuClientRegisterEventPublisherTest.java
  • Loading branch information
Divyansh200102 committed Jan 24, 2024
commit d4ccd79dc7e681db956a2150cd1470bac0f3deb5
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.shenyu.client.core.disruptor.ShenyuClientRegisterEventPublisher;
import org.apache.shenyu.register.client.api.ShenyuClientRegisterRepository;
import org.apache.shenyu.register.common.type.DataTypeParent;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;

Expand All @@ -33,13 +32,6 @@ public class ShenyuClientRegisterEventPublisherTest {
private DataTypeParent testData;
@Mock
private ShenyuClientRegisterRepository shenyuClientRegisterRepository;
private ShenyuClientRegisterEventPublisher publisher;

@BeforeEach
public void setUp() {
publisher = ShenyuClientRegisterEventPublisher.getInstance();
publisher.start(shenyuClientRegisterRepository);
}

@Test
public void testGetInstanceReturnsSameInstance() {
Expand Down
Loading