Move "testing" string into BadgeConfiguration

This commit is contained in:
Ehren Kret
2021-09-20 16:33:57 -05:00
parent 17e8b77e88
commit 3172b571c6
2 changed files with 7 additions and 1 deletions

View File

@@ -14,6 +14,8 @@ import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
public class BadgeConfiguration {
public static final String CATEGORY_TESTING = "testing";
private final String id;
private final URL imageUrl;
private final String category;
@@ -43,4 +45,8 @@ public class BadgeConfiguration {
public String getCategory() {
return category;
}
public boolean isTestBadge() {
return CATEGORY_TESTING.equals(category);
}
}