01: package net.xoetrope.xui.test;
02:
03: import junit.framework.TestCase;
04: import net.xoetrope.awt.XRadioButton;
05:
06: /**
07: * Title: Xui
08: * Description:
09: * Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
10: * Company: Xoetrope Ltd.
11: * @author Xoetrope Ltd.
12: * @version 1.0
13: */
14:
15: public class TestXRadioButton extends TestCase {
16:
17: public TestXRadioButton() {
18: }
19:
20: public void testSetState() {
21: XRadioButton button1 = new XRadioButton();
22: XRadioButton button2 = new XRadioButton();
23: button1.setState(false);
24: button2.setState(true);
25: assertTrue(button1.getState() != button2.getState());
26: }
27: }
|