01: package net.sourceforge.cruisecontrol;
02:
03: import net.sourceforge.cruisecontrol.sourcecontrols.ConcurrentVersionsSystem;
04: import junit.framework.TestCase;
05:
06: public class GenericPluginDetailTest extends TestCase {
07:
08: public void testGetName() {
09: GenericPluginDetail detail = new GenericPluginDetail("cvs",
10: ConcurrentVersionsSystem.class);
11: assertEquals("cvs", detail.getName());
12: }
13:
14: public void testGetType() {
15: GenericPluginDetail detail = new GenericPluginDetail("cvs",
16: ConcurrentVersionsSystem.class);
17: assertEquals(PluginType.SOURCE_CONTROL, detail.getType());
18: }
19:
20: public void testGetRequiredAttributes() {
21: Attribute[] attributes = new GenericPluginDetail("cvs",
22: ConcurrentVersionsSystem.class).getRequiredAttributes();
23: assertNotNull(attributes);
24: assertTrue(0 < attributes.length);
25: }
26:
27: public void testCompareTo() {
28: GenericPluginDetail detail = new GenericPluginDetail("cvs",
29: ConcurrentVersionsSystem.class);
30: assertEquals(0, detail.compareTo(detail));
31: }
32: }
|