Skip to content

Commit

Permalink
Remove incorrect cache in AndroidLocalTest.java
Browse files Browse the repository at this point in the history
Fixes #8693

RELNOTES: None.
PiperOrigin-RevId: 255958717
  • Loading branch information
hlopko authored and copybara-github committed Jul 1, 2019
1 parent 8167f46 commit c2d088f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public BazelAndroidLocalTest() {
super(BazelAndroidSemantics.INSTANCE);
}

Artifact androidAllJarsPropFile;

@Override
protected AndroidSemantics createAndroidSemantics() {
return BazelAndroidSemantics.INSTANCE;
Expand Down Expand Up @@ -95,14 +93,6 @@ protected TransitiveInfoCollection getAndCheckTestSupport(RuleContext ruleContex
// throw an error.
protected Artifact getAndroidAllJarsPropertiesFile(RuleContext ruleContext)
throws RuleErrorException {
if (androidAllJarsPropFile == null) {
androidAllJarsPropFile = getAndroidAllJarsPropertiesFileHelper(ruleContext);
}
return androidAllJarsPropFile;
}

private Artifact getAndroidAllJarsPropertiesFileHelper(RuleContext ruleContext)
throws RuleErrorException {
Iterable<RunfilesProvider> runfilesProviders =
ruleContext.getPrerequisites("deps", Mode.TARGET, RunfilesProvider.class);
for (RunfilesProvider runfilesProvider : runfilesProviders) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,23 @@ public void testNoAndroidAllJarsPropertiesFileThrowsError() throws Exception {
@Override
public void checkMainClass(ConfiguredTarget target, String targetName, boolean coverageEnabled)
throws Exception {}

@Override
public void testDeployJar() throws Exception {
// TODO(jingwen): Implement actual test.
}

@Override
public void testInferredJavaPackageFromPackageName() throws Exception {
// TODO(jingwen): Implement actual test.
}

@Override
public void testFeatureFlagPolicyIsNotUsedIfFlagValuesNotUsed() throws Exception {
// TODO(jingwen): Implement actual test.
}

@Override
public void androidManifestMergerOrderAlphabeticalByConfiguration_MergeesSortedByPathInBinOrGen()
throws Exception {}
}

0 comments on commit c2d088f

Please sign in to comment.