Home
last modified time | relevance | path

Searched refs:getStackTrace (Results 1 – 25 of 132) sorted by relevance

123456

/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DCleanStackTrace.java51 assertEquals(here.getStackTrace()[0].getMethodName(), verifyLocation in cleanStackTraceAbstractClass()
52 .getStackTrace()[0].getMethodName()); in cleanStackTraceAbstractClass()
69 if (verifyLocation.getStackTrace()[i].getMethodName().equals(here in cleanStackTraceRegularClass()
70 .getStackTrace()[0].getMethodName())) { in cleanStackTraceRegularClass()
90 assertEquals(here.getStackTrace()[0].getMethodName(), verifyLocation in cleanStackTraceInterface()
91 .getStackTrace()[0].getMethodName()); in cleanStackTraceInterface()
DGeneralMocking.java131 e.getMessage().contains(here.getStackTrace()[0].getMethodName())); in verifyAdditionalInvocations()
143 assertEquals("throwThrowable", e.getStackTrace()[0].getMethodName()); in spyThrowingMethod()
158 assertEquals("throwOutOfMemoryError", e.getStackTrace()[0].getMethodName()); in spyErrorMethod()
170 assertEquals("throwNullPointerException", e.getStackTrace()[0].getMethodName()); in spyExceptingMethod()
183 assertEquals("callAbstractRealMethod", e.getStackTrace()[0].getMethodName()); in callAbstractRealMethod()
/external/guava/android/guava-tests/benchmark/com/google/common/base/
DLazyStackTraceBenchmark.java48 List<StackTraceElement> getStackTrace(Throwable t) { in getStackTrace() method
54 List<StackTraceElement> getStackTrace(Throwable t) { in getStackTrace() method
55 return asList(t.getStackTrace()); in getStackTrace()
64 for (StackTraceElement ste : getStackTrace(t)) { in timeIt()
74 abstract List<StackTraceElement> getStackTrace(Throwable t); in getStackTrace() method in LazyStackTraceBenchmark.Mode
79 recursionCount = stackDepth - new Throwable().getStackTrace().length - 1; in doBefore()
/external/guava/guava-tests/benchmark/com/google/common/base/
DLazyStackTraceBenchmark.java48 List<StackTraceElement> getStackTrace(Throwable t) { in getStackTrace() method
54 List<StackTraceElement> getStackTrace(Throwable t) { in getStackTrace() method
55 return asList(t.getStackTrace()); in getStackTrace()
64 for (StackTraceElement ste : getStackTrace(t)) { in timeIt()
74 abstract List<StackTraceElement> getStackTrace(Throwable t); in getStackTrace() method in LazyStackTraceBenchmark.Mode
79 recursionCount = stackDepth - new Throwable().getStackTrace().length - 1; in doBefore()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DStatusExceptionTest.java34 new StatusException(Status.CANCELLED, null, false) {}.getStackTrace(); in internalCtorRemovesStack()
42 new StatusException(Status.CANCELLED, null) {}.getStackTrace(); in normalCtorKeepsStack()
49 StackTraceElement[] trace = new StatusException(Status.CANCELLED) {}.getStackTrace(); in extendPreservesStack()
65 assertThat(exception.getStackTrace()).asList().containsExactly(element); in extendAndOverridePreservesStack()
DStatusRuntimeExceptionTest.java34 new StatusRuntimeException(Status.CANCELLED, null, false) {}.getStackTrace(); in internalCtorRemovesStack()
42 new StatusRuntimeException(Status.CANCELLED, null) {}.getStackTrace(); in normalCtorKeepsStack()
49 StackTraceElement[] trace = new StatusRuntimeException(Status.CANCELLED) {}.getStackTrace(); in extendPreservesStack()
66 assertThat(exception.getStackTrace()).asList().containsExactly(element); in extendAndOverridePreservesStack()
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DThrowsExceptionTest.java37 assertThat(throwable.getStackTrace()).describedAs("no stack trace, it's mock").isNull(); in should_throw_mock_exception_without_stacktrace()
46 …assertThat(throwableToRaise.getStackTrace()[0].getClassName()).isEqualTo(this.getClass().getName()… in should_fill_in_exception_stacktrace()
47 …assertThat(throwableToRaise.getStackTrace()[0].getMethodName()).isEqualTo("should_fill_in_exceptio… in should_fill_in_exception_stacktrace()
56 …assertThat(throwableToRaise.getStackTrace()[0].getClassName()).isEqualTo(ThrowsException.class.get… in should_fill_in_exception_stacktrace()
57 assertThat(throwableToRaise.getStackTrace()[0].getMethodName()).isEqualTo("answer"); in should_fill_in_exception_stacktrace()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/exc/
DExceptionDeserializationTest.java114 assertEquals(exp.getStackTrace().length, cloned.getStackTrace().length); in testSingleValueArrayDeserialization()
115 for (int i = 0; i < exp.getStackTrace().length; i ++) { in testSingleValueArrayDeserialization()
116 _assertEquality(i, exp.getStackTrace()[i], cloned.getStackTrace()[i]); in testSingleValueArrayDeserialization()
/external/mockito/src/test/java/org/mockitoutil/
DConditions.java24 StackTraceElement[] trace = traceElements.getStackTrace(); in onlyThoseClassesInStackTrace()
29 Arrays.toString(traceElements.getStackTrace())) in onlyThoseClassesInStackTrace()
71 actualMethodAtIndex = throwable.getStackTrace()[stackTraceIndex].getMethodName();
113 StackTraceElement[] trace = value.getStackTrace();
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DProblem.java51 for (int i = 0; i < cause.getStackTrace().length; i++) { in toString()
52 StackTraceElement ste = cause.getStackTrace()[i]; in toString()
54 if (i + 1 != cause.getStackTrace().length) in toString()
/external/guice/core/test/com/google/inject/spi/
DElementSourceTest.java46 assertEquals(10 /* call stack size */, elementSource.getStackTrace().length); in testCallStackSize()
65 StackTraceElement[] callStack = elementSource.getStackTrace(); in testGetCallStack_IntegrationTest()
84 int skippedCallStackSize = new Throwable().getStackTrace().length - 1; in testGetCallStack_IntegrationTest()
85 assertEquals(skippedCallStackSize + 15, elementSource.getStackTrace().length); in testGetCallStack_IntegrationTest()
DModuleSourceTest.java43 StackTraceElement[] callStack = moduleSource.getStackTrace(); in checkSizeOne()
51 StackTraceElement[] callStack = moduleSource.getStackTrace(); in checkSizeTwo()
64 StackTraceElement[] callStack = moduleSource.getStackTrace(); in checkSizeThree()
/external/mockito/src/main/java/org/mockito/exceptions/base/
DMockitoAssertionError.java32 unfilteredStackTrace = getStackTrace(); in MockitoAssertionError()
46 super.setStackTrace(error.getStackTrace()); in MockitoAssertionError()
DMockitoSerializationIssue.java34 unfilteredStackTrace = super.getStackTrace(); in filterStackTrace()
DMockitoException.java41 unfilteredStackTrace = getStackTrace(); in filterStackTrace()
/external/testng/src/main/java/org/testng/
DSkipException.java48 StackTraceElement[] originalStack= getStackTrace(); in reduceStackTrace()
51 newStack[0]= getStackTrace()[0]; in reduceStackTrace()
/external/mockito/src/test/java/org/mockito/exceptions/base/
DMockitoSerializationIssueTest.java27 …assertThat(Arrays.toString(issue.getStackTrace())).doesNotContain("MockitoSerializationIssueTest"); in should_filter_out_test_class_from_stacktrace_when_clean_flag_is_true()
40 … assertThat(Arrays.toString(issue.getStackTrace())).contains("MockitoSerializationIssueTest"); in should_keep_executing_class_in_stacktrace_when_clean_flag_is_false()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DExecutionSequencerTest.java263 return Thread.currentThread().getStackTrace().length;
269 .isLessThan(Thread.currentThread().getStackTrace().length + 100);
292 return Thread.currentThread().getStackTrace().length;
298 .isLessThan(Thread.currentThread().getStackTrace().length + 100);
343 return Thread.currentThread().getStackTrace().length;
379 return Thread.currentThread().getStackTrace().length;
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DExecutionSequencerTest.java263 return Thread.currentThread().getStackTrace().length;
269 .isLessThan(Thread.currentThread().getStackTrace().length + 100);
292 return Thread.currentThread().getStackTrace().length;
298 .isLessThan(Thread.currentThread().getStackTrace().length + 100);
343 return Thread.currentThread().getStackTrace().length;
379 return Thread.currentThread().getStackTrace().length;
/external/mockito/src/test/java/org/mockito/internal/junit/util/
DJUnitFailureHackerTest.java33 …Assertions.assertThat(actualExc.getStackTrace()).isEqualTo(failure.getException().getStackTrace()); in shouldReplaceException()
/external/guice/core/src/com/google/inject/spi/
DElementSource.java170 public StackTraceElement[] getStackTrace() { in getStackTrace() method in ElementSource
181 System.arraycopy(moduleSource.getStackTrace(), 0, callStack, chunkSize, modulesCallStackSize); in getStackTrace()
/external/cldr/tools/java/org/unicode/cldr/util/
DStackTracker.java106 return stackToString(Thread.currentThread().getStackTrace(), 2); in currentStack()
116 return Thread.currentThread().getStackTrace()[3 + skip]; in currentElement()
/external/guice/core/test/com/google/inject/
DMethodInterceptionTest.java234 StackTraceElement[] stackTraceElement = t.getStackTrace(); in testInterceptedMethodThrows()
285 lastElements = Thread.currentThread().getStackTrace(); in foo()
290 lastElements = Thread.currentThread().getStackTrace(); in bar()
295 lastElements = Thread.currentThread().getStackTrace(); in explode()
/external/webrtc/rtc_base/java/src/org/webrtc/
DThreadUtils.java186 concatStackTraces(caughtException.e.getStackTrace(), runtimeException.getStackTrace())); in invokeAtFrontUninterruptibly()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/exc/
DUtility.java34 public static String getStackTrace(final Throwable t) { in getStackTrace() method in Utility

123456