Skip to content

Commit

Permalink
Removed class from coverage exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyraymond committed Apr 9, 2018
1 parent f910619 commit 2ff9b24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<exclude>org/araymond/joal/JackOfAllTradesApplication.class</exclude>
<exclude>org/araymond/joal/ApplicationReadyListener.class</exclude>
<exclude>org/araymond/joal/ApplicationClosingListener.class</exclude>
<exclude>org/araymond/joal/web/config/</exclude>
<exclude>org/araymond/joal/web/config/BeanConfig.class</exclude>
<exclude>org/araymond/joal/web/messages/</exclude>
<exclude>org/araymond/joal/web/services/corelistener/</exclude>
</excludes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ public void shouldRegisterInterceptors() {
verify(registration, times(1)).interceptors(Matchers.any());
verify(webSocketAuthenticationSecurityConfig, times(1)).createChannelInterceptors();
}

@Test
public void uselessTestButForCoverage() {
final AuthChannelInterceptorAdapter authAdaptor = mock(AuthChannelInterceptorAdapter.class);
final WebSocketAuthenticationSecurityConfig webSocketAuthenticationSecurityConfig = spy(new WebSocketAuthenticationSecurityConfig(authAdaptor));

webSocketAuthenticationSecurityConfig.registerStompEndpoints(null);
}
}

0 comments on commit 2ff9b24

Please sign in to comment.