File tree Expand file tree Collapse file tree
examples/webserver/jersey/src/test/java/io/helidon/webserver/examples/jersey Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2017, 2021 Oracle and/or its affiliates.
2+ * Copyright (c) 2017, 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.
2727import org .junit .jupiter .api .BeforeAll ;
2828import org .junit .jupiter .api .Test ;
2929
30- import static org .junit .jupiter .api .Assertions .assertEquals ;
30+ import static org .hamcrest .CoreMatchers .is ;
31+ import static org .hamcrest .MatcherAssert .assertThat ;
3132
3233/**
3334 * The Jersey Client based example that tests the {@link HelloWorld} resource
@@ -63,8 +64,8 @@ public void testHelloWorld() throws Exception {
6364 .path ("jersey/hello" )
6465 .request ()
6566 .get ()) {
66- assertEquals ( "Hello World!" , response .readEntity ( String . class ),
67- "Unexpected response; status: " + response . getStatus ( ));
67+ assertThat ( "Unexpected response; status: " + response .getStatus ( ),
68+ response . readEntity ( String . class ), is ( "Hello World!" ));
6869 } finally {
6970 client .close ();
7071 }
You can’t perform that action at this time.
0 commit comments