Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
and many more ....
I agree to the Terms and Privacy Policy

The First and Last Rites

Let’s look at another test smell. Consider the following tests: @Test public void connectionWorks() { database = openDatabase(); database.healthCheck(); database.close(); } @Test public void countRows() { database = openDatabase(); assertThat(database.countAll()) .isEqualTo(0); database.close(); } In the above code we’ve written two tests for some fictional database. It looks like both those tests start and end with the same code. On top ...

Read More »

Tell us what you want and we will make it so: consumer-driven contract testing for messaging

java-interview-questions-answers

Quite some time ago we have talked about consumer-driven contract testing from the perspective of the REST(ful) web APIs in general and their projection into Java (JAX-RS 2.0 specification) in particular. It would be fair to say that REST still dominates the web API landscape, at least with respect to public APIs, however the shift towards microservices or/and service-based architecture ...

Read More »

5 Job Fields that Value Java Coding Skills

In this post, we feature a comprehensive article on 5 Job Fields that Value Java Coding Skills. It’s often said that Java is a dying language because its worldwide usage has been steadily dropping in recent years. However, a decrease in usage does not necessarily equate to a loss in value for Java programmers. There are still quite a few ...

Read More »

Elastic Stack Introduction

java-interview-questions-answers

When you are running software that is critical for your company you can’t have logs just for analysing things that happened some time ago, having the client tell you that your application is broken while you didn’t even know what was happening is a real problem. One of the ways to deal with that is using monitoring and logging. Most ...

Read More »

Better NPE Messages in JDK 14

My March 2019 blog post “Better Default NullPointerException Messages Coming to Java?” was written when the draft JEP for better NullPointerException messages had not yet been targeted to a particular JDK release. Since then, that draft JEP became JEP 358 (“Helpful NullPointerExceptions”), which has been targeted for JDK 14. Even better, the initial implementation (JDK-8218628) is already in the JDK ...

Read More »

JMetro Version 11.5.11 And 8.5.11 Released

Hi there again. One more version with new JMetro styles (dark and light versions): Split Menu ButtonSplit PanePill Button / Segmented Button Tweaks to existing styles and bug fixes. Keep on reading for details. Split Menu Button Following is an animation showing the new Split Menu Button JMetro light and dark style: Pill Button / Segmented Button Segmented Button is ...

Read More »

Java 13: Text Blocks

Java 13 has delivered the long-awaited multiline strings or Text Blocks. You no longer need to concatenate strings that span multiple lines or escape special characters, which really improves the readability of your code. Text blocks are a preview language feature, which means that they must be explicitly enabled in the Java compiler and runtime using the --enable-preview flag. Here ...

Read More »

ReactJS setState Example

ReactJS has grown in popularity and is one of the most used frameworks. In this article, we look at the setState method of ReactJS. With earlier versions of React state feature was limited to components implemented using ES6 classes. But now with the introduction of hooks even function components can have state. We look at both the cases and how ...

Read More »

How Selenium 4 Relative Locator Can Change The Way You Test?

Web pages can consist of the number of web elements or GUI elements like radio buttons, text boxes, drop-downs, inputs, etc. Web locators in the context of Selenium automation testing are used to perform different actions on the web elements of a page. Which makes it no surprise that as a new Selenium user, the first thing we aim to ...

Read More »