Loading ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodAwareTestRunner.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -203,6 +203,10 @@ public class RavenwoodAwareTestRunner extends Runner implements Filterable, Orde // so record it and throw it when the test actually started. // so record it and throw it when the test actually started. log("Fatal: Exception detected in constructor: " + th.getMessage() + "\n" log("Fatal: Exception detected in constructor: " + th.getMessage() + "\n" + Log.getStackTraceString(th)); + Log.getStackTraceString(th)); if (true) { // TODO(b/363094647) Remove this throw th; } mExceptionInConstructor = new RuntimeException("Exception detected in constructor", mExceptionInConstructor = new RuntimeException("Exception detected in constructor", th); th); mDescription = Description.createTestDescription(testClass, "Constructor"); mDescription = Description.createTestDescription(testClass, "Constructor"); Loading Loading
ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodAwareTestRunner.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -203,6 +203,10 @@ public class RavenwoodAwareTestRunner extends Runner implements Filterable, Orde // so record it and throw it when the test actually started. // so record it and throw it when the test actually started. log("Fatal: Exception detected in constructor: " + th.getMessage() + "\n" log("Fatal: Exception detected in constructor: " + th.getMessage() + "\n" + Log.getStackTraceString(th)); + Log.getStackTraceString(th)); if (true) { // TODO(b/363094647) Remove this throw th; } mExceptionInConstructor = new RuntimeException("Exception detected in constructor", mExceptionInConstructor = new RuntimeException("Exception detected in constructor", th); th); mDescription = Description.createTestDescription(testClass, "Constructor"); mDescription = Description.createTestDescription(testClass, "Constructor"); Loading