use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidBinaryIntegrationTest method testEditingSecondaryDexClassForcesRebuildForSimplePackage.
@Test
public void testEditingSecondaryDexClassForcesRebuildForSimplePackage() throws IOException {
workspace.replaceFileContents("java/com/sample/lib/Sample.java", "package com", "package\ncom");
workspace.resetBuildLogFile();
ProjectWorkspace.ProcessResult result = workspace.runBuckCommand("build", SIMPLE_TARGET);
result.assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(SIMPLE_TARGET);
}
use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidBinaryIntegrationTest method testNotAllJavaLibrariesFetched.
@Test
public void testNotAllJavaLibrariesFetched() throws IOException {
String target = "//apps/multidex:app_with_deeper_deps";
workspace.runBuckCommand("build", target).assertSuccess();
workspace.replaceFileContents("java/com/sample/app/MyApplication.java", "package com", "package\ncom");
workspace.resetBuildLogFile();
workspace.runBuckCommand("build", target).assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(target);
buildLog.assertTargetIsAbsent("//java/com/sample/lib:lib");
}
use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidExopackageBinaryIntegrationTest method testEditingImageForcesRebuild.
@Test
public void testEditingImageForcesRebuild() throws IOException {
workspace.copyFile("res/com/sample/top/res/drawable/tiny_white.png", "res/com/sample/top/res/drawable/tiny_something.png");
workspace.resetBuildLogFile();
workspace.runBuckBuild(DEX_EXOPACKAGE_TARGET).assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(DEX_EXOPACKAGE_TARGET);
}
use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidExopackageBinaryIntegrationTest method testEditingAssetForcesRebuild.
@Test
public void testEditingAssetForcesRebuild() throws IOException {
workspace.replaceFileContents("res/com/sample/base/buck-assets/hilarity.txt", "banana", "kiwi");
workspace.resetBuildLogFile();
workspace.runBuckBuild(DEX_EXOPACKAGE_TARGET).assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(DEX_EXOPACKAGE_TARGET);
}
use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidExopackageBinaryIntegrationTest method testEditingThirdPartyJarForcesRebuild.
@Test
public void testEditingThirdPartyJarForcesRebuild() throws IOException {
workspace.copyFile("third-party/kiwi-2.0.jar", "third-party/kiwi-current.jar");
workspace.resetBuildLogFile();
workspace.runBuckBuild(DEX_EXOPACKAGE_TARGET).assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(DEX_EXOPACKAGE_TARGET);
}
Aggregations