Examples of Two


Examples of net.sourceforge.purrpackage.test.simple.two.Two

public class OneTest {

  @Test
  public void testOne() {
    new One().one();
    new Two().fromOne();
  }
View Full Code Here

Examples of org.sonatype.plexus.rest.dto.Two

    Bbb bbb = new Bbb();
    bbb.setaValue("aaa-value");
    bbb.setbValue("bbb-value");

    Two twoObject = new Two();
    twoObject.setOneValue("one-value");
    twoObject.setTwoValue("interesting image: <img src=\"http://something.com/\" />");
    twoObject.setBbb(bbb);

    String stringedTwo = xstream.toXML(twoObject);
    Two copyOfTwo = (Two) xstream.fromXML(stringedTwo);

    Assert.assertEquals("interesting image: &lt;img src=&quot;http://something.com/&quot; /&gt;",
        copyOfTwo.getTwoValue());
  }
View Full Code Here

Examples of org.sonatype.plexus.rest.dto.Two

    // now make one field allow html characters
    Bbb bbb = new Bbb();
    bbb.setaValue("aaa-value");
    bbb.setbValue("bbb-value");

    Two twoObject = new Two();
    twoObject.setOneValue("allow html: <img src=\"http://something.com/\" />");
    twoObject.setTwoValue("interesting image: <img src=\"http://something.com/\" />");
    twoObject.setBbb(bbb);

    String stringedTwo = xstream.toXML(twoObject);
    Two copyOfTwo = (Two) xstream.fromXML(stringedTwo);

    Assert.assertEquals("interesting image: &lt;img src=&quot;http://something.com/&quot; /&gt;",
        copyOfTwo.getTwoValue());
    Assert.assertEquals("allow html: <img src=\"http://something.com/\" />", copyOfTwo.getOneValue());

  }
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.