From 9dc8eaf69e2eb743a92b924a3d615c13aee2bfca Mon Sep 17 00:00:00 2001 From: cpovirk Date: Fri, 31 May 2019 16:52:55 -0700 Subject: [PATCH] Update docs for the Truth migration from an `actual()` method to an `actual` field. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=250982073 --- docs/bugpattern/ChainedAssertionLosesContext.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/bugpattern/ChainedAssertionLosesContext.md b/docs/bugpattern/ChainedAssertionLosesContext.md index e250731186d..dcb2f800ebf 100644 --- a/docs/bugpattern/ChainedAssertionLosesContext.md +++ b/docs/bugpattern/ChainedAssertionLosesContext.md @@ -6,7 +6,7 @@ Before: ``` class MyProtoSubject { public void hasFoo(Foo expected) { - assertThat(actual().foo()).isEqualTo(expected); + assertThat(actual.foo()).isEqualTo(expected); } } ``` @@ -16,7 +16,7 @@ After: ``` class MyProtoSubject { public void hasFoo(Foo expected) { - check("foo()").that(actual().foo()).isEqualTo(expected); + check("foo()").that(actual.foo()).isEqualTo(expected); } } ```