Using SpringJUnit4ClassRunner with Parameterized 1. Overview In this tutorial, we’ll see how to parameterize a Spring integration test implemented in JUnit4 with a Parameterized JUnit test runner. 2. SpringJUnit4ClassRunner SpringJUnit4ClassRunner is an implementation of JUnit4’s ClassRunner that embeds Spring’s TestContextManager into a JUnit test. TestContextManager is the entry point into the Spring TestContext framework and therefore manages… Continue Reading springjunit4classrunner-parameterized

Introduction to JSON Schema in Java 1. Overview JSON Schema is a declarative language for validating the format and structure of a JSON Object. It allows us to specify the number of special primitives to describe exactly what a valid JSON Object will look like. The JSON Schema specification is… Continue Reading introduction-to-json-schema-in-java

Exceptions in Java 8 Lambda Expressions 1. Overview In Java 8, Lambda Expressions started to facilitate functional programming by providing a concise way to express behavior. However, the Functional Interfaces provided by the JDK don’t deal with exceptions very well – and the code becomes verbose and cumbersome when it… Continue Reading java-lambda-exceptions

Java Class Structure and Initialization Interview Questions 1. Introduction Class structure and initialization are the basics that every Java programmer should be familiar with. This article provides answers to some of the interview questions on the topic that you may encounter. Q1. Describe the Meaning of the Final Keyword When… Continue Reading java-classes-initialization-questions

Activiti with Spring Security 1. Overview Activiti is an open-source BPM (Business Process Management) system. For an introduction, check our Guide to Activiti with Java. Both Activiti and the Spring framework provide their own identity management. However, in an application that integrates both projects, we may want to combine the… Continue Reading activiti-spring-security