|
@ -57,20 +57,30 @@ public class MouseGameTest { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void boundsBreitePruefen() throws AWTException { |
|
|
|
|
|
|
|
|
public void boundsBreiteFramePruefen() throws AWTException { |
|
|
//Given |
|
|
//Given |
|
|
MouseGame mg = new MouseGame(); |
|
|
MouseGame mg = new MouseGame(); |
|
|
|
|
|
|
|
|
//Then |
|
|
//Then |
|
|
assertTrue(mg.getBreite()==900); |
|
|
|
|
|
|
|
|
assertTrue(mg.getBreiteFrame()==900); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void boundsHoehePruefen() throws AWTException { |
|
|
|
|
|
|
|
|
public void boundsHoeheFramePruefen() throws AWTException { |
|
|
//Given |
|
|
//Given |
|
|
MouseGame mg = new MouseGame(); |
|
|
MouseGame mg = new MouseGame(); |
|
|
|
|
|
|
|
|
//Then |
|
|
//Then |
|
|
assertTrue(mg.getHoehe()==650); |
|
|
|
|
|
|
|
|
assertTrue(mg.getHoeheFrame()==650); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
public void boundsBreitePanelPruefen() throws AWTException { |
|
|
|
|
|
//Given |
|
|
|
|
|
MouseGame mg = new MouseGame(); |
|
|
|
|
|
|
|
|
|
|
|
//Then |
|
|
|
|
|
assertTrue(mg.getBreitePanel()==696); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |