Skip to content

Commit 5463b13

Browse files
author
Vladimir Kotal
committed
use assertEquals()
1 parent b017dbe commit 5463b13

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opengrok-web/src/test/java/org/opengrok/web/api/v1/controller/SystemControllerTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@
4545
import java.text.SimpleDateFormat;
4646
import java.util.Date;
4747

48-
import static org.hamcrest.Matchers.containsString;
4948
import static org.junit.Assert.assertEquals;
5049
import static org.junit.Assert.assertNotEquals;
51-
import static org.junit.Assert.assertThat;
5250
import static org.junit.Assert.assertTrue;
5351

5452
public class SystemControllerTest extends OGKJerseyTest {
@@ -153,7 +151,7 @@ public void testIndexTime() throws IOException, ParseException {
153151
.request().get();
154152
String result = r.readEntity(String.class);
155153

156-
assertThat(result, containsString("2021-02-16T11:18:01.000+00:00"));
154+
assertEquals("\"2021-02-16T11:18:01.000+00:00\"", result);
157155

158156
// Cleanup
159157
IOUtils.removeRecursive(dataRoot);

0 commit comments

Comments
 (0)