Skip to content

Commit af2c032

Browse files
authored
Use Hamcrest assertions instead of JUnit in messaging/messaging (helidon-io#1749) (helidon-io#5008)
1 parent e6c859d commit af2c032

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

messaging/messaging/src/test/java/io/helidon/messaging/MessagingTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021 Oracle and/or its affiliates.
2+
* Copyright (c) 2020, 2022 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.
@@ -40,7 +40,6 @@
4040
import static org.hamcrest.Matchers.equalTo;
4141
import static org.hamcrest.Matchers.is;
4242
import static org.junit.jupiter.api.Assertions.assertThrows;
43-
import static org.junit.jupiter.api.Assertions.assertTrue;
4443

4544
public class MessagingTest {
4645

@@ -488,6 +487,6 @@ void connectorsTypeTest() throws InterruptedException {
488487
.start();
489488

490489
testData.assertEquals();
491-
assertTrue(TestConnector.latch.await(500, TimeUnit.MILLISECONDS));
490+
assertThat(TestConnector.latch.await(500, TimeUnit.MILLISECONDS), is(true));
492491
}
493492
}

0 commit comments

Comments
 (0)