Skip to content

Commit d976954

Browse files
committed
check the history first
1 parent 7816283 commit d976954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
import static org.junit.jupiter.api.Assertions.assertEquals;
5050
import static org.junit.jupiter.api.Assertions.assertNotEquals;
51+
import static org.junit.jupiter.api.Assertions.assertNotNull;
5152
import static org.opengrok.web.api.v1.controller.HistoryController.getHistoryDTO;
5253

5354
class HistoryControllerTest extends OGKJerseyTest {
@@ -130,6 +131,7 @@ void testHistoryGet() throws Exception {
130131
.get();
131132
HistoryDTO history = response.readEntity(new GenericType<>() {
132133
});
134+
assertNotNull(history);
133135
assertEquals(size, history.getEntries().size());
134136
assertEquals("Kryštof Tulinger <[email protected]>", history.getEntries().get(0).getAuthor());
135137

0 commit comments

Comments
 (0)