Package com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritConnectionListener


    public void setup() {
        PluginImpl plugin = mock(PluginImpl.class);
        mockStatic(PluginImpl.class);
        when(PluginImpl.getInstance()).thenReturn(plugin);
        gerritServerOne = new GerritServer(gerritServerOneName);
        listener = new GerritConnectionListener(gerritServerOne.getName());
        listener.setConnected(true);
        Whitebox.setInternalState(gerritServerOne, "gerritConnectionListener", listener);
        gerritServerOne = spy(gerritServerOne);
        when(plugin.getServer(eq(gerritServerOneName))).thenReturn(gerritServerOne);
    }
View Full Code Here


    /**
     * Initializes the Gerrit connection listener for this server.
     */
    private void initializeConnectionListener() {
        gerritConnectionListener = new GerritConnectionListener(name);
        addListener(gerritConnectionListener);
        gerritConnectionListener.setConnected(isConnected());
        gerritConnectionListener.checkGerritVersionFeatures();
    }
View Full Code Here

TOP

Related Classes of com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritConnectionListener

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.