1 22 package org.jboss.test.system.metadata.attributes.test; 23 24 import java.util.List ; 25 26 import org.jboss.system.metadata.ServiceAttributeMetaData; 27 28 34 public class DependsListAttributeUnitTestCase extends AbstractAttributeTest 35 { 36 public DependsListAttributeUnitTestCase(String name) 37 { 38 super(name); 39 } 40 41 public void testDependsListAttributeNone() throws Exception 42 { 43 noAttributes(); 44 } 45 46 public void testDependsListAttributeOne() throws Exception 47 { 48 ServiceAttributeMetaData attribute = unmarshallSingleAttribute(); 49 assertDependsListAttribute(attribute); 50 } 51 52 public void testDependsListAttributeTwo() throws Exception 53 { 54 List <ServiceAttributeMetaData> attributes = unmarshallMultipleAttributes(2); 55 ServiceAttributeMetaData test = attributes.get(0); 56 assertDependsListAttribute(test, "Attribute1", TEST1); 57 test = attributes.get(1); 58 assertDependsListAttribute(test, "Attribute2", TEST2); 59 } 60 61 public void testDependsListAttributeNoValue() throws Exception 62 { 63 ServiceAttributeMetaData attribute = unmarshallSingleAttribute(); 64 assertDependsListAttributeEmpty(attribute); 65 } 66 67 public void testDependsListAttributeEmptyValue() throws Exception 68 { 69 ServiceAttributeMetaData attribute = unmarshallSingleAttribute(); 70 assertDependsListAttributeEmpty(attribute); 71 } 72 73 public void testDependsListAttributeNoName() throws Exception 74 { 75 noAttributes(); 77 } 78 } 79 | Popular Tags |