Package org.jboss.test.xml.initializer

Examples of org.jboss.test.xml.initializer.Container


      return resolver;
   }

   public void testBean() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerStrictBean.xml", Container.class);
      Object object = container.getValue();
      assertNotNull("Should have a value", object);
      assertTrue(object instanceof AbstractBeanMetaData);
      AbstractBeanMetaData bean = (AbstractBeanMetaData) object;
      assertEquals("TestClass", bean.getBean());
   }
View Full Code Here


      return resolver;
   }

   public void testBean() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerStrictBean.xml", Container.class);
      Object object = container.getValue();
      assertNotNull("Should have a value", object);
      assertTrue(object instanceof AbstractBeanMetaData);
      AbstractBeanMetaData bean = (AbstractBeanMetaData) object;
      assertEquals("TestClass", bean.getBean());
   }
View Full Code Here

      assertEquals("SimpleTest", simple.getValue());
   }
  
   public void testContainer() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "Container.xml", Container.class);
      assertNull(container.getValue());
   }
View Full Code Here

      assertNull(container.getValue());
   }
  
   public void testContainerStrictSimple() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerStrictSimple.xml", Container.class);
      Object value = container.getValue();
      assertNotNull("Should have a value", value);
      assertTrue("Should be a simple", value instanceof Simple);
      Simple simple = (Simple) value;
      assertEquals("ContainerStrict", simple.getValue());
   }
View Full Code Here

      }
   }
  
   public void testContainerLaxSimple() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerLaxSimple.xml", Container.class);
      Object value = container.getValue();
      assertNotNull("Should have a value", value);
      assertTrue("Should be a simple", value instanceof Simple);
      Simple simple = (Simple) value;
      assertEquals("ContainerLax", simple.getValue());
   }
View Full Code Here

      assertEquals("ContainerLax", simple.getValue());
   }
  
   public void testContainerLaxNotSimple() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerLaxNotSimple.xml", Container.class);
      Object value = container.getValue();
      assertNull("Should NOT have a value", value);
   }
View Full Code Here

      assertNull("Should NOT have a value", value);
   }
  
   public void testContainerSkipSimple() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerSkipSimple.xml", Container.class);
      Object value = container.getValue();
      assertNull("Should NOT have a value", value);
   }
View Full Code Here

      assertNull("Should NOT have a value", value);
   }
  
   public void testContainerSkipNotSimple() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerSkipNotSimple.xml", Container.class);
      Object value = container.getValue();
      assertNull("Should NOT have a value", value);
   }
View Full Code Here

      assertEquals("SimpleTest", simple.getValue());
   }
  
   public void testContainer() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "Container.xml", Container.class);
      assertNull(container.getValue());
   }
View Full Code Here

      assertNull(container.getValue());
   }
  
   public void testContainerStrictSimple() throws Exception
   {
      Container container = (Container) unmarshal(rootName + "ContainerStrictSimple.xml", Container.class);
      Object value = container.getValue();
      assertNotNull("Should have a value", value);
      assertTrue("Should be a simple", value instanceof Simple);
      Simple simple = (Simple) value;
      assertEquals("ContainerStrict", simple.getValue());
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.xml.initializer.Container

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.