Examples of ServiceMetaData


Examples of org.jboss.system.metadata.ServiceMetaData

      compTypeAnno();
   }

   protected void compTypeAnno() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
      String exp = "@org.jboss.test.system.metadata.annotation.CompType(type=\"DS\",subtype=\"LocalTX\")";
      assertAnnotation(metaData, exp, CompType.class);
      assertOthers(metaData);
   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      super(name);
   }

   public void testConstructorDefault() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
      assertDefaultConstructor(metaData);
      assertOthers(metaData);
   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      assertOthers(metaData);
   }

   public void testConstructorOneArg() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
     
      String[] expectedSignature = new String[] { "signature1" };
      String[] expectedParams = new String[] { "param1" };
     
      assertConstructor(expectedSignature, expectedParams, metaData);
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      assertOthers(metaData);
   }

   public void testConstructorTwoArgs() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
     
      String[] expectedSignature = new String[] { "signature1", "signature2" };
      String[] expectedParams = new String[] { "param1", "param2" };
     
      assertConstructor(expectedSignature, expectedParams, metaData);
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      assertOthers(metaData);
   }

   public void testConstructorEmptyValue() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
     
      String[] expectedSignature = new String[] { "signature1" };
      String[] expectedParams = new String[] { "" };
     
      assertConstructor(expectedSignature, expectedParams, metaData);
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      super(name);
   }

   protected ServiceAttributeMetaData unmarshallSingleAttribute() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
      assertOthers(metaData);
      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
      assertNotNull(attributes);
      assertEquals(1, attributes.size());
      return attributes.get(0);
   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      return attributes.get(0);
   }

   protected ServiceValueMetaData unmarshallSingleValue() throws Exception
   {
      ServiceMetaData metaData = unmarshalSingleMBean();
      assertOthers(metaData);
      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
      assertNotNull(attributes);
      assertEquals(1, attributes.size());
      ServiceAttributeMetaData attribute = attributes.get(0);
      assertAttributeName(attribute, "Attribute");
      ServiceValueMetaData result = attribute.getValue();
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      super(name);
   }

   public void testAliasEmpty() throws Exception
   {
      ServiceMetaData service = unmarshalSingleMBean();
      assertNull(service.getAliases());
   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      assertNull(service.getAliases());
   }

   public void testAliasSingle() throws Exception
   {
      ServiceMetaData service = unmarshalSingleMBean();
      List<String> aliases = service.getAliases();
      assertNotNull(aliases);
      assertEquals(1, aliases.size());
      assertEquals("SingleAlias", aliases.iterator().next());
   }
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaData

      assertEquals("SingleAlias", aliases.iterator().next());
   }

   public void testAliasMultiple() throws Exception
   {
      ServiceMetaData service = unmarshalSingleMBean();
      List<String> aliases = service.getAliases();
      assertNotNull(aliases);
      assertEquals(3, aliases.size());
      for(int i = 0; i < aliases.size(); i++)
         assertEquals("Alias#" + i, aliases.get(i));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.