Quiz Number 2
SWE 637, Fall 2017
Print your name on the line, top right, then answer the questions as concisely as you can. Please write neatly; if I can’t read your answer I have to mark it wrong.
In the test method, assume the object has been created properly in an @Before method. You can assume that the getFirstPrime(), getNextPrime(), and the toString() methods have already been tested.
public void testComputePrime()
p.computePrimes (5); // Compute the first 5 prime numbers
assertTrue ("computePrimes", p.getFirstPrime().equals (2));