Package org.jboss.seam.remoting.wrapper

Examples of org.jboss.seam.remoting.wrapper.BaseWrapper


   }

   @Test
   public void testBaseWrapper()
   {
      BaseWrapper wrapper = new BaseWrapper()
      {
         public ConversionScore conversionScore(Class cls)
         {
            return ConversionScore.nomatch;
         }

         public void marshal(OutputStream out)
         {
         }

         public Object convert(Type type)
         {
            return null;
         }
      };

      Object value = new Object();
      wrapper.setValue(value);

      assert value.equals(wrapper.getValue());

      // For code-coverage completeness
      wrapper.unmarshal();
      wrapper.setCallContext(null);
      try
      {
         wrapper.serialize(null);
      }
      catch (IOException ex)
      {
      }
   }
View Full Code Here


   }

   @Test
   public void testBaseWrapper()
   {
      BaseWrapper wrapper = new BaseWrapper()
      {
         public ConversionScore conversionScore(Class cls)
         {
            return ConversionScore.nomatch;
         }

         public void marshal(OutputStream out)
         {
         }

         public Object convert(Type type)
         {
            return null;
         }
      };

      Object value = new Object();
      wrapper.setValue(value);

      assert value.equals(wrapper.getValue());

      // For code-coverage completeness
      wrapper.unmarshal();
      wrapper.setCallContext(null);
      try
      {
         wrapper.serialize(null);
      }
      catch (IOException ex)
      {
      }
   }
View Full Code Here

   }

   @Test
   public void testBaseWrapper()
   {
      BaseWrapper wrapper = new BaseWrapper()
      {
         public ConversionScore conversionScore(Class cls)
         {
            return ConversionScore.nomatch;
         }

         public void marshal(OutputStream out)
         {
         }

         public Object convert(Type type)
         {
            return null;
         }
      };

      Object value = new Object();
      wrapper.setValue(value);

      assert value.equals(wrapper.getValue());

      // For code-coverage completeness
      wrapper.unmarshal();
      wrapper.setCallContext(null);
      try
      {
         wrapper.serialize(null);
      }
      catch (IOException ex)
      {
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.remoting.wrapper.BaseWrapper

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.