Skip to content

Commit fa27ecc

Browse files
committed
fixed duplicated code
1 parent 138e6b9 commit fa27ecc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/main/kotlin/org/evomaster/core/problem/enterprise/ExperimentalFaultCategory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ enum class ExperimentalFaultCategory(
7575
"TODO"),
7676

7777
//5xx: Web Frontend
78-
WEB_BROKEN_LINK(950, "Broken Link", "returnsBrokenLink",
78+
WEB_BROKEN_LINK(960, "Broken Link", "returnsBrokenLink",
7979
"TODO"),
8080
//6xx: mobile
8181

core/src/test/kotlin/org/evomaster/core/problem/enterprise/ExperimentalFaultCategoryTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class ExperimentalFaultCategoryTest {
1111

1212
@Test
1313
fun testUniqueCodes() {
14-
val total = DefinedFaultCategory.values().size + ExperimentalFaultCategory.values().size
14+
val total = DefinedFaultCategory.entries.size + ExperimentalFaultCategory.entries.size
1515

1616
val unique = Stream.concat(
17-
Arrays.stream(DefinedFaultCategory.values()),
18-
Arrays.stream(ExperimentalFaultCategory.values())
17+
Arrays.stream(DefinedFaultCategory.entries.toTypedArray()),
18+
Arrays.stream(ExperimentalFaultCategory.entries.toTypedArray())
1919
).map { it.code }
2020
.collect(Collectors.toSet())
2121
.size

0 commit comments

Comments
 (0)