Closed sdaschner closed 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 :)
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!
Via Twitter: What is your take on Java Enterprise or Spring or some legacy JBoss or even Microprofile or maybe Reactive Java.
Via email: What about this separation of the projects, why are you using this extra system test project (incl. source code)?
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?
Thanks for joining!
You can find some more resources here:
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.