Behaviour Driven Development with Mockito

  • Overview

    Mockito is an open source testing framework for Java that mechanizes unit tests to be used in test-driven development or behavior-driven development by decoupling test code from the system under test through eradicating the expect-run-verify pattern. It facilitates to generate high quality tests using Mockito. The course on Behaviour Driven Development with Mockito from Koenig Solutions lets students write beautiful tests with a clean and simple API.

    Course Objectives

    • Instantaneous Mockito
    • What is Mockito?
    • Use Mockito
    • Integrate Mockito within your existing websites or applications
    • Install
    • What do I need?
    • attach JARs to the classpath
    • create your first unit test with Mockito
    • pick a class that you want to unit test
    • pick a method that you want to unit test
    • create a unit test class with a properly defined method
    • create mocks and set them in the object under testing
    • define, execute, and verify mock behavior
    • Top 8 features you need to know about
    • Perform argument matching
    • Reduce boilerplate code with annotations
    • Stub multiple calls
    • Do partial mocking (spying)
    • Work with void methods and thrown exceptions
    • Stub with a custom answer
    • Take advantage of advanced mocks configuration
    • Remove boilerplate code by using MockitoJUnitRunner
    • Get more information on NullPointerException
    • Provide additional interfaces
    • Remove boilerplate code when you can't use MockitoJUnitRunner

    Course Details / Exam(s)

    Schedule for Behaviour Driven Development with Mockito
    Course Regular Track
    Behaviour Driven Development with Mockito 2
    Total 2
    • Mockito is designed for developers.
    • Knowledge of Java.
    Recommended Courses and Certification:
    Give an edge to your career with technical certifications and training courses. Students can join the classes for Behaviour Driven Development with Mockito at Koenig Campus located at New Delhi, Bengaluru, Shimla, Goa, Dehradun, Dubai & Instructor-Led Online.
  • Students Reviews
    Deenadayal B & Arun Sharma  Koenig IT Training Student

    We came at Koenig Solutions Bangalore. Our Trainer did a great job of delivering the customized MS CRM Dynamics 2013 training that exceeded our expectations. We would definitely like to recommend...

    Read MoreDeenadayal B & Arun Sharma India
    Motebang Christopher Ntsamo Koenig IT Training Student

    It's an immense pleasure to be in Koenig Dubai. I am also thankful to my trainers for imparting learning on ITIL. It was a wonderful experience. I wish to enroll for the next level when I come here...

    Read MoreMotebang Christopher NtsamoLesotho
    Emmanuel Gei Koenig IT Training Student

    The training at Koenig Delhi was very interactive and fruitful, thanks to our trainer for his practical explanation and demonstration which significantly help us understand the concepts of ITIL...

    Read MoreEmmanuel GeiSudan
    Jerry Louis  Koenig IT Training Student

    My name is Jerry Louis, I joined Koenig Delhi for my ITIL certification. We were four in our batch and we thank God that we all passed with good marks and the training was very interesting and...

    Read MoreJerry Louis Sudan
    Santo Akuei Akoon Kuc Koenig IT Training Student

    Since the day Koenig Delhi received our team consisting of three participants from the Republic of South Sudan, they have showed us great generosity and hospitality. Not only that, their professional...

    Read MoreSanto Akuei Akoon KucSudan
    View All Testimonials
  • Schedule & Course Fees
    Classes will be conducted from 09:00 am - 05:00 pm at Your Local Time
    Price includes Courseware.
    For any Query or Custom Plan +1 877 226 2244
  • Enquire Now
    * Required Fields