Package er.rest.model

Examples of er.rest.model.Manufacturer


            editingContext.dispose();
        }
    }

    public void testNonEntity() {
        Manufacturer m = Manufacturer.PORSCHE;
        assertEquals("{\"id\":\"Porsche\",\"type\":\"Manufacturer\",\"name\":\"Porsche\"}\n", ERXRestFormat.json().toString(m));
    }
View Full Code Here


        assertEquals(Integer.valueOf(5), node.valueForKeyPath("ages[0]"));
        assertEquals("Apple", node.valueForKeyPath("companies[1].name"));
    }

    public void testRelationshipKeys() {
        Manufacturer m = Manufacturer.PORSCHE;
        ERXKeyFilter f = ERXKeyFilter.filterWithNone();
        f.include("cars.name");
        assertEquals("{\"id\":\"Porsche\",\"type\":\"Manufacturer\",\"cars\":[{\"id\":\"911\",\"type\":\"Car\",\"name\":\"911\"},{\"id\":\"Cayenne\",\"type\":\"Car\",\"name\":\"Cayenne\"}]}\n", ERXRestFormat.json().toString(m, f));
        assertEquals("{\n" +
            "\t\"type\" = \"Manufacturer\";\n" +
View Full Code Here

TOP

Related Classes of er.rest.model.Manufacturer

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.