Skip to content

Commit

Permalink
Appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCourtney committed Sep 24, 2024
1 parent e4852bb commit 0f1c970
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import static org.junit.jupiter.api.Assertions.fail;

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class EdslSchedulingTests {
class EdslSchedulingTests {
// Requests
private Playwright playwright;
private HasuraRequests hasura;
Expand Down Expand Up @@ -166,10 +166,10 @@ private ArrayList<Integer> insertAnchorActivities() throws IOException {
.add("growingDuration", 10800000L) // 3h
.build());
anchors.add(id1);
Integer id2 = hasura.insertActivityDirective(planId, "GrowBanana", "5h",
Json.createObjectBuilder()
.add("growingDuration", 10800000L) // 3h
.build());
hasura.insertActivityDirective(planId, "GrowBanana", "5h",
Json.createObjectBuilder()
.add("growingDuration", 10800000L) // 3h
.build());
anchors.add(id1);
Integer id3 = hasura.insertActivityDirective(planId, "GrowBanana", "10h",
Json.createObjectBuilder()
Expand Down Expand Up @@ -276,7 +276,7 @@ void schedulingCoexistenceGoal() throws IOException {
@Test
void schedulingCoexistenceGoalWithAnchor() throws IOException {
// Setup: Add Goal and Activities
ArrayList<Integer> anchors = insertAnchorActivities();
insertAnchorActivities();
hasura.createSchedulingSpecGoal("Coexistence Scheduling Test Goal", coexistenceGoalWithAnchorsDefinition, schedulingSpecId, 0);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ void executeSchedulingRunWithArguments() throws IOException {
assertEquals(2, activities.size());

assertTrue(activities.stream().anyMatch(
$ -> Objects.equals($.type(), "BiteBanana") && Objects.equals($.startOffset(), "24:00:00")
it -> Objects.equals(it.type(), "BiteBanana") && Objects.equals(it.startOffset(), "24:00:00")
));

assertTrue(activities.stream().anyMatch(
$ -> Objects.equals($.type(), "BiteBanana") && Objects.equals($.startOffset(), "30:00:00")
it -> Objects.equals(it.type(), "BiteBanana") && Objects.equals(it.startOffset(), "30:00:00")
));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void testQueryExternalProfiles() throws IOException {
assertEquals(1, activities.size());

assertTrue(activities.stream().anyMatch(
$ -> Objects.equals($.type(), "BiteBanana") && Objects.equals($.startOffset(), "03:00:00")
it -> Objects.equals(it.type(), "BiteBanana") && Objects.equals(it.startOffset(), "03:00:00")
));
}
}

0 comments on commit 0f1c970

Please sign in to comment.