Testing Flashcards
1
Q
What is a unit test? What is a unit?
A
2
Q
Talk a bit about JUnit. How does it work?
A
3
Q
How does unit testing differ from other types of testing?
A
4
Q
What are other types of testing?
A
5
Q
What are the three A’s (AAA) of unit testing? Give concrete examples.
A
6
Q
How does a stateful unit test differ from a stateless test? Which is better? Is one more reliable?
A
7
Q
What is a setup method? Why might you use it?
A
8
Q
What is a tear-down method? Why might you use it?
A
9
Q
True or false?: each unit test should contain one and only one assert.
A
Is it possible to run multiple scenarios per test method? How?