JUnit Interview Questions

 
1.
What Is JUnit?
2.
Where Do You Download JUnit?
3.
Who Should Use JUnit, Developers or Testers?
4.
Why Do You Use JUnit to Test Your Code?
5.
How Do You Install JUnit?
6.
How To Wirte a Simple JUnit Test Class?
7.
How To Compile a JUnit Test Class?
8.
How To Run a JUnit Test Class?
9.
What CLASSPATH Settings Are Needed to Run JUnit?
10.
How Do I Run JUnit Tests from Command Window?
11.
How Do You Uninstall JUnit?
12.
How To Write a JUnit Test Method?
13.
Can You Provide a List of Assertion Methods Supported by JUnit 4.4?
14.
Why Does Poeple Import org.junit.Assert Statically?
15.
What Is the @SuiteClasses Annotation?
16.
Why Not Just Use a Debugger for Unit Testing?
17.
Why Not Just Write a main() Method for Unit Testing?
18.
Why Not Just Use System.out.println() for Unit Testing?
19.
Under What Conditions Should You Test set() and get() Methods?
20.
Do You Need to Write a Test Class for Every Class That Need to Be Tested?
21.
What Is JUnit TestCase?
22.
How to Run Your JUnit 4.4 Tests with a JUnit 3.8 Runner?
23.
What Are JUnit 3.8 Naming Conventions?
24.
How Many Test Runners Are Supported in JUnit 3.8?
25.
What Is a JUnit Test Fixture?
26.
Can You Explain the Life Cycle of a JUnit 3.8 Test Case Class?
27.
How To Write Setup Code to Run Once for All Tests in a Test Class?
28.
Can You Explain the Life Cycle of a JUnit 4.4 Test Class?
29.
How To Group Test Cases Class using JUnit TestSuite?
30.
How Do You Test a private Method?
31.
How Do You Test a protected Method?
32.
Can You Write a Simple Class for JUnit Testing in 1 Minute?
33.
How Do You Test Classes That Must Be Run in a J2EE Container?
34.
How to creating a Test Suite using JUnit in Eclipse?
35.
Can You Describe Steps of Creating Test Case Classes in Eclipse?
36.
How to Run a JUnit Test Case in Eclipse?
37.
How To Create Test Class in Eclipse?
38.
How simple is too simple to break?
39.
What Do You Do When a Defect Is Reported?
40.
How Often Should You Run Your JUnit Tests?
41.
Do You Have To Write a Test for Everything?
42.
When Objects Are Garbage Collected After a Test Is Executed?
43.
How Do You Test a Method That Does not Return Anything?
44.
When Should Unit Tests Should Be Written In Development Cycle?
45.
How Do You Launch a Debugger When a Test Fails?
46.
What Is JUnit?
47.
Where Do You Download JUnit?
48.
Who Should Use JUnit, Developers or Testers?
49.
Why Do You Use JUnit to Test Your Code?
50.
How Do You Install JUnit?
51.
How To Wirte a Simple JUnit Test Class?
52.
How To Compile a JUnit Test Class?
53.
How To Run a JUnit Test Class?
54.
What CLASSPATH Settings Are Needed to Run JUnit?
55.
How Do I Run JUnit Tests from Command Window?
56.
How Do You Uninstall JUnit?
57.
How To Write a JUnit Test Method?
58.
Can You Provide a List of Assertion Methods Supported by JUnit 4.4?
59.
Why Does Poeple Import org.junit.Assert Statically?
60.
What Is the @SuiteClasses Annotation?
61.
Why Not Just Use a Debugger for Unit Testing?
62.
Why Not Just Write a main() Method for Unit Testing?
63.
Why Not Just Use System.out.println() for Unit Testing?
64.
Under What Conditions Should You Test set() and get() Methods?
65.
Do You Need to Write a Test Class for Every Class That Need to Be Tested?
66.
What Is JUnit TestCase?
67.
How to Run Your JUnit 4.4 Tests with a JUnit 3.8 Runner?
68.
What Are JUnit 3.8 Naming Conventions?
69.
How Many Test Runners Are Supported in JUnit 3.8?
70.
What Is a JUnit Test Fixture?
71.
Can You Explain the Life Cycle of a JUnit 3.8 Test Case Class?
72.
How To Write Setup Code to Run Once for All Tests in a Test Class?
73.
Can You Explain the Life Cycle of a JUnit 4.4 Test Class?
74.
How To Group Test Cases Class using JUnit TestSuite?
75.
How Do You Test a private Method?
76.
How Do You Test a protected Method?
77.
Can You Write a Simple Class for JUnit Testing in 1 Minute?
78.
How Do You Test Classes That Must Be Run in a J2EE Container?
79.
How to creating a Test Suite using JUnit in Eclipse?
80.
Can You Describe Steps of Creating Test Case Classes in Eclipse?
81.
How to Run a JUnit Test Case in Eclipse?
82.
How To Create Test Class in Eclipse?
83.
How simple is too simple to break?
84.
What Do You Do When a Defect Is Reported?
85.
How Often Should You Run Your JUnit Tests?
86.
Do You Have To Write a Test for Everything?
87.
When Objects Are Garbage Collected After a Test Is Executed?
88.
How Do You Test a Method That Does not Return Anything?
89.
When Should Unit Tests Should Be Written In Development Cycle?
90.
How Do You Launch a Debugger When a Test Fails?