Package com.jelastic.model

Examples of com.jelastic.model.CreateObject


            if (upLoader.getResult() == 0) {
                getLog().info("      File UpLoad : SUCCESS");
                getLog().info("         File URL : " + upLoader.getFile());
                getLog().info("        File size : " + upLoader.getSize());
                getLog().info("------------------------------------------------------------------------");
                CreateObject createObject = createObject(upLoader,authentication);
                if (createObject.getResult() == 0) {
                    getLog().info("File registration : SUCCESS");
                    getLog().info("  Registration ID : " + createObject.getResponse().getObject().getId());
                    getLog().info("     Developer ID : " + createObject.getResponse().getObject().getDeveloper());
                    getLog().info("------------------------------------------------------------------------");
                    if (System.getProperty("jelastic-session") == null) {
                        LogOut logOut = logOut(authentication);
                        if (logOut.getResult() == 0){
                            getLog().info("           LogOut : SUCCESS");
View Full Code Here


    @Test
    @Ignore
    public void createObjectOkTest() throws Exception {
        ObjectMapper mapper = new ObjectMapper();
        URL url = this.getClass().getClassLoader().getResource("createobject_ok.json");
        CreateObject createObject = mapper.readValue(url, CreateObject.class);
        assertEquals(createObject.getResponse().getId(), 247);
    }
View Full Code Here

    @Test
    @Ignore
    public void createObjectErrorTest() throws Exception {
        ObjectMapper mapper = new ObjectMapper();
        URL url = this.getClass().getClassLoader().getResource("createobject_error.json");
        CreateObject createObject = mapper.readValue(url, CreateObject.class);
        assertEquals(createObject.getError(), "invalid parameter [session]");
    }
View Full Code Here

TOP

Related Classes of com.jelastic.model.CreateObject

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.