Package com.heroku.api.request.addon

Examples of com.heroku.api.request.addon.AppAddonsList


     * List the addons already added to an app.
     * @param appName
     * @return
     */
    public List<Addon> listAppAddons(String appName) {
        return connection.execute(new AppAddonsList(appName), apiKey);
    }
View Full Code Here


    }

    @Test(dataProvider = "newApp", retryAnalyzer = GeneralRetryAnalyzer.class)
    public void testListAppAddons(App app) {
        connection.execute(new AddonInstall(app.getName(), "heroku-postgresql:dev"), apiKey);
        Request<List<Addon>> req = new AppAddonsList(app.getName());
        List<Addon> response = connection.execute(req, apiKey);
        assertNotNull(response);
        assertTrue(response.size() > 0, "Expected at least one addon to be present.");
        assertNotNull(response.get(0).getName());
    }
View Full Code Here

TOP

Related Classes of com.heroku.api.request.addon.AppAddonsList

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.