Clean up warnings
This commit is contained in:
parent
c572d0c469
commit
1d3da12204
|
|
@ -13,14 +13,14 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.web.socket.messaging;
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
package org.springframework.web.socket.messaging;
|
||||||
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.mockito.Mockito;
|
import org.mockito.Mockito;
|
||||||
|
|
||||||
import org.springframework.context.support.StaticApplicationContext;
|
import org.springframework.context.support.StaticApplicationContext;
|
||||||
|
|
@ -36,6 +36,7 @@ import org.springframework.messaging.support.MessageBuilder;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.ControllerAdvice;
|
import org.springframework.web.bind.annotation.ControllerAdvice;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for {@link WebSocketAnnotationMethodMessageHandler}.
|
* Unit tests for {@link WebSocketAnnotationMethodMessageHandler}.
|
||||||
|
|
@ -81,7 +82,6 @@ public class WebSocketAnnotationMethodMessageHandlerTests {
|
||||||
private static class TestController {
|
private static class TestController {
|
||||||
|
|
||||||
@MessageMapping("/exception")
|
@MessageMapping("/exception")
|
||||||
@SuppressWarnings("unused")
|
|
||||||
public void handleWithSimulatedException() {
|
public void handleWithSimulatedException() {
|
||||||
throw new IllegalStateException("simulated exception");
|
throw new IllegalStateException("simulated exception");
|
||||||
}
|
}
|
||||||
|
|
@ -103,19 +103,13 @@ public class WebSocketAnnotationMethodMessageHandlerTests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static class TestWebSocketAnnotationMethodMessageHandler extends WebSocketAnnotationMethodMessageHandler {
|
private static class TestWebSocketAnnotationMethodMessageHandler extends WebSocketAnnotationMethodMessageHandler {
|
||||||
|
|
||||||
|
|
||||||
public TestWebSocketAnnotationMethodMessageHandler(SimpMessageSendingOperations brokerTemplate,
|
public TestWebSocketAnnotationMethodMessageHandler(SimpMessageSendingOperations brokerTemplate,
|
||||||
SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel) {
|
SubscribableChannel clientInboundChannel, MessageChannel clientOutboundChannel) {
|
||||||
|
|
||||||
super(clientInboundChannel, clientOutboundChannel, brokerTemplate);
|
super(clientInboundChannel, clientOutboundChannel, brokerTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerHandler(Object handler) {
|
|
||||||
super.detectHandlerMethods(handler);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue