summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorYigit Boyar <yboyar@google.com>2015-10-16 16:51:55 -0700
committerYigit Boyar <yboyar@google.com>2015-10-16 16:51:55 -0700
commit876ba3272f17ed891ea455e7dd526d44e468757c (patch)
treea4e07816a8764ea7203ae52ecb346ec6baf6513b /compiler
parent88ce44ccc65e74a8553244ca246cc9f4c48483e0 (diff)
downloaddata-binding-876ba3272f17ed891ea455e7dd526d44e468757c.tar.gz
Fix broken test.
The test was using a sample which is not compliant with JavaBeans notation. It did not fail before because these tests are not compiled as data binding apps Change-Id: Ifad7a1d204d6e6e4b227bc68ccabdb650d73dec6
Diffstat (limited to 'compiler')
-rw-r--r--compiler/src/test/java/android/databinding/tool/expr/ExprModelTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/test/java/android/databinding/tool/expr/ExprModelTest.java b/compiler/src/test/java/android/databinding/tool/expr/ExprModelTest.java
index f9266009..41d2e981 100644
--- a/compiler/src/test/java/android/databinding/tool/expr/ExprModelTest.java
+++ b/compiler/src/test/java/android/databinding/tool/expr/ExprModelTest.java
@@ -486,7 +486,7 @@ public class ExprModelTest {
IdentifierExpr u = lb.addVariable("u", User.class.getCanonicalName(),
null);
final Expr uComment = parse(lb, "u.comment", FieldAccessExpr.class);
- final TernaryExpr uTernary = parse(lb, "u.useComment ? u.comment : `xx`", TernaryExpr.class);
+ final TernaryExpr uTernary = parse(lb, "u.getUseComment ? u.comment : `xx`", TernaryExpr.class);
mExprModel.seal();
assertTrue(uTernary.getPred().canBeInvalidated());
List<Expr> shouldRead = getShouldRead();
@@ -1039,7 +1039,7 @@ public class ExprModelTest {
public String comment;
@Bindable
- public boolean useComment() {
+ public boolean getUseComment() {
return true;
}