Skip to content

Commit

Permalink
[AMQ-8354] Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaShupletsov committed Jun 27, 2024
1 parent 9aa294e commit 2dc8fc2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public void testInstallPluginWithDefaultRole() throws Exception {
assertThat(installedBroker).isInstanceOf(ReplicaAuthorizationBroker.class);
Broker nextBroker = ((BrokerFilter) installedBroker).getNext();
assertThat(nextBroker).isInstanceOf(ReplicaRoleManagementBroker.class);
assertThat(((BrokerFilter) nextBroker).getNext()).isEqualTo(broker);
Broker next = ((BrokerFilter) nextBroker).getNext();
assertThat(next).isInstanceOf(ReplicaJmxBroker.class);
assertThat(((BrokerFilter) next).getNext()).isEqualTo(broker);
assertThat(ReplicaRole.source).isEqualTo(pluginUnderTest.getRole());
}

Expand All @@ -80,6 +82,8 @@ public void testInstallPluginWithReplicaRole() throws Exception {
Broker nextBroker = ((BrokerFilter) installedBroker).getNext();
assertThat(nextBroker).isInstanceOf(ReplicaRoleManagementBroker.class);

assertThat(((BrokerFilter) nextBroker).getNext()).isEqualTo(broker);
Broker next = ((BrokerFilter) nextBroker).getNext();
assertThat(next).isInstanceOf(ReplicaJmxBroker.class);
assertThat(((BrokerFilter) next).getNext()).isEqualTo(broker);
}
}

0 comments on commit 2dc8fc2

Please sign in to comment.