Petri Kainulainen, Java Code Geeks

Petri Kainulainen

Java Code Geeks

Contact Petri

Discover and connect with journalists and influencers around the world, save time on email research, monitor the news, and more.

Start free trial

Recent:
  • Unknown
Past:
  • Java Code Geeks

Past articles by Petri:

Adding Social Sign In to a Spring MVC Web Application: Configuration

In the good old days users logged in by using the combination of username and password. Although now... → Read More

The Dark Side of Best Practices

Best practices are the backbone of software development (or so we are told). Every developer has his... → Read More

Unit Testing of Spring MVC Controllers: REST API

Spring MVC provides an easy way to create REST APIs. However, writing comprehensive and fast unit te... → Read More

Unit Testing of Spring MVC Controllers: "Normal" Controllers

The first part of this tutorial described how we can configure our unit tests which use the Spring M... → Read More

Spring Data JPA Tutorial Part One: Configuration

Spring Data JPA is a project which aims both to simplify the creation of JPA based repositories and ... → Read More

Spring from the Trenches: Adding Validation to a REST API

I am a bit ashamed to admit this but until yesterday, I had no idea that I can add validation to a REST API by using the @Valid and the @RequestBody annotations. This was not working in Spring MVC 3.0 and for some reason I had not noticed that the support for this was added ... → Read More

Spring Data Solr Tutorial: CRUD (Almost)

In the previous part of my Spring Data Solr tutorial, we learned how we can configure Spring Data Solr. Now it is time to take a step forward and learn how we can manage the information stored in our Solr instance. This blog entry describes how we add new documents to the Solr index, update ... → Read More

Spring Data Solr Tutorial: Introduction to Solr

Most of the applications must have a some kind of a search function. The problem is that search functions are often huge resource hogs and they can kill the performance of our application by causing heavy load to the database. That is why transferring that load to an external search server is a great idea. ... → Read More

Getting Started With Gradle: Integration Testing

Because the standard project layout of a Java project defines only one test directory (src/test), we... → Read More

Writing Clean Tests – Small Is Beautiful

We have learned that “clean” unit tests might not be as clean as we think.We have done our best ... → Read More

Creating a REST API with Spring Boot and MongoDB

This year I greeted Christmas in a different fashion: I was a part of the Java Advent Calendar. Let’... → Read More

Spring Data JPA Tutorial: Getting the Required Dependencies

Before we can create an application that uses Spring Data JPA, we need to get the required dependenc... → Read More

Spring Data JPA Tutorial: Introduction

Creating repositories that use the Java Persistence API is a cumbersome process that takes a lot of ... → Read More

Spring from the Trenches: Using Null Values in DbUnit Datasets

If we are writing integration tests for an application that uses Spring Framework, we can integrate ... → Read More

Understanding Spring Web Application Architecture: The Classic Way

Every developer must understand two things: Architecture design is necessary. Fancy architecture diagrams don’t describe the real architecture of an application. ... → Read More

5 Things I Do to Stay Relevant

I have noticed that some Finnish IT professionals are complaining that being just a good employee is... → Read More

Writing Clean Tests – To Verify Or Not To Verify

When we write unit tests that use mock objects, we follow these steps: &amp... → Read More

Writing Tests for Data Access Code – Don’t Test the Framework

When we write tests to our data access code, should we test every method of its public API?It so... → Read More

Writing Tests for Data Access Code – Unit Tests Are Waste

A few years ago I was one of those developers who write unit tests for my data access code. I was testing everything in isolation, and I was pretty pleased with myself. I honestly thought that I was d... → Read More

Getting Started with Gradle: Our First Java Project

This blog post describes how we can compile and package a simple Java project by using Gradle.Ou... → Read More