mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Fixed faulty tests.
This commit is contained in:
@@ -3,6 +3,9 @@ package steps;
|
||||
import cucumber.api.java.en.Given;
|
||||
import cucumber.api.java.en.Then;
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
import java.util.Comparator;
|
||||
import org.junit.Assert;
|
||||
import seng302.visualiser.MapMaker;
|
||||
|
||||
@@ -29,11 +32,11 @@ public class CustomMapsSteps {
|
||||
@Then("^all of them can be seen$")
|
||||
public void all_of_them_can_be_seen() throws Throwable {
|
||||
File[] files = new File(this.getClass().getResource("/maps/").getPath()).listFiles();
|
||||
Arrays.sort(files);
|
||||
for (File file : files) {
|
||||
if (file.isFile()) {
|
||||
Assert.assertTrue(file.getAbsolutePath().equals(mapMaker.getCurrentRacePath()));
|
||||
Assert.assertTrue(file.getAbsolutePath().endsWith(mapMaker.getCurrentRacePath()));
|
||||
mapMaker.next();
|
||||
System.out.println(file.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user