mirror of
https://bitbucket.org/Mattrixwv/javaclasses.git
synced 2025-12-07 15:33:58 -05:00
Added some exception handling
This commit is contained in:
@@ -32,6 +32,8 @@ import java.util.Arrays;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import mattrixwv.exceptions.InvalidResult;
|
||||
|
||||
|
||||
public class TestAlgorithms{
|
||||
@Test
|
||||
@@ -75,7 +77,7 @@ public class TestAlgorithms{
|
||||
assertEquals("getNumPrimes BigInteger failed", bigCorrectAnswer, bigAnswer);
|
||||
}
|
||||
@Test
|
||||
public void testGetFactors(){
|
||||
public void testGetFactors() throws InvalidResult{
|
||||
//Test 1
|
||||
ArrayList<Integer> correctAnswer = new ArrayList<Integer>(Arrays.asList(2, 2, 5, 5));
|
||||
Integer number = 100;
|
||||
|
||||
Reference in New Issue
Block a user