Skip to content

Commit

Permalink
Removed excess whitespace and imports. Added short JavaDoc for `TestR…
Browse files Browse the repository at this point in the history
…unner.java`
  • Loading branch information
Corppet committed Sep 29, 2023
1 parent 4a2b67f commit 8f7599d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
7 changes: 4 additions & 3 deletions src/test/java/legup/TestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import puzzles.nurikabe.rules.*;
import puzzles.treetent.rules.*;

/**
* This class runs all of the tests for the project without needing to run build scripts.
*/
public class TestRunner {
public static void main(String[] args) {
// Battleship Tests
Expand Down Expand Up @@ -103,6 +106,4 @@ private static void printTestResults(Result result) {
System.out.println("All tests passed: " + result.wasSuccessful());
System.out.println();
}


}
}
9 changes: 0 additions & 9 deletions src/test/java/legup/TestUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
import edu.rpi.legup.model.tree.TreeNode;
import edu.rpi.legup.model.tree.TreeTransition;
import edu.rpi.legup.save.InvalidFileFormatException;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
import puzzles.battleship.rules.AdjacentShipsContradictionRuleTest;
import puzzles.battleship.rules.FinishWithShipsDirectRuleTests;

public final class TestUtilities {
public static void importTestBoard(String fileName, Puzzle puzzle) throws InvalidFileFormatException {
Expand All @@ -21,8 +16,4 @@ public static void importTestBoard(String fileName, Puzzle puzzle) throws Invali
TreeTransition transition = new TreeTransition(rootNode, board);
rootNode.getChildren().add(transition);
}


}


0 comments on commit 8f7599d

Please sign in to comment.