Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our YouTube channel to start Rocking right now!
Gain access to the industrys' best FREE video guides including:
1. Core Java guides
2. Enterprise Java guides
3. JVM insights, configuration and troubleshooting guides
4. Java performance guides
5. Java Interview Questions
and many more ....

What Is New In Selenium 4 And What Is Deprecated In It?

Selenium 4 has been gaining immense attention since the time it was publicly announced by Simon Stewart, the founding member of Selenium in August 2018. Though there are no updates on the official release date of a stable version of Selenium 4, developers and Selenium explorers, have the opportunity to try out Selenium 4 features by downloading the Alpha version ...

Read More »

System Stubs: Another Minor Release

In today’s new release of System Stubs there’s increased documentation for testing logging output, as well as a new class – MultiplexOutput which allows the tapped output stream – System.err or System.out to be directed to more than one place. This means that OutputFactories.tapAndOutput() can be used, in conjunction with the SystemOut class to direct the output both to a ...

Read More »

[MEGA DEAL] The Premium 2021 Project & Quality Management Certification Bundle (98% off)

Be a Pro at Handling Projects & Deliver Efficient Results with 22 Courses on Six Sigma, Agile, Jira, and Other Project Management Fundamentals Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer.We are offering a massive 98% off on The Premium 2021 Project & Quality Management Certification Bundle. Get it now with only $45,99 ...

Read More »

How To Upgrade From Selenium 3 To Selenium 4?

Selenium 4, the latest version of the Selenium framework, has become the talk of the town since its announcement in 2018. The excitement around Selenium 4 is evident since it is packed with a host of new features and enhancements than its predecessor. Though there is no official announcement on the ‘final’ release of Selenium 4, Selenium users and test ...

Read More »

The Temporary Test Property

Just because you can make a variable a long-term property of a test fixture doesn’t mean you should. This is the Everything is a Property test smell. It may be seen in languages such as JavaScript where there’s a master let setting up some useful variables for various tests to use to assign values to. I’ve more seen it in ...

Read More »

So I Wrote a Library

If you’ve never done it, go out and find an open-source project to contribute to. Whether it’s one of your own or something you use, go and try writing code in the wide open to see how it feels. I’ve recently been working on a library of my own. I say my own. It’s actually someone else’s code that I ...

Read More »

Architecture Metrics

Last time we saw how major tech projects continue to be difficult to schedule. One thing that can keep momentum going for a long-running initiative is the appropriate use of metrics. Improving scores allow you to visualize progress and maintain motivation to keep going. Let’s look at some metrics for software architectures. Architecture is the art of making trade-offs between ...

Read More »

REST: Partial updates with PATCH

java-interview-questions-answers

In previous posts we learned how to update/replace resources using the HTTP PUT operation. We also learned about the differences between POST, PUT and PATCH. In this post we will now see how to perform partial updates with the HTTP PATCH method. Before we start, let’s quickly check why partial updates can be useful: Simplicity – If a client only ...

Read More »

Testing with Mockito

1) Register MockitoExtension @ExtendWith(MockitoExtension.class) class ObjectTest { static final Long ID = 1L; 2) Create the mock @Mock private ObjectRepo mockRepo; 3) Inject the mock @InjectMocks private ObjectService objectService; @Test void whenfindByIdThenReturnResult() { var objectDAO = new ObjectDAO(); objectDAO.setId(ID); 4) Define the behavior when(mockRepo.findById(any(Long.class))).thenReturn(Optional.of(objectDAO)); 5) Test var result = ObjectService.findById(ID); 6) Verify verify(mockRepo, times(1)).findById(any(Long.class)); 7) Validate assertAll( () -> assertNotNull(result), ...

Read More »