Skip to content

Commit

Permalink
PROT-133, PROT-134
Browse files Browse the repository at this point in the history
* provide tests for multi-clients with different annotations
  • Loading branch information
OlegDokuka committed Sep 18, 2018
1 parent 34b7135 commit 6b7ba3a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ public class ProteusSpringIntegrationTest {
ConfigurableListableBeanFactory beanFactory;

@Broadcast("test")
TestIdl clientTestIdl;
TestIdl broadcastTestIdlClient;

@Group("test")
TestIdl groupTestIdlClient;

@Destination(group = "test", destination = "test")
TestIdl destinationTestIdaClient;

@Group("test")
MetricsSnapshotHandler metricsSnapshotHandlerClient;
Expand All @@ -71,10 +77,11 @@ public class ProteusSpringIntegrationTest {
@Autowired
TestIdl serviceImpl;


@Test
public void shouldFindOneGeneratedBean() {
Assertions.assertEquals(DefaultClientTestIdl.class, clientTestIdl.getClass());
Assertions.assertEquals(DefaultClientTestIdl.class, broadcastTestIdlClient.getClass());
Assertions.assertEquals(DefaultClientTestIdl.class, groupTestIdlClient.getClass());
Assertions.assertEquals(DefaultClientTestIdl.class, destinationTestIdaClient.getClass());
Assertions.assertEquals(MetricsSnapshotHandlerClient.class, metricsSnapshotHandlerClient.getClass());
Assertions.assertEquals(BrokerInfoServiceClient.class, brokerInfoServiceClient.getClass());
Assertions.assertEquals(TestIdlImpl.class, serviceImpl.getClass());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ public class ProteusSpringIntegrationTest {
ConfigurableListableBeanFactory beanFactory;

@Broadcast("test")
TestIdl clientTestIdl;
TestIdl broadcastTestIdlClient;

@Group("test")
TestIdl groupTestIdlClient;

@Destination(group = "test", destination = "test")
TestIdl destinationTestIdaClient;

@Group("test")
MetricsSnapshotHandler metricsSnapshotHandlerClient;
Expand All @@ -59,10 +65,11 @@ public class ProteusSpringIntegrationTest {
@Autowired
TestIdl serviceImpl;


@Test
public void shouldFindOneGeneratedBean() {
Assertions.assertEquals(DefaultClientTestIdl.class, clientTestIdl.getClass());
Assertions.assertEquals(DefaultClientTestIdl.class, broadcastTestIdlClient.getClass());
Assertions.assertEquals(DefaultClientTestIdl.class, groupTestIdlClient.getClass());
Assertions.assertEquals(DefaultClientTestIdl.class, destinationTestIdaClient.getClass());
Assertions.assertEquals(MetricsSnapshotHandlerClient.class, metricsSnapshotHandlerClient.getClass());
Assertions.assertEquals(BrokerInfoServiceClient.class, brokerInfoServiceClient.getClass());
Assertions.assertEquals(TestIdlImpl.class, serviceImpl.getClass());
Expand Down

0 comments on commit 6b7ba3a

Please sign in to comment.