Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit c74d4e1

Browse files
committed
Rename
1 parent 9046f4d commit c74d4e1

File tree

1 file changed

+8
-8
lines changed
  • extensions/transfer/transfer-demo-protocols/src/test/java/com/microsoft/dagx/transfer/demo/protocols/stream

1 file changed

+8
-8
lines changed

extensions/transfer/transfer-demo-protocols/src/test/java/com/microsoft/dagx/transfer/demo/protocols/stream/DemoTopicManagerTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
*
1313
*/
1414
class DemoTopicManagerTest {
15-
private DemoTopicManager destinationManager;
15+
private DemoTopicManager topicManager;
1616

1717
@Test
1818
void verifyPubSub() throws Exception {
19-
destinationManager.start();
19+
topicManager.start();
2020

21-
var dataDestination = destinationManager.provision("destination").get();
21+
var dataDestination = topicManager.provision("destination").get();
2222

2323
Consumer<byte[]> consumer1 = EasyMock.createMock(Consumer.class);
2424
consumer1.accept(EasyMock.isA(byte[].class));
@@ -27,21 +27,21 @@ void verifyPubSub() throws Exception {
2727

2828
EasyMock.replay(consumer1, consumer2);
2929

30-
destinationManager.subscribe(dataDestination.getDestinationName(), dataDestination.getAccessToken(), consumer1);
31-
destinationManager.subscribe(dataDestination.getDestinationName(), dataDestination.getAccessToken(), consumer2);
30+
topicManager.subscribe(dataDestination.getDestinationName(), dataDestination.getAccessToken(), consumer1);
31+
topicManager.subscribe(dataDestination.getDestinationName(), dataDestination.getAccessToken(), consumer2);
3232

33-
destinationManager.connect("destination", dataDestination.getAccessToken()).getConsumer().accept("test".getBytes());
33+
topicManager.connect("destination", dataDestination.getAccessToken()).getConsumer().accept("test".getBytes());
3434
EasyMock.verify(consumer1, consumer2);
3535
}
3636

3737
@BeforeEach
3838
void setUp() {
39-
destinationManager = new DemoTopicManager(new Monitor() {
39+
topicManager = new DemoTopicManager(new Monitor() {
4040
});
4141
}
4242

4343
@AfterEach
4444
void tearDown() {
45-
destinationManager.stop();
45+
topicManager.stop();
4646
}
4747
}

0 commit comments

Comments
 (0)