Remove last few test uses of ConfiguredTarget#getConfiguration. Only uses are now internal, and the one that just snuck in...
@@ -69,9 +69,11 @@ public class TestSummaryTest {
}
private TestSummary.Builder getTemplateBuilder() {
+ BuildConfiguration configuration = Mockito.mock(BuildConfiguration.class);
+ when(configuration.checksum()).thenReturn("abcdef");
return TestSummary.newBuilder()
.setTarget(stubTarget)
- .setConfiguration(stubTarget.getConfiguration())
+ .setConfiguration(configuration)
.setStatus(BlazeTestStatus.PASSED)
.setNumCached(NOT_CACHED)
.setActionRan(true)
@@ -454,11 +456,9 @@ public class TestSummaryTest {
}
private ConfiguredTarget target(String path, String targetName) throws Exception {
- BuildConfiguration configuration = Mockito.mock(BuildConfiguration.class);
- when(configuration.checksum()).thenReturn("abcdef");
ConfiguredTarget target = Mockito.mock(ConfiguredTarget.class);
when(target.getLabel()).thenReturn(Label.create(path, targetName));
- when(target.getConfiguration()).thenReturn(configuration);
+ when(target.getConfigurationChecksum()).thenReturn("abcdef");
return target;
}
