Testing Flashcards

1
Q

What is a unit test? What is a unit?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Talk a bit about JUnit. How does it work?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does unit testing differ from other types of testing?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are other types of testing?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the three A’s (AAA) of unit testing? Give concrete examples.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does a stateful unit test differ from a stateless test? Which is better? Is one more reliable?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a setup method? Why might you use it?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a tear-down method? Why might you use it?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly