Examples of StructureMetaData


Examples of org.jboss.deployers.spi.structure.StructureMetaData

      assertNotSame(one.hashCode(), two.hashCode());
   }
  
   public void testSerialization() throws Exception
   {
      StructureMetaData structure = createDefault();
      assertEmpty(structure.getContexts());

      structure = serializeDeserialize(structure, StructureMetaData.class);
      assertEmpty(structure.getContexts());

      ContextInfo one = createContext("one");
      ContextInfo two = createContext("two");
      structure.addContext(one);
      structure.addContext(two);
      assertEquals(getExpected(one, two), structure.getContexts());
      assertEquals(one, structure.getContext("one"));
      assertEquals(two, structure.getContext("two"));
     
      structure = serializeDeserialize(structure, StructureMetaData.class);
      assertEquals(getExpected(one, two), structure.getContexts());
      assertEquals(one, structure.getContext("one"));
      assertEquals(two, structure.getContext("two"));
   }
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.