Skip to content

Commit

Permalink
fix: Ignore order in category options test [DHIS2-16094] [2.39]
Browse files Browse the repository at this point in the history
  • Loading branch information
muilpp committed Nov 1, 2023
1 parent 2e807ab commit 76e1519
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.io.IOException;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -622,8 +623,9 @@ void shouldReturnEventsGivenCategoryOptionCombo() {
"category options and combo of event " + e.getUid(),
() -> assertEquals("cr89ebDZrac", e.getAttributeOptionCombo()),
() ->
assertEquals(
"xwZ2u3WyQR0;M58XdOfhiJ7", e.getAttributeCategoryOptions()),
assertContainsOnly(
Set.of("xwZ2u3WyQR0", "M58XdOfhiJ7"),
Arrays.asList(e.getAttributeCategoryOptions().split(";"))),
() ->
assertEquals(
2,
Expand Down

0 comments on commit 76e1519

Please sign in to comment.