Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Government Polytechnic Aurangabad

(An Autonomous institute of Govt. of Maharashtra)

Seminar on JUnit Testing Framework


Guided By Presented By
Prof. P.B.Lahoti Sandhya Barandwal(176001)
• Introduction
• What is Unit Testing ?
• What is JUnit ?
• Application of JUnit
• Architecture
• Terminologies in JUnit
• Important classes and annotations of junit framework
• Advantages
• Disadvantages
• References
• Conclusion
• Question & Answers
• Key element in extreme programming.

• Focuses on fundamental block at a time.

• Helps to find problems early.

• Easy to maintain.

• Simplifies integration testing.


• JUnit is an open source testing framework.

• Written by Erich Gamma and Kent Beck

• Part of xUnit Family

• It has been designed for the purpose of writing and running tests in
the java programming language.

• Eclipse includes JUnit.


Test Test Test Test
Case Suite Runner Result
Classes
Beforecl-
ass

Test Annotations After

Before
• An open source framework
• Annotations to identify test methods
• Assertions for testing expected results
• Allow you to write codes faster,which increases quality
• Simple
• Can be organized into test suites
• Cannot be dependency testing.

• Not suitable for higher level testing.


• http://junit.org

• http://junit.sourceforge.net/javadoc/junit/framework

• http://www.swtestacademy.com

• https://codesjava.com/junit-framework

• https://blog.codefx.org/design/architecture/junit
• The java-based unit testing framework as an industry de facto
standard for writing unit tests, any java-based software project
can easily integrate unit testing into their development
environment.

• JUnit’s maturity as an open source project allow projects to


leverage industry experience and extensions to the framework
all at a zero licensing cost.

You might also like