JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks which is collectively known as xUnit that originated with SUnit.
Mode Of Examination
Number Of Question: 100 (1 Marks Each)
Total Time: 120 Min
Exploring Core JUnit:
Exploring core JUnit, running parameterized tests, JUnit Test Runners and composing tests with a Suite.
Controller component and testing the component, testing exception handling, timeout testing and hamcrest matchers.
Software Testing Principles:
Types of testing like unit tests, black box, white box, stress, integration, functional and acceptance software testing.
Test Coverage and Development:
Measuring test coverage, cobertura, writing testable code, test-driven development and testing in the development cycle.
Coarse-grained Testing with Stubs:
Stubs, stubbing the connection, http connection as well as web server resources and jetty as an embedded server.
Testing with Mock Objects:
Mock objects, testing and refactoring with mock objects, mocking an http connection, using mock as trojan horses, easymock and jmock.
Mock objects and solutions, in-container testing and limitations of unit testing.
Running JUnit Tests from Ant:
Ant-targets, projects, tasks, creating html reports and batching tests.
Running JUnit Tests from Maven2:
Maven introduction, plugins, surefire, downsides and also setting up maven project.
Continuous Integration Tools:
Continuous integration, cruise control, continous integration benefits and hudson.
Html unit and tests, difference between html unit and selenium.
Ajax applications, rhino unit, java script and functional testing, ajax testing patterns, js unit, testing httpclient and google web toolkit applications.
Server-side Java Testing with Cactus:
Cactus and servlets testing, jsps and ejbs testing, cargo, maven2x tests.
Testing JSF Applications:
Jsf, jsf applications testing, jsf unit and html unit.
Testing OSGi Components:
Osgi, junit osgi, osgi services testing.
Testing Database Access:
Database unit, asserting database state, replacement data set, datasets drom creation and database access testing.
Testing JPA-based Applications:
Jpa testing, jpa entities mapping testing, multilayered applications, foreign key name testing and jpa based daos.
JUnit on Steroids:
Mycila, bypass encapsulation and transparent mock usage.