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 DependsAttributeUnitTestCase extends AbstractAttributeTest 35 { 36 public DependsAttributeUnitTestCase(String name) 37 { 38 super(name); 39 } 40 41 public void testDependsAttributeNone() throws Exception 42 { 43 noAttributes(); 44 } 45 46 public void testDependsAttributeOne() throws Exception 47 { 48 ServiceAttributeMetaData attribute = unmarshallSingleAttribute(); 49 assertDependsAttribute(attribute); 50 } 51 52 public void testDependsAttributeTwo() throws Exception 53 { 54 List <ServiceAttributeMetaData> attributes = unmarshallMultipleAttributes(2); 55 ServiceAttributeMetaData test = attributes.get(0); 56 assertDependsAttribute(test, "Attribute1", TEST1); 57 test = attributes.get(1); 58 assertDependsAttribute(test, "Attribute2", TEST2); 59 } 60 61 public void testDependsAttributeNoName() throws Exception 62 { 63 noAttributes(); 65 } 66 } 67 | Popular Tags |