Package org.jboss.seam.remoting.wrapper

Examples of org.jboss.seam.remoting.wrapper.StringWrapper.convert()


      assert value.equals(wrapper.convert(String.class));
      assert value
            .equals(((StringBuilder) wrapper.convert(StringBuilder.class))
                  .toString());
      assert value.equals(((StringBuffer) wrapper.convert(StringBuffer.class))
            .toString());

      ByteArrayOutputStream out = new ByteArrayOutputStream();
      wrapper.marshal(out);
      byte[] expected = ("<str>"
View Full Code Here


      assertEquals(expected, out.toByteArray());

      value = "123";
      wrapper.setElement(createElement("str", value));

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.class));
      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
View Full Code Here

      value = "123";
      wrapper.setElement(createElement("str", value));

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.class));
      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
View Full Code Here

      value = "123";
      wrapper.setElement(createElement("str", value));

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.class));
      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));
View Full Code Here

      wrapper.setElement(createElement("str", value));

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.class));
      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));
View Full Code Here

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.class));
      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));

      value = "123.4567";
View Full Code Here

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.class));
      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));

      value = "123.4567";
      wrapper.setElement(createElement("str", value));
View Full Code Here

      assert Integer.valueOf(value).equals(wrapper.convert(Integer.TYPE));
      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));

      value = "123.4567";
      wrapper.setElement(createElement("str", value));
View Full Code Here

      assert Long.valueOf(value).equals(wrapper.convert(Long.class));
      assert Long.valueOf(value).equals(wrapper.convert(Long.TYPE));
      assert Short.valueOf(value).equals(wrapper.convert(Short.class));
      assert Short.valueOf(value).equals(wrapper.convert(Short.TYPE));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.class));
      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));

      value = "123.4567";
      wrapper.setElement(createElement("str", value));

      assert Double.valueOf(value).equals(wrapper.convert(Double.class));
View Full Code Here

      assert Byte.valueOf(value).equals(wrapper.convert(Byte.TYPE));

      value = "123.4567";
      wrapper.setElement(createElement("str", value));

      assert Double.valueOf(value).equals(wrapper.convert(Double.class));
      assert Double.valueOf(value).equals(wrapper.convert(Double.TYPE));
      assert Float.valueOf(value).equals(wrapper.convert(Float.class));
      assert Float.valueOf(value).equals(wrapper.convert(Float.TYPE));

      wrapper.setElement(createElement("str", Boolean.toString(true)));
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.