Package net.sourceforge.peers

Examples of net.sourceforge.peers.Logger


        assert dialog.getState() instanceof DialogStateEarly;
    }
   
    @Test
    public void transitionEarlyConfirmed() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent1xx();
        dialog.receivedOrSent2xx();
        assert dialog.getState() instanceof DialogStateConfirmed;
    }
View Full Code Here


        assert dialog.getState() instanceof DialogStateConfirmed;
    }
   
    @Test
    public void transitionEarlyTerminated() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent1xx();
        dialog.receivedOrSent300To699();
        assert dialog.getState() instanceof DialogStateTerminated;
    }
View Full Code Here

        assert dialog.getState() instanceof DialogStateTerminated;
    }
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIfByeOnEarly() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent1xx();
        dialog.receivedOrSentBye();
    }
View Full Code Here

   
    //CONFIRMED
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIf1xxOnConfirmed() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSent1xx();
    }
View Full Code Here

        dialog.receivedOrSent1xx();
    }
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIf2xxOnConfirmed() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSent2xx();
    }
View Full Code Here

        dialog.receivedOrSent2xx();
    }
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIfErrOnConfirmed() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSent300To699();
    }
View Full Code Here

        dialog.receivedOrSent300To699();
    }
   
    @Test
    public void transitionConfirmedTerminated() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSentBye();
        assert dialog.getState() instanceof DialogStateTerminated;
    }
View Full Code Here

   
    //TERMINATED
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIf1xxOnTerminated() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSentBye();
        dialog.receivedOrSent1xx();
    }
View Full Code Here

        dialog.receivedOrSent1xx();
    }
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIf2xxOnTerminated() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSentBye();
        dialog.receivedOrSent2xx();
    }
View Full Code Here

        dialog.receivedOrSent2xx();
    }
   
    @Test(expectedExceptions = IllegalStateException.class)
    public void shouldThrowIfErrOnTerminated() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent2xx();
        dialog.receivedOrSentBye();
        dialog.receivedOrSent300To699();
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.peers.Logger

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.