Package test.container.X

Examples of test.container.X.ChildSingle


    assertSame(con, con.get(Container.class));
    assertSame(con0.getClass(), con.getClass());
    assertSame(con0.parent().getClass(), con.parent().getClass());
    assertSame(con.parent(), con.rootParent());

    ChildSingle o = con.get(ChildSingle.class);
    assertNotNull(o.on);
    assertNotSame(con.parent().get(ParentNew.class), o.on);
    assertSame(con.parent().get(ParentSingle.class), o.os);
    assertSame(o.os, o.on.x);
    assertSame(o.os, o.os.x);

    ChildSingle o2 = con.getNew(ChildSingle.class);
    assertNotSame(o.on, o2.on);
    assertSame(o.os, o2.os);
    ChildSingle o3 = con2.get(ChildSingle.class);
    assertNotSame(o.on, o3.on);
    assertNotSame(o2.on, o3.on);
    assertSame(o.os, o3.os);

    ParentSingle o4 = con.getNew(ParentSingle.class);
View Full Code Here

TOP

Related Classes of test.container.X.ChildSingle

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.