Fix StoneTrayTest
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@105 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
c9843770dd
commit
4870017d27
1 changed files with 11 additions and 14 deletions
|
@ -137,7 +137,6 @@ public class StoneTrayTest {
|
||||||
assertEquals(1, thirdPosition.getY(), 0.00001);
|
assertEquals(1, thirdPosition.getY(), 0.00001);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testWrongPickUp() {
|
public void testWrongPickUp() {
|
||||||
Thing firstThing = new Thing(5, 5);
|
Thing firstThing = new Thing(5, 5);
|
||||||
|
@ -170,7 +169,6 @@ public class StoneTrayTest {
|
||||||
assertNull(testTray.pickUp(testPosition));
|
assertNull(testTray.pickUp(testPosition));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIterate() {
|
public void testIterate() {
|
||||||
List<Thing> testThings = new ArrayList<Thing>();
|
List<Thing> testThings = new ArrayList<Thing>();
|
||||||
|
@ -199,8 +197,7 @@ public class StoneTrayTest {
|
||||||
testTray.drop(firstThing, new Position(0, 0));
|
testTray.drop(firstThing, new Position(0, 0));
|
||||||
Thing secondThing = new Thing(3, 3);
|
Thing secondThing = new Thing(3, 3);
|
||||||
testTray.drop(secondThing, new Position(-5, -5));
|
testTray.drop(secondThing, new Position(-5, -5));
|
||||||
StoneTray<Thing> trayCopy = testTray.clone();
|
IStoneTray<Thing> trayCopy = testTray.clone();
|
||||||
|
|
||||||
|
|
||||||
testTray.pickUp(firstThing);
|
testTray.pickUp(firstThing);
|
||||||
for (Pair<Thing, Position> i : testTray) {
|
for (Pair<Thing, Position> i : testTray) {
|
||||||
|
|
Reference in a new issue