File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
test/org/opensolaris/opengrok/web/api/v1/controller Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 26
26
import org .junit .AfterClass ;
27
27
import org .junit .Before ;
28
28
import org .junit .BeforeClass ;
29
+ import org .junit .ClassRule ;
29
30
import org .junit .Test ;
30
31
import org .opengrok .suggest .Suggester ;
32
+ import org .opensolaris .opengrok .condition .ConditionalRun ;
33
+ import org .opensolaris .opengrok .condition .ConditionalRunRule ;
34
+ import org .opensolaris .opengrok .condition .CtagsInstalled ;
31
35
import org .opensolaris .opengrok .configuration .RuntimeEnvironment ;
32
36
import org .opensolaris .opengrok .configuration .SuggesterConfig ;
33
37
import org .opensolaris .opengrok .index .Indexer ;
49
53
import static org .hamcrest .Matchers .containsInAnyOrder ;
50
54
import static org .junit .Assert .assertThat ;
51
55
56
+ @ ConditionalRun (CtagsInstalled .class )
52
57
public class SuggesterControllerProjectsDisabledTest extends JerseyTest {
53
58
59
+ @ ClassRule
60
+ public static ConditionalRunRule rule = new ConditionalRunRule ();
61
+
54
62
private static final RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
55
63
56
64
private static TestRepository repository ;
Original file line number Diff line number Diff line change 27
27
import org .junit .AfterClass ;
28
28
import org .junit .Before ;
29
29
import org .junit .BeforeClass ;
30
+ import org .junit .ClassRule ;
30
31
import org .junit .Test ;
31
32
import org .opengrok .suggest .Suggester ;
33
+ import org .opensolaris .opengrok .condition .ConditionalRun ;
34
+ import org .opensolaris .opengrok .condition .ConditionalRunRule ;
35
+ import org .opensolaris .opengrok .condition .CtagsInstalled ;
32
36
import org .opensolaris .opengrok .configuration .RuntimeEnvironment ;
33
37
import org .opensolaris .opengrok .configuration .SuggesterConfig ;
34
38
import org .opensolaris .opengrok .index .Indexer ;
60
64
import static org .junit .Assert .assertEquals ;
61
65
import static org .junit .Assert .assertThat ;
62
66
67
+ @ ConditionalRun (CtagsInstalled .class )
63
68
public class SuggesterControllerTest extends JerseyTest {
64
69
65
70
public static class Result {
@@ -83,6 +88,9 @@ private static class TermIncrementData {
83
88
public int increment ;
84
89
}
85
90
91
+ @ ClassRule
92
+ public static ConditionalRunRule rule = new ConditionalRunRule ();
93
+
86
94
private static final RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
87
95
88
96
private static final GenericType <List <Entry <String , Integer >>> popularityDataType =
You can’t perform that action at this time.
0 commit comments