Migrate from deprecated THROW_ASSERTION_ERROR.fail() to equivalent assert_().fail().
@@ -88,7 +88,7 @@ public class TruthAssertThatTest {
@Test
public void testTruthFramesAreStrippedFromStackTrace() throws Exception {
try {
- Truth.THROW_ASSERTION_ERROR.fail("test");
+ Truth.assert_().fail("test");
} catch (AssertionError expected) {
for (StackTraceElement stackTraceElement : expected.getStackTrace()) {
if (!stackTraceElement.getClassName().contains("TruthAssertThatTest")) {
@@ -97,6 +97,6 @@ public class TruthAssertThatTest {
}
return;
}
- fail("Expected THROW_ASSERTION_ERROR.fail() to throw...");
+ fail("Expected assert_().fail() to throw...");
}
}
