Package com.sonyericsson.hudson.plugins.gerrit.trigger.api.exception

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.api.exception.PluginStatusException


     * @throws PluginNotFoundException throw if plugin is not found.
     * @throws PluginStatusException throw if plugin status is wrong.
     */
    @Test
    public void onReceiveWithPluginStatusException() throws PluginNotFoundException, PluginStatusException {
        doThrow(new PluginStatusException()).when(apiMock).getHandler();

        RabbitMQMessageListenerImpl listener = new RabbitMQMessageListenerImpl();
        Whitebox.setInternalState(listener, GerritTriggerApi.class, apiMock);

        listener.onBind("TEST");
View Full Code Here


        PluginImpl plugin = Jenkins.getInstance().getPlugin(PluginImpl.class);
        if (plugin == null) {
            throw new PluginNotFoundException();
        }
        if (!plugin.isActive()) {
            throw new PluginStatusException();
        }
        return plugin;
    }
View Full Code Here

TOP

Related Classes of com.sonyericsson.hudson.plugins.gerrit.trigger.api.exception.PluginStatusException

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.