Package org.jboss.test.xb.builder.object.mc.support.model

Examples of org.jboss.test.xb.builder.object.mc.support.model.ParameterMetaData


      assertNull(parameter.getValue());
   }
  
   public void testParameterWithAnnotations() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      HashSet<String> expected = new HashSet<String>();
      expected.add("@" + Annotation1.class.getName());
      expected.add("@" + Annotation2.class.getName());
      expected.add("@" + Annotation3.class.getName());
      assertAnnotations(expected, parameter.getAnnotations());
      assertNull(parameter.getValue());
   }
View Full Code Here


      assertNull(parameter.getValue());
   }
  
   public void testParameterWithPlainValue() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertPlainValue("PlainValue", parameter.getValue());
   }
View Full Code Here

      assertPlainValue("PlainValue", parameter.getValue());
   }
  
   public void testParameterWithValue() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertValue("Value", parameter.getValue());
   }
View Full Code Here

      assertValue("Value", parameter.getValue());
   }
  
   public void testParameterWithInjection() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertInjection(parameter.getValue());
   }
View Full Code Here

      assertInjection(parameter.getValue());
   }
  
   public void testParameterWithCollection() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertCollection(parameter.getValue());
   }
View Full Code Here

      assertCollection(parameter.getValue());
   }
  
   public void testParameterWithList() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertList(parameter.getValue());
   }
View Full Code Here

   {
      assertNotNull(parameters);
      assertEquals(expected.size(), parameters.size());
      for (int i = 0; i < expected.size(); ++i)
      {
         ParameterMetaData parameter = (ParameterMetaData) parameters.get(i);
         String method = (String) expected.get(i);
         assertEquals(method, parameter.getType());
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.xb.builder.object.mc.support.model.ParameterMetaData

Copyright © 2018 www.massapicom. 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.