Skip to content

Commit 9613e63

Browse files
authored
Use Hamcrest assertions instead of JUnit in microprofile/reactive-streams - backport main (helidon-io#1749) (helidon-io#6018)
1 parent 027ed18 commit 9613e63

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

microprofile/reactive-streams/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright (c) 2019, 2022 Oracle and/or its affiliates.
4+
Copyright (c) 2019, 2023 Oracle and/or its affiliates.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -68,6 +68,11 @@
6868
<artifactId>junit-jupiter-api</artifactId>
6969
<scope>test</scope>
7070
</dependency>
71+
<dependency>
72+
<groupId>org.hamcrest</groupId>
73+
<artifactId>hamcrest-all</artifactId>
74+
<scope>test</scope>
75+
</dependency>
7176
</dependencies>
7277

7378
<build>

microprofile/reactive-streams/src/test/java/io/helidon/microprofile/reactive/HelidonReactiveStreamsEngineTckTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 Oracle and/or its affiliates.
2+
* Copyright (c) 2020, 2023 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,9 @@
2626
import org.testng.annotations.BeforeClass;
2727
import org.testng.annotations.Test;
2828

29+
import static org.hamcrest.CoreMatchers.notNullValue;
30+
import static org.hamcrest.MatcherAssert.assertThat;
31+
2932
@Test
3033
public class HelidonReactiveStreamsEngineTckTest extends ReactiveStreamsTck<HelidonReactiveStreamsEngine> {
3134

@@ -64,6 +67,6 @@ public void after() {
6467

6568
@Test
6669
public void hasExecutor() {
67-
org.testng.Assert.assertNotNull(executor);
70+
assertThat(executor, notNullValue());
6871
}
6972
}

0 commit comments

Comments
 (0)