Package org.jboss.seam.remoting.wrapper

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


      String value = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
            + "!@#$%^&*()_+-=`~[]{}|;:\"',./<>?\\ ";
      StringWrapper wrapper = new StringWrapper();
      wrapper.setElement(createElement("str", value));

      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());
View Full Code Here


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

      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();
View Full Code Here

      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

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.