@Override
  protected void runSetup() {
    File attack = new File("C:\\Robocode.attack");

    if (attack.exists()) {
      Assert.assertTrue(attack.delete());
    }
  }
 @Override
 protected void runTeardown() {
   Assert.assertTrue(messagedMax);
   Assert.assertTrue(messagedUnknown);
 }
 @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);
 }
 @Override
 protected void runTeardown() {
   Assert.assertTrue(messagedEvent);
   Assert.assertTrue(messagedBattle);
 }
Esempio n. 6
0
 private void test(IRobotSnapshot gh, String s) {
   Assert.assertTrue(
       gh.getOutputStreamSnapshot() + " expected " + s,
       gh.getOutputStreamSnapshot().contains("after fire: " + s));
 }
 private void test(IRobotSnapshot gh, String s) {
   Assert.assertTrue(
       "got: " + gh.getOutputStreamSnapshot() + ", expected: " + s,
       gh.getOutputStreamSnapshot().contains(s));
 }