commit | c456ab99036c1619140e7c41836ce90d1e897422 | [log] [tgz] |
---|---|---|
author | cpovirk <cpovirk@google.com> | Fri Apr 19 16:14:49 2019 -0700 |
committer | Ron Shapiro <shapiro.rd@gmail.com> | Mon Apr 29 11:41:59 2019 -0400 |
tree | 61a4c8ab3d5c2fd0d8a66ff658f7793010e2e5e9 | |
parent | c96f04bc586e159b54cc4d86d2e211d106cbf912 [diff] |
Migrate from Expect.createAndEnableStackTrace() to Expect.create(). The two methods are now equivalent. (That is, Expect.create() enables stack traces, too.) Expect.createAndEnableStackTrace() will be deprecated and deleted. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=244440373
diff --git a/core/src/test/java/com/google/common/truth/ExpectFailureWithStackTraceTest.java b/core/src/test/java/com/google/common/truth/ExpectFailureWithStackTraceTest.java index 5a31c62..3542475 100644 --- a/core/src/test/java/com/google/common/truth/ExpectFailureWithStackTraceTest.java +++ b/core/src/test/java/com/google/common/truth/ExpectFailureWithStackTraceTest.java
@@ -40,7 +40,7 @@ /** Expect class that can examine the error message */ public static class FailingExpect implements TestRule { - final Expect delegate = Expect.createAndEnableStackTrace(); + final Expect delegate = Expect.create(); @Override public Statement apply(Statement base, Description description) {
diff --git a/core/src/test/java/com/google/common/truth/ExpectWithStackTest.java b/core/src/test/java/com/google/common/truth/ExpectWithStackTest.java index 41cca56..35ea6f7 100644 --- a/core/src/test/java/com/google/common/truth/ExpectWithStackTest.java +++ b/core/src/test/java/com/google/common/truth/ExpectWithStackTest.java
@@ -28,7 +28,7 @@ @RunWith(JUnit4.class) public class ExpectWithStackTest { - private final Expect expectWithTrace = Expect.createAndEnableStackTrace(); + private final Expect expectWithTrace = Expect.create(); @Rule public final TestRuleVerifier verifyAssertionError = new TestRuleVerifier(expectWithTrace);