Skip to content

Commit

Permalink
Test caller line data only when available (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Sep 15, 2018
1 parent 9fdef77 commit 93817ae
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -405,7 +405,7 @@ public void contextProperty() {
}

private void assumeStackTraceDetailsAvailable() {
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
StackTraceElement[] stackTraceElements = new Throwable().getStackTrace();
assumeThat(stackTraceElements[0].getLineNumber(), is(greaterThan(-1)));
}
}

0 comments on commit 93817ae

Please sign in to comment.