use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidExopackageBinaryIntegrationTest method testEditingColorForcesRebuild.
@Test
public void testEditingColorForcesRebuild() throws IOException {
workspace.replaceFileContents("res/com/sample/top/res/layout/top_layout.xml", "white", "black");
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 testEditingSecondaryDexClassForcesRebuildForNativeExopackage.
@Test
public void testEditingSecondaryDexClassForcesRebuildForNativeExopackage() throws IOException {
workspace.replaceFileContents("java/com/sample/lib/Sample.java", "package com", "package\ncom");
workspace.resetBuildLogFile();
workspace.runBuckBuild(NATIVE_EXOPACKAGE_TARGET).assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(NATIVE_EXOPACKAGE_TARGET);
}
use of com.facebook.buck.testutil.integration.BuckBuildLog in project buck by facebook.
the class AndroidExopackageBinaryIntegrationTest method testEditingKeystoreForcesRebuild.
@Test
public void testEditingKeystoreForcesRebuild() throws IOException {
workspace.replaceFileContents("keystores/debug.keystore.properties", "my_alias", "my_alias\n");
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 testEditingStringForcesRebuild.
@Test
public void testEditingStringForcesRebuild() throws IOException {
workspace.replaceFileContents("res/com/sample/base/res/values/strings.xml", "Hello", "Bye");
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 testEditingManifestForcesRebuild.
@Test
public void testEditingManifestForcesRebuild() throws IOException {
workspace.replaceFileContents("apps/multidex/AndroidManifest.xml", "versionCode=\"1\"", "versionCode=\"2\"");
workspace.resetBuildLogFile();
workspace.runBuckBuild(DEX_EXOPACKAGE_TARGET).assertSuccess();
BuckBuildLog buildLog = workspace.getBuildLog();
buildLog.assertTargetBuiltLocally(DEX_EXOPACKAGE_TARGET);
}
Aggregations