Rose India
Read Reviews
"This is my first time I have ever used a tutor either online or in person. I was a little skeptical of an online tutoring service, but with my demanding job I needed someone who would accommodate my time schedule.
Bharats web site and name came up after a search through Google. I emailed him and set up my first appointment. I was impressed, he covered the topics I was having problems with, and in a manner I could easily understand.




JUnit Training

JUnit is an open source framework designed for the purpose of writing and running tests in the Java programming language. It's a regression-testing framework that developers can use to write unit tests to check that another code unit works as expected. The Rose India tutorial course of JUnit helps to code and test any time when you make any changes in your code during the development. It ensures that modifications in the code will not break your system without your knowledge. JUnit has been ported to other languages, including PHP (PHPUnit), C# (NUnit), Python (PyUnit), Fortran (fUnit), Perl (Test::Class and Test::Unit), C++ (CPPUnit) and JavaScript (JSUnit).This family of unit testing frameworks is referred to collectively as xUnit.  

Course Details:

  • Introducing JUnit 
    • JUnit 101
    • JUnit 3 vs. JUnit 4 vs. TestNG
    • Getting started
    • Using JUnit within Eclipse
    • Test methods: test Method or @Test method
    • Assertions in TestCase
    • Testing for exceptions
    • Testing isolations
    • Creating and organizing test fixtures with setUp/tearDown and @Before/@After
    • Composing Test Cases into Test Suites
    • Combining Test Suites
    • Organizing Tests and Test Suites
    • Executing Tests
    • Showing Test Results
    • Integration with Ant
    • Reporting (XML and HTML)

    Why JUnit?

    • Testing with JUnit – Advantages
    • Testing with JUnit – Disadvantages
    • Exercise – Testing Simple Data Structures

    JUnit Extensions

    • Overview of JUnit Extensions: dbUnit, sqlUnit, httpUnit, htmlUnit, EasyMock, xmlUnit, etc.
    • Testing with Stubs
    • Testing with Mocks using EasyMock

    Test-Driven Development

    • Best Practices with JUnit and TDD
    • Designing Java code with testing in mind
    • Integration and functional testing with JUnit
    • Exercise – Testing Complex Data Structures