quarkus

Connect Operation timed out while running mvn test

感情迁移 提交于 2021-02-11 15:27:21
问题 I have created a new quarkus project using online tool with kotlin extenstion. I am able to execute ./mvnw compile quarkus:dev and curl on http://localhost:8080. However I am getting following exception while executing ./mvnw test . [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running dev.sanket.ExampleResourceTest 2020-02-20 14:06:27,010 INFO [io.quarkus] (main) Quarkus 1.2.1.Final

Connect Operation timed out while running mvn test

百般思念 提交于 2021-02-11 15:26:26
问题 I have created a new quarkus project using online tool with kotlin extenstion. I am able to execute ./mvnw compile quarkus:dev and curl on http://localhost:8080. However I am getting following exception while executing ./mvnw test . [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running dev.sanket.ExampleResourceTest 2020-02-20 14:06:27,010 INFO [io.quarkus] (main) Quarkus 1.2.1.Final

Quarkus, Heroku and different environments

☆樱花仙子☆ 提交于 2021-02-11 13:26:30
问题 I'm currently developing a simple webapp with seperated frontend (Vue) and backend (quarkus REST API) project. For now, I've setup a MVP, where the frontend is displaying some simple data which is called from the backend. To get a working MVP i need to setup CORS support. However, first i want to explain my setup: Setup I'm starting developing environment of my frontend with npm run serve and of my backend with ./mvnw quarkus:dev . Frontend is running on localhost:8081 and backend running on

Quarkus, Heroku and different environments

醉酒当歌 提交于 2021-02-11 13:25:15
问题 I'm currently developing a simple webapp with seperated frontend (Vue) and backend (quarkus REST API) project. For now, I've setup a MVP, where the frontend is displaying some simple data which is called from the backend. To get a working MVP i need to setup CORS support. However, first i want to explain my setup: Setup I'm starting developing environment of my frontend with npm run serve and of my backend with ./mvnw quarkus:dev . Frontend is running on localhost:8081 and backend running on

How can I override a CDI bean in Quarkus for testing?

我们两清 提交于 2021-02-10 19:15:57
问题 I have a CDI bean like so: @Dependent class Parser { String[] parse(String expression) { return expression.split("::"); } } It gets injected into another bean like this: @ApplicationScoped class ParserService { @Inject Parser parser; //... } What I want to do is continue to use Parser in my regular code, but I want to use a "mock" for testing purposes. How can I achieve that? 回答1: All that needs to be done in this case is to create bean in test directory that looks something like the

How can I override a CDI bean in Quarkus for testing?

和自甴很熟 提交于 2021-02-10 19:13:53
问题 I have a CDI bean like so: @Dependent class Parser { String[] parse(String expression) { return expression.split("::"); } } It gets injected into another bean like this: @ApplicationScoped class ParserService { @Inject Parser parser; //... } What I want to do is continue to use Parser in my regular code, but I want to use a "mock" for testing purposes. How can I achieve that? 回答1: All that needs to be done in this case is to create bean in test directory that looks something like the

How can I override a CDI bean in Quarkus for testing?

北城余情 提交于 2021-02-10 19:13:07
问题 I have a CDI bean like so: @Dependent class Parser { String[] parse(String expression) { return expression.split("::"); } } It gets injected into another bean like this: @ApplicationScoped class ParserService { @Inject Parser parser; //... } What I want to do is continue to use Parser in my regular code, but I want to use a "mock" for testing purposes. How can I achieve that? 回答1: All that needs to be done in this case is to create bean in test directory that looks something like the

How can I override a CDI bean in Quarkus for testing?

人走茶凉 提交于 2021-02-10 19:10:54
问题 I have a CDI bean like so: @Dependent class Parser { String[] parse(String expression) { return expression.split("::"); } } It gets injected into another bean like this: @ApplicationScoped class ParserService { @Inject Parser parser; //... } What I want to do is continue to use Parser in my regular code, but I want to use a "mock" for testing purposes. How can I achieve that? 回答1: All that needs to be done in this case is to create bean in test directory that looks something like the

How can I override a CDI bean in Quarkus for testing?

三世轮回 提交于 2021-02-10 19:10:46
问题 I have a CDI bean like so: @Dependent class Parser { String[] parse(String expression) { return expression.split("::"); } } It gets injected into another bean like this: @ApplicationScoped class ParserService { @Inject Parser parser; //... } What I want to do is continue to use Parser in my regular code, but I want to use a "mock" for testing purposes. How can I achieve that? 回答1: All that needs to be done in this case is to create bean in test directory that looks something like the

How can I override a CDI bean in Quarkus for testing?

荒凉一梦 提交于 2021-02-10 19:09:23
问题 I have a CDI bean like so: @Dependent class Parser { String[] parse(String expression) { return expression.split("::"); } } It gets injected into another bean like this: @ApplicationScoped class ParserService { @Inject Parser parser; //... } What I want to do is continue to use Parser in my regular code, but I want to use a "mock" for testing purposes. How can I achieve that? 回答1: All that needs to be done in this case is to create bean in test directory that looks something like the