Skip to content

Commit 5c6be24

Browse files
author
Marcel Sauer
committed
fixed test
1 parent 09735d4 commit 5c6be24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/de/marcelsauer/profiler/recorder/RecorderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package de.marcelsauer.profiler.recorder;
22

3-
import static org.junit.Assert.assertTrue;
3+
import static org.junit.Assert.assertEquals;
44

55
import org.junit.Test;
66

@@ -48,7 +48,7 @@ public void thatStacksAreCorrectlyRecordedAndCounted() {
4848
Recorder.stop();
4949

5050
String next = InMemoryCountingCollector.getCollectedStacks().keySet().iterator().next();
51-
assertTrue(next.matches("\\{\"timestampMillis\" : \".*\", \"stack\" : \\[\"method_1\",\"method_A\",\"method_A_A\",\"method_A_A\",\"method_A_A\",\"method_A_A_A\",\"method_A_A\",\"method_A\",\"method_A\",\"method_A\",\"method_B\",\"method_B\",\"method_B\",\"method_B\"\\]\\}"));
51+
assertEquals("[StackEntry{methodName='method_1'}, StackEntry{methodName='method_A'}, StackEntry{methodName='method_A_A'}, StackEntry{methodName='method_A_A'}, StackEntry{methodName='method_A_A'}, StackEntry{methodName='method_A_A_A'}, StackEntry{methodName='method_A_A'}, StackEntry{methodName='method_A'}, StackEntry{methodName='method_A'}, StackEntry{methodName='method_A'}, StackEntry{methodName='method_B'}, StackEntry{methodName='method_B'}, StackEntry{methodName='method_B'}, StackEntry{methodName='method_B'}]", next);
5252

5353
}
5454

0 commit comments

Comments
 (0)