Sonar fixes
- a few complexities - final method calls from ctor - raw exception throwing - useless overrides - loss of stack trace
This commit is contained in:
committed by
Artem Bilan
parent
7569d0ad79
commit
36c33bb5ab
@@ -124,8 +124,8 @@ public class IntegrationGraphControllerTests {
|
||||
|
||||
handlerAdapter.handle(request, response, handler);
|
||||
assertThat(response.getStatus()).isEqualTo(HttpStatus.OK.value());
|
||||
assertThat(response.getContentAsString()).contains("\"name\":\"nullChannel\",");
|
||||
assertThat(response.getContentAsString()).doesNotContain("\"name\":\"myChannel\",");
|
||||
assertThat(response.getContentAsString()).contains("\"name\":\"nullChannel\"");
|
||||
assertThat(response.getContentAsString()).doesNotContain("\"name\":\"myChannel\"");
|
||||
|
||||
context.getBeanFactory().registerSingleton("myChannel", new DirectChannel());
|
||||
|
||||
@@ -146,7 +146,7 @@ public class IntegrationGraphControllerTests {
|
||||
|
||||
handlerAdapter.handle(request, response, handler);
|
||||
assertThat(response.getStatus()).isEqualTo(HttpStatus.OK.value());
|
||||
assertThat(response.getContentAsString()).contains("\"name\":\"myChannel\",");
|
||||
assertThat(response.getContentAsString()).contains("\"name\":\"myChannel\"");
|
||||
|
||||
context.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user