Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
aliszka committed Nov 13, 2024
1 parent b21c140 commit 9be400e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.stream.Stream;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

Expand All @@ -42,10 +43,12 @@ public static void testScheduler(Supplier<Result<Classification>> supplier,
assertNotNull(classification.getResult());
assertTrue(Arrays.asList(classification.getResult().getBasedOnProperties()).contains("description"));
assertTrue(Arrays.asList(classification.getResult().getClassifyProperties()).contains("tagged"));
assertEquals("running", classification.getResult().getStatus());
assertNotNull(classificationWithComplete);
assertNotNull(classificationWithComplete.getResult());
assertTrue(Arrays.asList(classificationWithComplete.getResult().getBasedOnProperties()).contains("description"));
assertTrue(Arrays.asList(classificationWithComplete.getResult().getClassifyProperties()).contains("tagged"));
assertNotEquals("running", classificationWithComplete.getResult().getStatus());
}

public static void testGetter(Supplier<Result<Classification>> supplierScheduler,
Expand Down

0 comments on commit 9be400e

Please sign in to comment.