Vertx-integration test (#2049)
* Vertx-integration test * Vertx-integration test
This commit is contained in:
parent
95283376eb
commit
080a4234a9
|
@ -23,10 +23,10 @@ import io.vertx.core.Vertx;
|
|||
public class VertxSpringApplication {
|
||||
|
||||
@Autowired
|
||||
ServerVerticle serverVerticle;
|
||||
private ServerVerticle serverVerticle;
|
||||
|
||||
@Autowired
|
||||
ServiceVerticle serviceVerticle;
|
||||
private ServiceVerticle serviceVerticle;
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(VertxSpringApplication.class, args);
|
||||
|
|
|
@ -15,8 +15,10 @@ import io.vertx.core.json.Json;
|
|||
@Component
|
||||
public class ServiceVerticle extends AbstractVerticle {
|
||||
|
||||
public static final String GET_ALL_ARTICLES = "get.artilces.all";
|
||||
public static final String GET_ALL_ARTICLES = "get.articles.all";
|
||||
|
||||
private final ObjectMapper mapper = Json.mapper;
|
||||
|
||||
@Autowired
|
||||
private ArticleService articleService;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@SpringBootTest
|
||||
public class VertxSpringApplicationTests {
|
||||
public class VertxSpringApplicationIntegrationTest {
|
||||
|
||||
private TestRestTemplate restTemplate = new TestRestTemplate();
|
||||
|
Loading…
Reference in New Issue