Unlock access to all the studying documents.
View Full Document
Chapter 44 Testing Using JUnit
1. A test class must be placed in a named package.
a. True
#
2. JUnit is part of the standard Java API?
a. True
b. False
#
3. To test whether two values v1 and v2 are the same, use .
a. assertTrue(v1)
b. assertTrue(v2)
c. assertEquals(v1, v2)
d. assertEquals(v2, v1)
#
4. To test whether an expression e is true, use .
a. assertTrue(e)
b. asserttrue(e)
c. assertEquals(e)
d. assertequals(e)