jfrunit icon indicating copy to clipboard operation
jfrunit copied to clipboard

ExpectedEvent.with should support all primitive types

Open marcphilipp opened this issue 5 years ago • 1 comments

In addition to String and Duration, ExpectedEvent.with should support (at least) all primitive value types. Currently, calling with("name", 1) yields a IllegalArgumentException: https://github.com/gunnarmorling/jfrunit/blob/3848a086f60474733a7b3cc73dd0ecc95a856a55/src/main/java/dev/morling/jfrunit/ExpectedEvent.java#L82

marcphilipp avatar Dec 23 '20 16:12 marcphilipp

Definitely, all supported JFr event attribute types should be supported. PRs welcome of course :)

gunnarmorling avatar Dec 23 '20 16:12 gunnarmorling