1 package org.tigris.scarab.om; 2 3 48 49 import org.apache.torque.om.NumberKey; 50 import org.tigris.scarab.test.BaseScarabTestCase; 51 52 58 public class RModuleAttributeTest extends BaseScarabTestCase 59 { 60 private RModuleAttribute rma = null; 61 private Attribute platform = null; 62 63 64 65 public void setUp() throws Exception 66 { 67 super.setUp(); 68 platform = AttributeManager.getInstance(new NumberKey("5")); 69 rma = getModule().getRModuleAttribute(platform, 70 getDefaultIssueType()); 71 72 } 73 74 75 public void testGetDisplayValue() throws Exception 76 { 77 System.out.println("\ntestGetDisplayValue()"); 78 assertEquals("Platform", rma.getDisplayValue()); 79 } 80 81 public void testGetIsDefaultText() throws Exception 82 { 83 System.out.println("\ntestGetIsDefaultText()"); 84 assertEquals(false, rma.getIsDefaultText()); 85 } 86 87 public void testSetIsDefaultText() throws Exception 88 { 89 System.out.println("\ntestGetIsDefaultText()"); 90 rma.setIsDefaultText(true); 91 assertEquals(true, rma.getIsDefaultText()); 92 } 93 94 98 public void OFFtestDelete() throws Exception 99 { 100 System.out.println("\ntestDelete()"); 101 rma.delete(); 102 assertEquals(11,getModule().getRModuleAttributes(getDefaultIssueType()).size()); 103 } 104 } 105 | Popular Tags |