Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Mar 12, 2021
1 parent 7b6cac2 commit 6670db9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public void testBeansCreated() {
assertThat(containers.size()).as("Context should contain 3 JCA endpoint containers").isEqualTo(3);

assertThat(context.getBeansOfType(JmsListenerContainerFactory.class))
.as("Context should contain 3 JmsListenerContainerFactory instances").hasSize(3);
.as("Context should contain 3 JmsListenerContainerFactory instances").hasSize(3);
}

@Test
public void testContainerConfiguration() throws Exception {
public void testContainerConfiguration() {
Map<String, DefaultMessageListenerContainer> containers = context.getBeansOfType(DefaultMessageListenerContainer.class);
ConnectionFactory defaultConnectionFactory = context.getBean(DEFAULT_CONNECTION_FACTORY, ConnectionFactory.class);
ConnectionFactory explicitConnectionFactory = context.getBean(EXPLICIT_CONNECTION_FACTORY, ConnectionFactory.class);
Expand All @@ -114,7 +114,7 @@ else if (container.getConnectionFactory().equals(explicitConnectionFactory)) {
}

@Test
public void testJcaContainerConfiguration() throws Exception {
public void testJcaContainerConfiguration() {
Map<String, JmsMessageEndpointManager> containers = context.getBeansOfType(JmsMessageEndpointManager.class);

assertThat(containers.containsKey("listener3")).as("listener3 not found").isTrue();
Expand Down

0 comments on commit 6670db9

Please sign in to comment.