mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 15:31:53 +08:00
style: code format
This commit is contained in:
+5
-5
@@ -5,6 +5,10 @@ import org.hamcrest.TypeSafeMatcher;
|
||||
|
||||
public class DoesNotContainExceptionMatcher extends TypeSafeMatcher<String> {
|
||||
|
||||
public static DoesNotContainExceptionMatcher doesNotContainException() {
|
||||
return new DoesNotContainExceptionMatcher();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean matchesSafely(String logs) {
|
||||
return !logs.contains("Exception");
|
||||
@@ -18,10 +22,6 @@ public class DoesNotContainExceptionMatcher extends TypeSafeMatcher<String> {
|
||||
@Override
|
||||
protected void describeMismatchSafely(String logs, Description mismatchDescription) {
|
||||
mismatchDescription.appendText("found logs containing exceptions:\n")
|
||||
.appendText(logs.replaceAll("(?m)^", " "));
|
||||
}
|
||||
|
||||
public static DoesNotContainExceptionMatcher doesNotContainException() {
|
||||
return new DoesNotContainExceptionMatcher();
|
||||
.appendText(logs.replaceAll("(?m)^", " "));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user