Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Sep 24, 2020
1 parent 9e456a8 commit b04e361
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void verifyStackTopCleaned() {
StackTraceElement rootFrame = new StackTraceElement("Root", "rootMethod", "", -1);
StackTraceElement calleeFrame = new StackTraceElement("Callee", "callee", "", -1);
StackTraceElement[] input = {
new StackTraceElement("java.lang.Thread", "getStackTrace", "", -1),
new StackTraceElement("rocks.inspectit.ocelot.bootstrap.Instances", "getSome", "", -1),
new StackTraceElement("rocks.inspectit.ocelot.core.SomeClass", "doStuff", "", -1),
calleeFrame,
rootFrame,
Expand All @@ -28,15 +28,14 @@ void verifyStackTopCleaned() {
assertThat(st.get(1)).isSameAs(calleeFrame);
}


@Test
void verifyLambdaRemoved() {
Runnable r1 = () -> {
};
StackTraceElement rootFrame = new StackTraceElement("Root", "rootMethod", "", -1);
StackTraceElement calleeFrame = new StackTraceElement("Callee", "callee", "", -1);
StackTraceElement[] input = {
new StackTraceElement("java.lang.Thread", "getStackTrace", "", -1),
new StackTraceElement("rocks.inspectit.ocelot.bootstrap.Instances", "getSome", "", -1),
calleeFrame,
new StackTraceElement("not." + r1.getClass().getName(), "run", "", -1),
rootFrame,
Expand Down

0 comments on commit b04e361

Please sign in to comment.