diff options
author | Yigit Boyar <yboyar@google.com> | 2015-07-09 10:51:54 -0700 |
---|---|---|
committer | Yigit Boyar <yboyar@google.com> | 2015-07-14 16:52:35 -0700 |
commit | 24bec1cc542de69e0e21cc774469f20d34811ad9 (patch) | |
tree | 4709494d783cec648090ac30c59af03fd56aed88 /compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java | |
parent | 070c9f6208e036b6656446d36746d97cad541d21 (diff) | |
download | data-binding-24bec1cc542de69e0e21cc774469f20d34811ad9.tar.gz |
Localize Maven
This CL introduces a new development plugin that downloads all
dependencies into the given repository. This will allow us to
build data binding in build servers w/o internet connection.
By default, it is setup to disable public repositories to avoid
adding a new dependency w/o running the script.
Public repositories can be added by running -PaddRemoteRepos=true.
There is also a convenience script to fetch dependencies.
localize.sh
Bug: 19626302
Change-Id: I9d200550b76c3b60119cdbbdb4e1e7772d0da1d7
Diffstat (limited to 'compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java')
-rw-r--r-- | compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java b/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java index e627c99f..43efbb81 100644 --- a/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java +++ b/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java @@ -52,7 +52,7 @@ public class SimpleCompilationTest extends BaseCompilationTest { public void testEmptyCompilation() throws IOException, URISyntaxException, InterruptedException { prepareProject(); CompilationResult result = runGradle("assembleDebug"); - assertEquals(0, result.resultCode); + assertEquals(result.error, 0, result.resultCode); assertTrue("there should not be any errors " + result.error, StringUtils.isEmpty(result.error)); assertTrue("Test sanity, should compile fine", result.resultContainsText("BUILD SUCCESSFUL")); @@ -94,9 +94,9 @@ public class SimpleCompilationTest extends BaseCompilationTest { copyResourceTo("/layout/invalid_setter_binding.xml", "/app/src/main/res/layout/invalid_setter.xml"); CompilationResult result = runGradle("assembleDebug"); - assertNotEquals(0, result.resultCode); + assertNotEquals(result.output, 0, result.resultCode); List<ScopedException> bindingExceptions = result.getBindingExceptions(); - assertEquals(2, bindingExceptions.size()); + assertEquals(result.error, 2, bindingExceptions.size()); File broken = new File(testFolder, "/app/src/main/res/layout/broken.xml"); File invalidSetter = new File(testFolder, "/app/src/main/res/layout/invalid_setter.xml"); for (ScopedException exception : bindingExceptions) { |