Package com.example.subgroup

Examples of com.example.subgroup.A


        doc.getRootObject(), doc.getRootElementURI(), doc.getRootElementName());
    assertTrue(strdoc.indexOf("<sg:imInTypeB>thisIsElB</sg:imInTypeB>") != -1);
  }

  public void testSubGroup_AcontainsB() {
    A a = (A) scope.getDataFactory().create(A.class);
    B b = (B) scope.getDataFactory().create(B.class);
    b.setImInTypeB("thisIsElB");
    a.setGe1(b);

    assertSame(b, a.getGe1());
    assertSame(b, ((AImpl) a).get(AImpl.GE1));

    String doc = scope.getXMLHelper().save((DataObject) a,
        "http://example.com/subgroup", "a");
    assertTrue(doc.indexOf("<sg:imInTypeB>thisIsElB</sg:imInTypeB>") != -1);
View Full Code Here


    assertTrue(doc.indexOf("<sg:imInTypeB>thisIsElB</sg:imInTypeB>") != -1);

  }

  public void testSubGroup_AcontainsBprime() {
    A a = (A) scope.getDataFactory().create(A.class);
    Bprime bp = (Bprime) scope.getDataFactory().create(Bprime.class);
    bp.setImInTypeBprime("thisIsElBprime");
    a.setGe1(bp);

    assertSame(bp, a.getGe1());
    assertSame(bp, ((AImpl) a).get(AImpl.GE1));

    String doc = scope.getXMLHelper().save((DataObject) a,
        "http://example.com/subgroup", "a");
   
View Full Code Here

TOP

Related Classes of com.example.subgroup.A

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.