About the Author
Jonny Hackett

Jonny Hackett

Twitter

Jonny is a Senior Software Engineer and Mentor with 15+ years of experience in IT. As an avid SportingKC fan, Jonny is a Java Developer and our resident Spring Batch expert.

Writing Java Code and Unit Tests Faster with GitHub Copilot Header image - explains the blog post intent - Learn how to use GitHub Copilot to generate Java code and unit testsโ€”using a real mortgage calculator exampleโ€”with practical tips on retaining quality code using AI-assisted development tools.

Writing Java Code and Unit Tests Faster with GitHub Copilot

Jonny Hackett Agentic AI & AI-Accelerated Development, Articles, Artificial Intelligence, Java, Testing Leave a Comment

In this post, weโ€™ll explore how to use GitHub Copilot to generate Java code and unit tests with minimal manual input. Using a real-world exampleโ€”a mortgage calculator serviceโ€”youโ€™ll see how Copilot can help write both the core logic and the corresponding unit tests. Whether youโ€™re new to AI-assisted development or curious about Copilotโ€™s capabilities in a Java environment, this tutorial will give you practical insight into how it worksโ€”and where human oversight still matters.

Testing Spring Boot APIs with Rest-Assured Header image

Testing Spring Boot Rest APIs with Rest-Assured

Jonny Hackett API Development, Articles, Development Technologies & Tools, Java, REST, Spring Boot, Testing Leave a Comment

Creating RESTful APIs with Spring Boot is a straightforward process, making it a popular choice for a variety of applications, from UI to batch processing. The same API created can be used anywhere, whether itโ€™s called from a UI application or batch applications. However, testing these APIs to ensure they work correctly can be challenging. In this article, I’ll introduce …

Optimizing Output File Testing in Spring Batch

Optimizing Output File Testing in Spring Batch

Jonny Hackett Articles, Java, Spring, Spring Batch, Testing Leave a Comment

Attention: This article was published over 2 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.Itโ€™s quite common to build Spring Batch jobs in which the output is a file for distribution to another team, or to another business. …

Spring Batch Job Flow

Spring Batch Job Flow Using a JobExecutionDecider

Jonny Hackett Articles, Development Technologies & Tools, Java, Spring, Spring Batch, Tutorial 2 Comments

In this tutorial for Spring Batch, we’re going to take a look at Programmatic Flow decisions in a Spring Batch job using Spring’s JobExecutionDecider. Spring Batch is a pretty powerful framework and this is another useful tool to have in your Spring Batch toolbox.

To demonstrate, I’ll use a scenario that came up recently while working on my clientโ€™s project. After explaining the situation and my goals, Iโ€™ll jump into a detailed, step-by-step guide. Letโ€™s get started!

Read XML

Using JAXB And StaxEventItemReader To Read XML Data

Jonny Hackett Articles, Development Technologies & Tools, Programming, Spring, Spring Batch 2 Comments

In one of my previous Spring Batch blog articles, I wrote about the need to read a set of data, process the data, and export the transformed data into XML for consumption by another system. In this blog, I’ll be doing the opposite. Iโ€™ll show you how to read data from an XML format instead.