Skip to content

Commit

Permalink
re #1229: Updated to expect subPlan additions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivakegg committed Jul 7, 2023
1 parent f3f6c2d commit 9de1f22
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public void underTermThresholdTest() throws IOException, TableNotFoundException,
Query mockQuery = createMock(Query.class);
config.setQuery(mockQuery);
EasyMock.expect(mockQuery.getId()).andReturn(new UUID(0, 0)).anyTimes();
metric.addSubPlan(EasyMock.eq("20210101_0"), EasyMock.anyString());

// set thresholds
config.setFinalMaxTermThreshold(2);
Expand Down Expand Up @@ -123,6 +124,7 @@ public void overTermThresholdTest() throws IOException, TableNotFoundException,
config.setQuery(mockQuery);
EasyMock.expect(mockQuery.getId()).andReturn(new UUID(0, 0)).anyTimes();
EasyMock.expect(mockQuery.duplicate("testQuery1")).andReturn(mockQuery).anyTimes();
metric.addSubPlan(EasyMock.eq("20210101_0"), EasyMock.anyString());

// set thresholds
config.setFinalMaxTermThreshold(1);
Expand Down Expand Up @@ -215,6 +217,7 @@ public void overTermThresholdAfterFirstReductionOverrideSecondTest() throws IOEx
EasyMock.expect(mockQuery.getId()).andReturn(new UUID(0, 0)).anyTimes();
EasyMock.expect(mockQuery.getQueryName()).andReturn("testQuery1").anyTimes();
EasyMock.expect(mockQuery.duplicate("testQuery1")).andReturn(mockQuery).anyTimes();
metric.addSubPlan(EasyMock.eq("20210101_0"), EasyMock.anyString());

// set thresholds
config.setFinalMaxTermThreshold(5);
Expand Down Expand Up @@ -262,6 +265,7 @@ public void rangeOverTermThresholdTest() throws IOException, TableNotFoundExcept
config.setQuery(mockQuery);
EasyMock.expect(mockQuery.getId()).andReturn(new UUID(0, 0)).anyTimes();
EasyMock.expect(mockQuery.duplicate("testQuery1")).andReturn(mockQuery).anyTimes();
metric.addSubPlan(EasyMock.eq("20210101_0"), EasyMock.anyString());

// set thresholds
config.setFinalMaxTermThreshold(1);
Expand Down

0 comments on commit 9de1f22

Please sign in to comment.