01: package test.xoetrope.swing;
02:
03: import com.xoetrope.swing.XAccordian;
04: import javax.swing.JPanel;
05: import junit.framework.TestCase;
06:
07: /**
08: *
09: * @author luano
10: */
11: public class TestXAccordian extends TestCase {
12: public void setUp() {
13: }
14:
15: public void tearDown() {
16: }
17:
18: public void textXAccordianAdd() {
19: XAccordian acc = new XAccordian();
20:
21: JPanel testPanel1 = new JPanel();
22: JPanel testPanel2 = new JPanel();
23:
24: acc.add(testPanel1, "p1");
25: acc.add(testPanel2, "p2");
26:
27: assertTrue(acc.getComponentCount() == 4);
28: }
29: }
|