Core Java tutorial for beginners

This is the index post for Core Java tutorial for beginners as well as for experienced programmer. I have written Core Java tutorials from basic to advanced topics.It will definitely help you learn Java in …

Mockito Mock static method

In this post, we will see about Mockito Mock static method. If you want to mock static methods, you need to use PowerMockito.PowerMockito is capable of testing┬áprivate, final or static methods as it makes use …

Mockito Mock Example

In this lesson with Mockito, we will learn what is at the core of Mockito, which surprisingly is, mocks! Mock is an object that has predefined answers to method executions made during the test and …

PowerMock tutorial

Table of Contents1. Overview2. Create a simple java maven project.3. Adding Dependencies with Maven4. Enabling PowerMock Annotations5. Mocking final methods6. Mocking static methods7. Mocking private methods8. Conclusion 1. Overview Mockito is a powerful, open-source Mocking …

Using Mockito with TestNG

TestNG is an open source automated testing framework which is meant to perform unit, functional, end-to-end, integration testing. TestNG need minimum Java JDK 5. Based on the website, TestNG is a testing framework inspired from …

Using Mockito with JUnit

In this lesson with Mockito, we will use another framework for complete testing, known as JUnit. According to JUnit website, JUnit is a simple framework to write repeatable tests. It is an instance of the …

Mockito Spy example

In this lesson on Spy in Mockito, we will see how Spies differ from Mocks and how are these used. Table of ContentsAdding to classpath, using MavenUsing Mockito AnnotationsSpies in MockitoStubbing a SpyAnother exampleMock vs …

Java technical interview questions

In this post, we will see top Java technical interview asked in the Core Java interview.I have covered a lot of interview question on Java programming. Here is list of other java interview question you …

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog