1 package org.tigris.scarab.om; 2 3 48 49 import org.tigris.scarab.test.BaseScarabTestCase; 50 51 57 public class RModuleIssueTypeTest extends BaseScarabTestCase 58 { 59 private RModuleIssueType rmit = null; 60 61 62 63 public void setUp() throws Exception 64 { 65 super.setUp(); 66 rmit = getModule().getRModuleIssueType(getDefaultIssueType()); 67 68 } 69 70 public void testGetDisplayText() throws Exception 71 { 72 System.out.println("\ntestGetDisplayText()"); 73 assertEquals("Defect", rmit.getDisplayName()); 74 } 75 76 public void testCopy() throws Exception 77 { 78 System.out.println("\ntestCopy()"); 79 RModuleIssueType rmit2 = rmit.copy(); 80 assertEquals(rmit.getIssueTypeId(), rmit2.getIssueTypeId()); 81 } 82 83 87 public void OFFtestDelete() throws Exception 88 { 89 System.out.println("\ntestDelete()"); 90 rmit.delete(getUser1()); 91 assertEquals(4, getModule().getRModuleIssueTypes().size()); 92 } 93 } 94 | Popular Tags |