Skip to content

Commit c85bb3d

Browse files
tulinkryVladimir Kotal
authored andcommitted
adding git repository installed annotations
1 parent cf51835 commit c85bb3d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/web/PageConfigTest.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@
2222
*/
2323
package org.opengrok.indexer.web;
2424

25+
import static org.junit.Assert.assertEquals;
26+
import static org.junit.Assert.assertFalse;
27+
import static org.junit.Assert.assertNotNull;
28+
import static org.junit.Assert.assertNull;
29+
import static org.junit.Assert.assertTrue;
30+
import static org.junit.Assert.fail;
31+
2532
import java.io.File;
2633
import java.io.FileNotFoundException;
2734
import java.io.IOException;
2835
import java.nio.file.Files;
29-
import java.rmi.server.UnicastRemoteObject;
3036
import java.util.ArrayList;
3137
import java.util.Arrays;
3238
import java.util.List;
@@ -51,8 +57,6 @@
5157
import org.opengrok.indexer.history.HistoryGuru;
5258
import org.opengrok.indexer.util.TestRepository;
5359

54-
import static org.junit.Assert.*;
55-
5660
/**
5761
* Unit tests for the {@code PageConfig} class.
5862
*/
@@ -105,8 +109,8 @@ public void testRequestAttributes() {
105109
}
106110
}
107111

108-
@ConditionalRun(RepositoryInstalled.MercurialInstalled.class)
109112
@Test
113+
@ConditionalRun(RepositoryInstalled.MercurialInstalled.class)
110114
public void canProcessHistory() {
111115
// Expect no redirection (that is, empty string is returned) for a
112116
// file that exists.
@@ -246,6 +250,7 @@ public String getParameter(String name) {
246250
}
247251

248252
@Test
253+
@ConditionalRun(RepositoryInstalled.GitInstalled.class)
249254
public void testGetLatestRevisionValid() {
250255
DummyHttpServletRequest req1 = new DummyHttpServletRequest() {
251256
@Override
@@ -261,6 +266,7 @@ public String getPathInfo() {
261266
}
262267

263268
@Test
269+
@ConditionalRun(RepositoryInstalled.GitInstalled.class)
264270
public void testGetRevisionLocation() {
265271
DummyHttpServletRequest req1 = new DummyHttpServletRequest() {
266272
@Override
@@ -287,6 +293,7 @@ public String getQueryString() {
287293
}
288294

289295
@Test
296+
@ConditionalRun(RepositoryInstalled.GitInstalled.class)
290297
public void testGetRevisionLocationNullQuery() {
291298
DummyHttpServletRequest req1 = new DummyHttpServletRequest() {
292299
@Override
@@ -313,6 +320,7 @@ public String getQueryString() {
313320
}
314321

315322
@Test
323+
@ConditionalRun(RepositoryInstalled.GitInstalled.class)
316324
public void testGetLatestRevisionNotValid() {
317325
DummyHttpServletRequest req2 = new DummyHttpServletRequest() {
318326
@Override

0 commit comments

Comments
 (0)