Skip to content

Commit a910ee3

Browse files
committed
closes #227
1 parent 09e60db commit a910ee3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/aventstack/extentreports/Status.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@Getter
1313
public enum Status {
14-
INFO("Info", 10), PASS("Pass", 20), SKIP("Skip", 30), WARNING("Warning", 40), FAIL("Fail", 50);
14+
INFO("Info", 10), PASS("Pass", 20), WARNING("Warning", 30), SKIP("Skip", 40), FAIL("Fail", 50);
1515

1616
private final Integer level;
1717
private final String name;
@@ -21,16 +21,16 @@ public enum Status {
2121
this.level = level;
2222
}
2323

24-
private static void resolveHierarchy(List<Status> status) {
25-
status.sort((Status s1, Status s2) -> s1.getLevel().compareTo(s2.getLevel()));
26-
}
27-
2824
public static List<Status> getResolvedHierarchy(List<Status> status) {
2925
List<Status> list = new ArrayList<>(status);
3026
resolveHierarchy(list);
3127
return list;
3228
}
3329

30+
private static void resolveHierarchy(List<Status> status) {
31+
status.sort((Status s1, Status s2) -> s1.getLevel().compareTo(s2.getLevel()));
32+
}
33+
3434
public static Status max(Collection<Status> status) {
3535
return status.stream().max(Comparator.comparing(Status::getLevel)).orElse(PASS);
3636
}

0 commit comments

Comments
 (0)