small adjustment in javadoc GameTest, MoveListStrategyTest, TrackTest
Author added in all of them
This commit is contained in:
parent
31c76273c9
commit
e68ab597d5
|
@ -12,6 +12,8 @@ import static ch.zhaw.pm2.racetrack.PositionVector.Direction.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for Class Game. The Class is split up in nested classes.
|
* Test for Class Game. The Class is split up in nested classes.
|
||||||
|
*
|
||||||
|
* @author Andrin Fassbind
|
||||||
*/
|
*/
|
||||||
class GameTest {
|
class GameTest {
|
||||||
private UserInterface userInterface;
|
private UserInterface userInterface;
|
||||||
|
|
|
@ -9,6 +9,8 @@ import java.io.FileNotFoundException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This Class tests the MoveStrategy.
|
* This Class tests the MoveStrategy.
|
||||||
|
*
|
||||||
|
* @author Andrin Fassbind
|
||||||
*/
|
*/
|
||||||
public class MoveListStrategyTest {
|
public class MoveListStrategyTest {
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This Class tests the track
|
* This Class tests the track
|
||||||
|
*
|
||||||
|
* @author Andrin Fassbind
|
||||||
*/
|
*/
|
||||||
public class TrackTest {
|
public class TrackTest {
|
||||||
Track trackObj;
|
Track trackObj;
|
||||||
|
@ -17,6 +19,9 @@ public class TrackTest {
|
||||||
@DisplayName("Positive Test Cases")
|
@DisplayName("Positive Test Cases")
|
||||||
class positiveClass {
|
class positiveClass {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets up the Test cases by loading the file and setting a new track.
|
||||||
|
*/
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setup() {
|
void setup() {
|
||||||
File file = new File(".\\tracks\\challenge.txt");
|
File file = new File(".\\tracks\\challenge.txt");
|
||||||
|
@ -162,6 +167,9 @@ public class TrackTest {
|
||||||
class negativeClass {
|
class negativeClass {
|
||||||
File file;
|
File file;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets up the negative Test cases by loading the file and setting a new track.
|
||||||
|
*/
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setup() {
|
void setup() {
|
||||||
file = new File(".\\tracks\\challenge.txt");
|
file = new File(".\\tracks\\challenge.txt");
|
||||||
|
|
Loading…
Reference in New Issue