sdaschner / live-qa-sessions

Live Q&A sessions on Java
0 stars 0 forks source link

Effective Testing with Java Q&A #1

Closed sdaschner closed 4 years ago

sdaschner commented 4 years ago

Live on Wed, 8th April, 2020 at 6 pm CEST / 12 pm EDT / 9 am PDT, for 45 mins.

Watch here

For more information, which material to watch upfront, see this blog post.

AppLoidx commented 4 years ago

Hi there!

I am not a tester, but as a matter of duty I should write them :)

How to write tests so that we can change the application logic without any problems. Because it happens that we cover the code with tests, but then it turns out that we have to change something. And we have to delete all written tests.

I didn't write tests in Java EE stack, but I think there are no special differences with spring

thank u :)

dkrtic commented 4 years ago

Hi Sebastian,

how would you change the CoffeeOrderSystem class from your system test to test the JAX-RS endpoint secured by MP JWT Authentication ? Would you just start Keycloak or something similar with Docker and fetch the authorization token from it ? Or would you use JWTenizr or something else ?

Thanks!

sdaschner commented 4 years ago

Via Twitter: What is your take on Java Enterprise or Spring or some legacy JBoss or even Microprofile or maybe Reactive Java.

sdaschner commented 4 years ago

Via email: What about this separation of the projects, why are you using this extra system test project (incl. source code)?

sdaschner commented 4 years ago

Via email:

Your "use case test" approach with plain JUnit runner makes sense, but wouldn't it further improve the code quality to add Spock/Groovy testing?

Also is there an approach to use Testcontainers with your approach of a local system tests that gives short feedback/no-startup time?

sdaschner commented 4 years ago

Thanks for joining!

You can find some more resources here: