Java EE7 introduced JSON-P, which is supposed to standardize processing and parsing of JSON. This year, EE8 now brings ‘Java API for JSON Binding’ (JSON-B). Time for a closer look.
Java, Web and Mobile
In my current project I work in the QA-team. One of the questions we have to answer was, “How can we test a rest webservice?” With REST Assured, we found an easy way to test the service from various aspects. This tutorial explains how.
Using an object-relational mapping framework like Hibernate disburdens developers from creating complex DDL scripts to setup an application’s database schema. However, in real life such scripts are still needed – at least for the DBA who forbids applications to alter database objects. This post shows how to easily generate the database schema DDL script without typing an SQL commands.
There are several project management tools out there. In issue 2-2016 of German Business Technology magazine, our colleague Christine Bauers compared six agile project management tools: Agilo for Scrum, ZenHub, Active Collab, ScrumDo, JIRA and Pivotal Tracker.
The first part of this post introduced parameterized tests to avoid missing or unnecessary translation resources. I also showed an example of a possibly parameterized test, which was to outline how good test failure design helps to find all errors instead only the first or have static variables.
Unit testing is essential to produce good software. As a unit test is intended to cover only a very small piece of code we need to mock out other components. This post provides an introduction into the widely used mocking framework Mockito.
Have you ever had the need to provide a simple Excel export for existing data within your Java web application? Are you already thinking of reporting engines, complex binary formats and complicated merging of data. Then read on and find a simpler solution.
Being part of a software development team, bound to an organization leads to a variety of agreements. As a Java developer I often adhere to the mature rules from Effective Java (Joshua Bloch) or from the Design Patterns Book of the Gang of Four (Erich Gamma et al). To bring that idea to future developers I often use Unit tests to express the common sense behind these rules as code. And I don’t overdo it but use parameterized tests excessively. So my code does not only contain the technical solution to a functional requirement and the necessary unit tests. In addition I provide unit tests for the non functional requirements. As an introduction I chose internationalization (i18n) requirements to be unit tested.
In addition to my first liquibase post I give you some best practice in order to integrate liquibase in JUnit using hibernate JPA to ensure same datamodel during unit test and other stages. Use the power of mockito to setup your JUnit test class and inject your entity manager.