Skip to content
This repository was archived by the owner on Mar 21, 2023. It is now read-only.

Commit be063e1

Browse files
author
Jochen Schalanda
committed
Use "old" AssertJ assertion for IllegalArgumentException
1 parent 07a5b50 commit be063e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/graylog/plugins/netflow/codecs/NetFlowCodecTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
import static org.assertj.core.api.Assertions.assertThat;
3434
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
35-
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
3635

3736
public class NetFlowCodecTest {
3837
@Rule
@@ -112,7 +111,7 @@ public void constructorFailsIfNetFlow9DefinitionsPathIsInvalidYaml() throws Exce
112111
NetFlowCodec.CK_NETFLOW9_DEFINITION_PATH, definitionsFile.getAbsolutePath());
113112
final Configuration configuration = new Configuration(configMap);
114113

115-
assertThatIllegalArgumentException()
114+
assertThatExceptionOfType(IllegalArgumentException.class)
116115
.isThrownBy(() -> new NetFlowCodec(configuration, Executors.newSingleThreadScheduledExecutor(), objectMapper))
117116
.withMessageMatching("Unable to parse NetFlow 9 definitions");
118117
}

0 commit comments

Comments
 (0)