style: code format

This commit is contained in:
ReaJason
2024-12-11 01:35:41 +08:00
parent c30a00146d
commit 1712608b0b
66 changed files with 2104 additions and 1876 deletions
@@ -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)^", " "));
}
}