Package com.heroku.api.request.app

Examples of com.heroku.api.request.app.AppCreate


        assertFalse(api.appExists(nonExistentApp));
    }

    @Test(retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testCreateAppCommand() throws IOException {
        AppCreate cmd = new AppCreate(new App().on(Cedar));
        App response = connection.execute(cmd, apiKey);

        assertNotNull(response.getId());
        assertEquals(response.getStack(), Cedar);
        assertEquals(response.getCreateStatus(), "complete");
View Full Code Here


        fail("Stack list did not contain the app's stack.");
    }
   
    @Test(retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testStackMigrate() {
        App app = connection.execute(new AppCreate(new App().on(Heroku.Stack.Bamboo187)), apiKey);
        String migrateStatus = connection.execute(new StackMigrate(app.getName(), Heroku.Stack.Bamboo192), apiKey);
        assertTrue(migrateStatus.contains("Migration prepared"));
    }
View Full Code Here

        return createApp();
    }

    public App createApp() {
        System.out.println("Creating app...");
        App app = connection.execute(new AppCreate(new App().on(Heroku.Stack.Cedar)), apiKey);
        apps.add(app);
        System.out.format("%s created\n", app.getName());
        return app;
    }
View Full Code Here

TOP

Related Classes of com.heroku.api.request.app.AppCreate

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.