Package org.apache.maven.wagon.events

Examples of org.apache.maven.wagon.events.SessionEvent


            return false;
        }
        if (SessionEvent.class != obj.getClass()) {
            return false;
        }
        SessionEvent other = (SessionEvent) obj;
        if (this.sessionEvent.getEventType() != other.getEventType()) {
            return false;
        }
        if (this.sessionEvent.getWagon() == null) {
            if (other.getWagon() != null) {
                return false;
            }
        } else if (!this.sessionEvent.getWagon().equals(other.getWagon())) {
            return false;
        }
        if (this.sessionEvent.getException() == null) {
            if (other.getException() != null) {
                return false;
            }
        } else if (!this.sessionEvent.getException().equals(other.getException())) {
            return false;
        }
        return true;
    }
View Full Code Here


    }

    @Test
    public void fireSessionOpening() {
        this.sessionListenerSupport.fireSessionOpening();
        verify(this.sessionListener).sessionOpening(eq(new SessionEvent(this.wagon, SessionEvent.SESSION_OPENING)));
    }
View Full Code Here

    }

    @Test
    public void fireSessionOpened() {
        this.sessionListenerSupport.fireSessionOpened();
        verify(this.sessionListener).sessionOpened(eq(new SessionEvent(this.wagon, SessionEvent.SESSION_OPENED)));
    }
View Full Code Here

    }

    @Test
    public void fireSessionDisconnecting() {
        this.sessionListenerSupport.fireSessionDisconnecting();
        verify(this.sessionListener).sessionDisconnecting(eq(new SessionEvent(this.wagon,
                SessionEvent.SESSION_DISCONNECTING)));
    }
View Full Code Here

    }

    @Test
    public void fireSessionDisonnected() {
        this.sessionListenerSupport.fireSessionDisconnected();
        verify(this.sessionListener).sessionDisconnected(eq(new SessionEvent(this.wagon,
                SessionEvent.SESSION_DISCONNECTED)));
    }
View Full Code Here

    }

    @Test
    public void fireSessionConnectionRefused() {
        this.sessionListenerSupport.fireSessionConnectionRefused();
        verify(this.sessionListener).sessionConnectionRefused(eq(new SessionEvent(this.wagon,
                SessionEvent.SESSION_CONNECTION_REFUSED)));
    }
View Full Code Here

    }

    @Test
    public void fireSessionLoggedIn() {
        this.sessionListenerSupport.fireSessionLoggedIn();
        verify(this.sessionListener).sessionLoggedIn(eq(new SessionEvent(this.wagon, SessionEvent.SESSION_LOGGED_IN)));
    }
View Full Code Here

    }

    @Test
    public void fireSessionLoggedOff() {
        this.sessionListenerSupport.fireSessionLoggedOff();
        verify(this.sessionListener).sessionLoggedOff(eq(new SessionEvent(this.wagon,
                SessionEvent.SESSION_LOGGED_OFF)));
    }
View Full Code Here

    @Test
    public void fireSessionError() {
        IOException exception = new IOException();
        this.sessionListenerSupport.fireSessionError(exception);
        verify(this.sessionListener).sessionError(eq(new SessionEvent(this.wagon, exception)));
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.wagon.events.SessionEvent

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.