checkstyle MutableException
checkstyle EmptyBlock checkstyle fixRightCurly Script checkstyle EmptyStatement checkstyle RightCurly checkstyle TailingWhite checkstyle NeedBraces Fix the line separator in the `fixRightCurly.gradle`
This commit is contained in:
committed by
Artem Bilan
parent
c0b19e61b5
commit
842aded9a4
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.integration.test.support;
|
||||
/**
|
||||
* Validate a message payload. Create an anonymous instance or subclass this
|
||||
* Validate a message payload. Create an anonymous instance or subclass this
|
||||
* to validate a response payload.
|
||||
* @author David Turanski
|
||||
*
|
||||
|
||||
@@ -37,7 +37,8 @@ public class RequestResponseScenario {
|
||||
protected Message<? extends Object> getMessage(){
|
||||
if (message == null){
|
||||
return new GenericMessage<Object>(this.payload);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Convenience class for a single {@link RequestResponseScenario} test
|
||||
*
|
||||
*
|
||||
* @author David Turanski
|
||||
*/
|
||||
public abstract class SingleRequestResponseScenarioTests extends AbstractRequestResponseScenarioTests {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Provides several test support classes including for testing Spring Integration
|
||||
* Provides several test support classes including for testing Spring Integration
|
||||
* request-response message scenarios.
|
||||
*/
|
||||
package org.springframework.integration.test.support;
|
||||
|
||||
@@ -81,7 +81,8 @@ public class OnlyOnceTrigger implements Trigger {
|
||||
if (other.executionTime != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!executionTime.equals(other.executionTime)) {
|
||||
}
|
||||
else if (!executionTime.equals(other.executionTime)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Provides various test utilities, for example
|
||||
* Provides various test utilities, for example
|
||||
* {@link org.springframework.integration.test.util.TestUtils} provides convenience
|
||||
* helpers to easily retrieve private bean properties.
|
||||
* helpers to easily retrieve private bean properties.
|
||||
*/
|
||||
package org.springframework.integration.test.util;
|
||||
|
||||
@@ -69,7 +69,8 @@ public class PayloadMatcherTests {
|
||||
public void readableException() throws Exception {
|
||||
try {
|
||||
assertThat(message, hasPayload("woot"));
|
||||
} catch(AssertionError ae){
|
||||
}
|
||||
catch(AssertionError ae){
|
||||
assertTrue(ae.getMessage().contains("Expected: a Message with payload: "));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user