8月30 周浩 自动测试代码提交

This commit is contained in:
zhoudaxia 2016-08-30 12:27:51 +08:00
parent 9ed847689b
commit 9c491cce5a
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package net.sf.robocode.ui.dialog;
import static org.junit.Assert.*;
import org.junit.Test;
public class PreferencesViewOptionsTabTest {
private static PreferencesViewOptionsTab preferencesViewOptionsTab = new PreferencesViewOptionsTab(null);
@Test
public void testDefaultViewOptionsButtonActionPerformed() {
preferencesViewOptionsTab.defaultViewOptionsButtonActionPerformed();
assertEquals(true, preferencesViewOptionsTab.getVisibleExplosionDebrisCheckBox());
assertEquals(true, preferencesViewOptionsTab.getVisibleExplosionsCheckBox());
assertEquals(true, preferencesViewOptionsTab.getVisibleGroundCheckBox());
assertEquals(true, preferencesViewOptionsTab.getVisibleRobotEnergyCheckBox());
assertEquals(true, preferencesViewOptionsTab.getVisibleRobotNameCheckBox());
assertEquals(true, preferencesViewOptionsTab.getVisibleSentryBorderCheckBox());
assertEquals(false, preferencesViewOptionsTab.getVisibleScanArcsCheckBox());
}
}