Ejemplo n.º 1
0
  @Override
  protected void runSetup() {
    File attack = new File("C:\\Robocode.attack");

    if (attack.exists()) {
      Assert.assertTrue(attack.delete());
    }
  }
Ejemplo n.º 2
0
 @Override
 protected void runTeardown() {
   Assert.assertTrue(messagedMax);
   Assert.assertTrue(messagedUnknown);
 }
Ejemplo n.º 3
0
 @Override
 protected void runTeardown() {
   Assert.assertTrue("Didn't seen preventing read", messagedRead);
   Assert.assertTrue("Didn't seen preventing write", messagedWrite);
   Assert.assertFalse("Found attack file", new File("C:\\Robocode.attack").exists());
 }
 @Override
 protected void runTeardown() {
   Assert.assertTrue(messagedScanned);
 }
Ejemplo n.º 5
0
 @Override
 protected void runTeardown() {
   Assert.assertTrue(messagedEvent);
   Assert.assertTrue(messagedBattle);
 }
Ejemplo n.º 6
0
 private void test(IRobotSnapshot gh, String s) {
   Assert.assertTrue(
       gh.getOutputStreamSnapshot() + " expected " + s,
       gh.getOutputStreamSnapshot().contains("after fire: " + s));
 }
Ejemplo n.º 7
0
 private void test(IRobotSnapshot gh, String s) {
   Assert.assertTrue(
       "got: " + gh.getOutputStreamSnapshot() + ", expected: " + s,
       gh.getOutputStreamSnapshot().contains(s));
 }