Package ceylon.language.meta.model

Examples of ceylon.language.meta.model.ClassModel


    DeserializationContextImpl dc = new DeserializationContextImpl();
   
    /** a -> b */
    @Test
    public void testPair() {
        @SuppressWarnings("rawtypes")
        ClassModel cm = null;
        DeserializingReference<GuineaPig> a = new DeserializingReference<GuineaPig>(null, "a", cm, new GuineaPig("A"));
        DeserializingReference<GuineaPig> b = new DeserializingReference<GuineaPig>(null, "b", cm, new GuineaPig("B"));
        a.deserialize(new DeconstructedGineaPig(null, b));
        b.deserialize(new DeconstructedGineaPig(null, null));
View Full Code Here


    }
   
    /** a -> a */
    @Test
    public void testCycle1() {
        @SuppressWarnings("rawtypes")
        ClassModel cm = null;
        DeserializingReference<GuineaPig> a = new DeserializingReference<GuineaPig>(null, "a", cm, new GuineaPig("A"));
        a.deserialize(new DeconstructedGineaPig(null, a));
        a.instance();
        Assert.assertEquals(3, a.getState());
View Full Code Here

    }
   
    /** a -> b -> a*/
    @Test
    public void testCycle2() {
        @SuppressWarnings("rawtypes")
        ClassModel cm = null;
        DeserializingReference<GuineaPig> a = new DeserializingReference<GuineaPig>(null, "a", cm, new GuineaPig("A"));
        DeserializingReference<GuineaPig> b = new DeserializingReference<GuineaPig>(null, "b", cm, new GuineaPig("B"));
        a.deserialize(new DeconstructedGineaPig(null, b));
        b.deserialize(new DeconstructedGineaPig(null, a));
View Full Code Here

        Assert.assertEquals(3, b.getState());
    }
   
    @Test
    public void testMissingDeser() {
        @SuppressWarnings("rawtypes")
        ClassModel cm = null;
        DeserializingReference<GuineaPig> a = new DeserializingReference<GuineaPig>(null, "a", cm, new GuineaPig("A"));
        DeserializingReference<GuineaPig> b = new DeserializingReference<GuineaPig>(null, "b", cm, new GuineaPig("B"));
        a.deserialize(new DeconstructedGineaPig(null, b));
        try {
View Full Code Here

     * a -> b(ERROR) -> c
     * d -> c
     */
    @Test
    public void testError() {
        @SuppressWarnings("rawtypes")
        ClassModel cm = null;
        DeserializingReference<GuineaPig> a = new DeserializingReference<GuineaPig>(null, "a", cm, new GuineaPig("A"));
        DeserializingReference<GuineaPig> b = new DeserializingReference<GuineaPig>(null, "b", cm, new GuineaPig("B"));
        DeserializingReference<GuineaPig> c = new DeserializingReference<GuineaPig>(null, "c", cm, new GuineaPig("C"));
        a.deserialize(new DeconstructedGineaPig(null, b));
View Full Code Here

TOP

Related Classes of ceylon.language.meta.model.ClassModel

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.