Articles, Home

Integration Testing with Payara Micro

It should go without saying that in any piece of development testing is important. While unit testing can (and should) be used to test the individual components which make up a piece of software, there always comes a point where the software has to have a set of integration tests ran. Mocking of components can allow code to be tested in isolation, however if overdone all that has been achieved is testing the mocks. Integration tests should be ran in as close to a realistic deployment as possible, as the more differences which exist between the test environment and a production deployment, the more scope there is for bugs to slip through. Testing of a deployed component makes getting code coverage metrics more difficult than in regular unit tests, but is still possible. Frameworks such as the Jersey Test Framework can allow unit testing of JAX-RS REST endpoints that have been created, but this is not equivalent to a truly deployed component and so features such as CDI and the MicroProfile features I am looking into cannot easily be tested this way. While not related to MicroProfile, testing of DAO code is another area which has traditionally been an integration approach, as it required a running database server, but there are now libraries available that can allow this to be tested as unit tests.

Events, Home

Oracle Code One Geek Bike Ride 2019

Oracle Code One Geek Bike Ride 2019

Sunday, Sep 15, 2019, 9:00 AM

Blazing Saddles
Pier 41 San Francisco, CA

11 Java Developers Attending

The Silicon Valley JUG will host the annual Oracle Code One Geek Bike Ride the Sunday before Oracle Code One. We’ll meet at Pier 41 in Fisherman’s Wharf and ride across the bridge and down into Sausalito, and then take a ferry back to the city. We are getting an earlier start 9:00am so folks can get back for other Oracle Code One activities. This …

Check out this Meetup →