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

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


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


      assertSet(parameter.getValue());
   }
  
   public void testParameterWithArray() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertArray(parameter.getValue());
   }
View Full Code Here

      assertArray(parameter.getValue());
   }
  
   public void testParameterWithMap() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertMap(parameter.getValue());
   }
View Full Code Here

      assertMap(parameter.getValue());
   }
  
   public void testParameterWithThis() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertThis(parameter.getValue());
   }
View Full Code Here

      assertThis(parameter.getValue());
   }
  
   public void testParameterWithWildcard() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      assertNull(parameter.getAnnotations());
      assertWildcard(parameter.getValue());
   }
View Full Code Here

      ConstructorMetaData constructor = bean.getConstructor();
      assertNotNull(constructor);
      List<?> parameters = constructor.getParameters();
      assertNotNull(parameters);
      assertEquals(1, parameters.size());
      ParameterMetaData parameter = (ParameterMetaData) parameters.get(0);
      assertNotNull(parameter);
      return parameter;
   }
View Full Code Here

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

      assertNull(parameter.getValue());
   }
  
   public void testParameterWithBean() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getAnnotations());
      assertNotNull(parameter.getValue());
      assertTrue(parameter.getValue() instanceof BeanMetaData);
   }
View Full Code Here

      assertTrue(parameter.getValue() instanceof BeanMetaData);
   }
  
   public void testParameterWithClass() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertEquals("ParameterClass", parameter.getType());
      assertNull(parameter.getAnnotations());
      assertNull(parameter.getValue());
   }
View Full Code Here

      assertNull(parameter.getValue());
   }

   public void testParameterWithAnnotation() throws Exception
   {
      ParameterMetaData parameter = getParameter();
      assertNull(parameter.getType());
      HashSet<String> expected = new HashSet<String>();
      expected.add("@" + Annotation1.class.getName());
      assertAnnotations(expected, parameter.getAnnotations());
      assertNull(parameter.getValue());
   }
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.