mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 18:51:26 +00:00
created some tests for ErrorController
This commit is contained in:
@@ -40,7 +40,7 @@ public class ErrorCode {
|
||||
return format(traceCode(rootCause, rootCauseSpecificFrames));
|
||||
}
|
||||
|
||||
String throwableCode() {
|
||||
public String throwableCode() {
|
||||
return format(traceCode(throwable, ALL_FRAMES));
|
||||
}
|
||||
|
||||
|
||||
@@ -151,8 +151,8 @@ public class ErrorController implements FxController {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isPartialMatchFilter(ErrorDiscussion errorDiscussion) {
|
||||
return errorDiscussion.title.contains(" " +errorCode.methodCode());
|
||||
public boolean isPartialMatchFilter(ErrorDiscussion errorDiscussion) {
|
||||
return errorDiscussion.title.contains(" " + errorCode.methodCode());
|
||||
}
|
||||
|
||||
public int compareUpvoteCount(ErrorDiscussion ed1, ErrorDiscussion ed2) {
|
||||
|
||||
@@ -7,7 +7,8 @@ public class ErrorDiscussion {
|
||||
String url;
|
||||
Answer answer;
|
||||
|
||||
class Answer{
|
||||
|
||||
static class Answer{
|
||||
private String url;
|
||||
private int upvoteCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user