|
14 | 14 | */
|
15 | 15 | package com.ericsson.eiffel.remrem.generate.integrationtest;
|
16 | 16 |
|
| 17 | +import com.ericsson.eiffel.semantics.events.EiffelActivityFinishedEventMeta; |
| 18 | +import com.google.gson.Gson; |
| 19 | +import com.google.gson.GsonBuilder; |
17 | 20 | import com.google.gson.JsonParser;
|
18 |
| -import com.jayway.restassured.RestAssured; |
19 | 21 |
|
| 22 | +import com.google.gson.ReflectionAccessFilter; |
| 23 | +import io.restassured.RestAssured; |
20 | 24 | import org.apache.http.HttpStatus;
|
21 | 25 | import org.hamcrest.Matchers;
|
22 | 26 | import org.junit.Before;
|
23 | 27 | import org.junit.Test;
|
24 | 28 | import org.junit.runner.RunWith;
|
25 | 29 | import org.springframework.beans.factory.annotation.Value;
|
| 30 | +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
26 | 31 | import org.springframework.boot.test.context.SpringBootTest;
|
27 | 32 | import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
28 | 33 | import org.springframework.test.context.ActiveProfiles;
|
29 |
| -import org.springframework.test.context.junit4.SpringRunner; |
| 34 | +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
30 | 35 |
|
31 | 36 | import java.io.File;
|
32 | 37 | import java.io.IOException;
|
|
39 | 44 | import java.util.jar.JarFile;
|
40 | 45 | import java.util.jar.Manifest;
|
41 | 46 |
|
42 |
| -import static com.jayway.restassured.RestAssured.given; |
| 47 | +import static io.restassured.RestAssured.given; |
43 | 48 | import static org.junit.Assert.assertFalse;
|
44 | 49 | import static org.junit.Assert.assertNull;
|
45 | 50 | import static org.junit.Assert.assertTrue;
|
46 | 51 |
|
47 | 52 | @ActiveProfiles("integration-test")
|
48 |
| -@RunWith(SpringRunner.class) |
| 53 | +@RunWith(SpringJUnit4ClassRunner.class) |
49 | 54 | @SpringBootTest(webEnvironment=WebEnvironment.RANDOM_PORT)
|
| 55 | +@EnableAutoConfiguration |
50 | 56 | public class EiffelRemremControllerIT {
|
51 | 57 | JsonParser parser = new JsonParser();
|
52 | 58 |
|
@@ -183,6 +189,12 @@ public void testGetEventTypes() throws Exception {
|
183 | 189 | .body(Matchers.containsString("EiffelArtifactPublishedEvent"))
|
184 | 190 | .body(Matchers.containsString("EiffelActivityFinishedEvent"))
|
185 | 191 | .body(Matchers.containsString("EiffelActivityStartedEvent"));
|
| 192 | + Object r = given() |
| 193 | + .header("Authorization", credentials) |
| 194 | + .when() |
| 195 | + .get("/event_types/eiffelsemantics") |
| 196 | + .then(); |
| 197 | + r.toString(); |
186 | 198 | }
|
187 | 199 |
|
188 | 200 | @Test
|
|
0 commit comments