mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Fikser feilhåndtering for loadTestBoard
This commit is contained in:
parent
9b76bcb579
commit
014122f384
@ -6,10 +6,16 @@ import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
public class BoardLoaderUtilTest {
|
||||
@Test
|
||||
public void loadTestBoard() throws IOException {
|
||||
public void loadTestBoard() {
|
||||
List<Robot> robotList = new ArrayList<>();
|
||||
BoardLoaderUtil.loadBoard("boards/test_board.txt", robotList);
|
||||
try {
|
||||
BoardLoaderUtil.loadBoard("boards/test_board.txt", robotList);
|
||||
} catch (IOException e) {
|
||||
fail();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user