• 16 September

    PowerMock tutorial

    1. Overview Mockito is a powerful, open-source Mocking framework in Java. The features it provides for unit-testing is inevitably unique and important, nonetheless, ease out a lot of work for developers while writing unit test cases. While Mockito can help with virtually everything, there are some things it cannot do. Like stubbing or testing private, final […]

  • 16 September

    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 JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use like Annotation, Support […]

  • 16 September

    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 xUnit architecture for unit testing frameworks. With Mockito, creating mock objects is very easy. It provides many simple annotations to […]

  • 16 September

    Doubly Linked List in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see about Doubly LinkedList implementation in java. We have already seen the implementation of singly linked list. You can consider this as an extension of Singly linked list.It is quite complex to implement […]

  • 15 September

    How to become oracle certified Java programmer

    In this post, we will see how can you prepare for Oracle certified Java programmer(OCPJP) Introduction The present scenario of the Information Technology industry all over the world is such that it demands a large workforce of skilled professionals who are well impeccable in a language or domain. However, there are a wide variety of […]

  • 11 September

    Mockito Spy example

    In this lesson on Spy in Mockito, we will see how Spies differ from Mocks and how are these used. Adding to classpath, using Maven The fastest way to add Mockito to your project is using Maven dependency. [crayon-662c5cbbc9c64076576228/] This dependency is simple enough and does not bring any additional or redundant libraries. See here for […]

  • Java tricky interview questions
    11 September

    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 might find useful. Core java interview questions Java Collections interview questions Java String interview questions OOPs interview questions in java […]

  • Java 8 interview questions
    10 September

    Top 30 Java 8 interview questions and answers

    In this post, we will some important interview questions specifically on Java 8. Java has changed a lot over years and Java 8 has introduced many new features which you need to know when you are preparing for Java interview.  Here is a list of most asked Java 8 interview questions. 1)  What are […]

  • 09 September

    Mockito Example with Best Practices

    In this lesson, we will study Mockito, a full fledged framework in Java to create test doubles or mocks. Introduction Mockito is an Open Source Mocking framework in Java and provides easy ways to create test doubles, also referred to as mocks in further writing. In Mockito, we mock behavior, not implementation by adding a dummy […]