Vertx-integration test (#2049)

* Vertx-integration test

* Vertx-integration test
This commit is contained in:
Grzegorz Piwowarek 2017-06-11 18:07:56 +02:00 committed by GitHub
parent 95283376eb
commit 080a4234a9
3 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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();