1 package net.sourceforge.cruisecontrol; 2 3 import net.sourceforge.cruisecontrol.sourcecontrols.ConcurrentVersionsSystem; 4 import junit.framework.TestCase; 5 6 public class GenericPluginDetailTest extends TestCase { 7 8 public void testGetName() { 9 GenericPluginDetail detail = new GenericPluginDetail("cvs", ConcurrentVersionsSystem.class); 10 assertEquals("cvs", detail.getName()); 11 } 12 13 public void testGetType() { 14 GenericPluginDetail detail = new GenericPluginDetail("cvs", ConcurrentVersionsSystem.class); 15 assertEquals(PluginType.SOURCE_CONTROL, detail.getType()); 16 } 17 18 public void testGetRequiredAttributes() { 19 Attribute[] attributes = new GenericPluginDetail("cvs", ConcurrentVersionsSystem.class).getRequiredAttributes(); 20 assertNotNull(attributes); 21 assertTrue(0 < attributes.length); 22 } 23 24 public void testCompareTo() { 25 GenericPluginDetail detail = new GenericPluginDetail("cvs", ConcurrentVersionsSystem.class); 26 assertEquals(0, detail.compareTo(detail)); 27 } 28 } 29 | Popular Tags |