Skip to content

Commit

Permalink
#40 Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Num2 committed May 9, 2017
1 parent e5e5c54 commit b39b4e3
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/test/java/de/rennspur/test/model/EventTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,25 @@

import static org.junit.Assert.*;

import java.util.List;

import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;

import de.rennspur.model.Waypoint;

/**
* @author bubi
*
*/
public class EventTest {
@InjectMocks
Waypoint proband;

@Mock
List<Waypoint> waypoints;

/**
* @throws java.lang.Exception
Expand All @@ -38,7 +49,8 @@ public void setUp() throws Exception {
}

/**
* Test method for {@link de.rennspur.model.Event#addRace(de.rennspur.model.Race)}.
* Test method for
* {@link de.rennspur.model.Event#addRace(de.rennspur.model.Race)}.
*/
@Test
public void testAddRace() {
Expand Down Expand Up @@ -69,4 +81,13 @@ public void testRemoveWaypoint() {
fail("Not yet implemented");
}

/**
* The method for
* {@link de.rennspur.model.Event#Event(de.rennspur.model.Event)}.
*/
@Test
public void testEvent() {
assertEquals(waypoints.size(), 0);
}

}

0 comments on commit b39b4e3

Please sign in to comment.