1 22 package org.jboss.test.system.controller.configure.attribute.test; 23 24 import javax.management.AttributeNotFoundException ; 25 26 import junit.framework.Test; 27 28 import org.jboss.deployment.DeploymentException; 29 import org.jboss.test.AbstractTestDelegate; 30 import org.jboss.test.system.controller.support.SimpleMBean; 31 32 38 public class DependsListAttributeOldUnitTestCase extends DependsListAttributeTest 39 { 40 public static Test suite() 41 { 42 return suite(DependsListAttributeOldUnitTestCase.class); 43 } 44 45 public DependsListAttributeOldUnitTestCase(String name) 46 { 47 super(name); 48 } 49 50 public static AbstractTestDelegate getDelegate(Class clazz) throws Exception 51 { 52 return getOldControllerDelegate(clazz); 53 } 54 55 public void testDependsListAttributeNoValue() throws Exception 56 { 57 assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class); 58 } 59 60 public void testDependsListAttributeEmptyValue() throws Exception 61 { 62 assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class); 63 } 64 65 public void testDependsListAttributeInvalidValue() throws Exception 66 { 67 assertDeployFailure(SimpleMBean.OBJECT_NAME, Error .class); 68 } 69 70 public void testDependsListAttributeUnknownElement() throws Exception 71 { 72 assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class); 73 } 74 75 public void testDependsListAttributePatternValue() throws Exception 76 { 77 FAILS_IN_OLD(); 78 } 79 80 public void testDependsListAttributeNotFound() throws Exception 81 { 82 assertDeployFailure(SimpleMBean.OBJECT_NAME, AttributeNotFoundException .class); 83 } 84 } 85 | Popular Tags |