Polishing and removal of "this." for method invocations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -59,9 +59,9 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
public class SubscriptionMethodReturnValueHandlerTests {
|
||||
class SubscriptionMethodReturnValueHandlerTests {
|
||||
|
||||
public static final MimeType MIME_TYPE = new MimeType("text", "plain", StandardCharsets.UTF_8);
|
||||
private static final MimeType MIME_TYPE = new MimeType("text", "plain", StandardCharsets.UTF_8);
|
||||
|
||||
private static final String PAYLOAD = "payload";
|
||||
|
||||
@@ -95,16 +95,16 @@ public class SubscriptionMethodReturnValueHandlerTests {
|
||||
jsonMessagingTemplate.setMessageConverter(new MappingJackson2MessageConverter());
|
||||
this.jsonHandler = new SubscriptionMethodReturnValueHandler(jsonMessagingTemplate);
|
||||
|
||||
Method method = this.getClass().getDeclaredMethod("getData");
|
||||
Method method = getClass().getDeclaredMethod("getData");
|
||||
this.subscribeEventReturnType = new MethodParameter(method, -1);
|
||||
|
||||
method = this.getClass().getDeclaredMethod("getDataAndSendTo");
|
||||
method = getClass().getDeclaredMethod("getDataAndSendTo");
|
||||
this.subscribeEventSendToReturnType = new MethodParameter(method, -1);
|
||||
|
||||
method = this.getClass().getDeclaredMethod("handle");
|
||||
method = getClass().getDeclaredMethod("handle");
|
||||
this.messageMappingReturnType = new MethodParameter(method, -1);
|
||||
|
||||
method = this.getClass().getDeclaredMethod("getJsonView");
|
||||
method = getClass().getDeclaredMethod("getJsonView");
|
||||
this.subscribeEventJsonViewReturnType = new MethodParameter(method, -1);
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ public class SubscriptionMethodReturnValueHandlerTests {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void testHeadersPassedToMessagingTemplate() throws Exception {
|
||||
void testHeadersPassedToMessagingTemplate() throws Exception {
|
||||
String sessionId = "sess1";
|
||||
String subscriptionId = "subs1";
|
||||
String destination = "/dest";
|
||||
|
||||
Reference in New Issue
Block a user