8月30 周浩 自动测试代码提交
This commit is contained in:
parent
9ed847689b
commit
9c491cce5a
|
@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue