|
19 | 19 |
|
20 | 20 | /*
|
21 | 21 | * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
|
| 22 | + * Portions Copyright (c) 2020, Chris Fraire <[email protected]>. |
22 | 23 | */
|
23 | 24 | package org.opengrok.web.api.v1.controller;
|
24 | 25 |
|
25 | 26 | import static org.junit.Assert.assertEquals;
|
26 | 27 | import static org.mockito.Mockito.reset;
|
27 | 28 | import static org.mockito.Mockito.verify;
|
28 | 29 |
|
29 |
| -import java.io.IOException; |
30 |
| -import java.nio.file.Paths; |
31 |
| -import java.util.ArrayList; |
32 |
| -import java.util.List; |
33 |
| -import java.util.Map; |
34 |
| -import java.util.TreeMap; |
35 | 30 | import java.util.concurrent.CountDownLatch;
|
36 | 31 | import javax.servlet.http.HttpServletRequest;
|
37 | 32 | import javax.ws.rs.client.Entity;
|
38 | 33 | import javax.ws.rs.core.Application;
|
39 | 34 | import javax.ws.rs.core.Response;
|
40 |
| -import org.apache.commons.io.FileUtils; |
41 | 35 | import org.glassfish.jersey.internal.inject.AbstractBinder;
|
42 | 36 | import org.glassfish.jersey.server.ResourceConfig;
|
43 |
| -import org.glassfish.jersey.test.JerseyTest; |
44 | 37 | import org.junit.Assert;
|
45 |
| -import org.junit.Rule; |
46 | 38 | import org.junit.Test;
|
47 | 39 | import org.mockito.Mock;
|
48 | 40 | import org.mockito.MockitoAnnotations;
|
49 |
| -import org.opengrok.indexer.condition.ConditionalRun; |
50 |
| -import org.opengrok.indexer.condition.ConditionalRunRule; |
51 |
| -import org.opengrok.indexer.condition.RepositoryInstalled; |
52 | 41 | import org.opengrok.indexer.configuration.Configuration;
|
53 |
| -import org.opengrok.indexer.configuration.Project; |
54 | 42 | import org.opengrok.indexer.configuration.RuntimeEnvironment;
|
55 |
| -import org.opengrok.indexer.history.HistoryGuru; |
56 |
| -import org.opengrok.indexer.history.RepositoryInfo; |
57 |
| -import org.opengrok.indexer.util.TestRepository; |
58 | 43 | import org.opengrok.indexer.web.DummyHttpServletRequest;
|
59 | 44 | import org.opengrok.indexer.web.PageConfig;
|
60 | 45 | import org.opengrok.web.api.v1.suggester.provider.service.SuggesterService;
|
61 | 46 |
|
62 |
| -public class ConfigurationControllerTest extends JerseyTest { |
| 47 | +public class ConfigurationControllerTest extends OGKJerseyTest { |
63 | 48 |
|
64 | 49 | private RuntimeEnvironment env = RuntimeEnvironment.getInstance();
|
65 | 50 |
|
|
0 commit comments