@@ -118,7 +118,7 @@ public void hashAllBazelTargets_sourceTargets_modifiedSources() throws IOExcepti
118118
119119 @ Test
120120 public void getImpactedTargets () throws IOException {
121- when (bazelClientMock .queryForImpactedTargets (anySet (), anyObject (), Matchers . eq ( false ) )).thenReturn (
121+ when (bazelClientMock .queryForImpactedTargets (anySet (), anyObject ())).thenReturn (
122122 new HashSet <>(Arrays .asList ("rule1" , "rule3" ))
123123 );
124124 TargetHashingClientImpl client = new TargetHashingClientImpl (bazelClientMock );
@@ -138,7 +138,7 @@ public void getImpactedTargets() throws IOException {
138138
139139 @ Test
140140 public void getImpactedTargets_withAvoidQuery () throws IOException {
141- when (bazelClientMock .queryForImpactedTargets (anySet (), eq ("some_query" ), Matchers . eq ( false ) )).thenReturn (
141+ when (bazelClientMock .queryForImpactedTargets (anySet (), eq ("some_query" ))).thenReturn (
142142 new HashSet <>(Arrays .asList ("rule1" ))
143143 );
144144 TargetHashingClientImpl client = new TargetHashingClientImpl (bazelClientMock );
@@ -157,7 +157,7 @@ public void getImpactedTargets_withAvoidQuery() throws IOException {
157157
158158 @ Test
159159 public void getImpactedTargets_withHashAllTargets () throws IOException {
160- when (bazelClientMock .queryForImpactedTargets (anySet (), anyObject (), Matchers . eq ( true ) )).thenReturn (
160+ when (bazelClientMock .queryForImpactedTargets (anySet (), anyObject ())).thenReturn (
161161 new HashSet <>(Arrays .asList ("rule1" ))
162162 );
163163 TargetHashingClientImpl client = new TargetHashingClientImpl (bazelClientMock );
@@ -171,12 +171,13 @@ public void getImpactedTargets_withHashAllTargets() throws IOException {
171171 Set <String > impactedTargets = client .getImpactedTargets (hash1 , hash2 , null , true );
172172 Set <String > expectedSet = new HashSet <>();
173173 expectedSet .add ("rule1" );
174+ expectedSet .add ("rule3" );
174175 assertEquals (expectedSet , impactedTargets );
175176 }
176177
177178 @ Test
178179 public void getImpactedTargets_withHashAllTargets_withAvoidQuery () throws IOException {
179- when (bazelClientMock .queryForImpactedTargets (anySet (), eq ("some_query" ), Matchers . eq ( true ) )).thenReturn (
180+ when (bazelClientMock .queryForImpactedTargets (anySet (), eq ("some_query" ))).thenReturn (
180181 new HashSet <>(Arrays .asList ("rule1" ))
181182 );
182183 TargetHashingClientImpl client = new TargetHashingClientImpl (bazelClientMock );
0 commit comments