Package net.sourceforge.peers

Examples of net.sourceforge.peers.Logger


            this.peersHome = Utils.DEFAULT_PEERS_HOME;
        } else {
            this.peersHome = peersHome;
        }
        if (logger == null) {
            logger = new Logger(this.peersHome);
        } else {
            this.logger = logger;
        }
        config = new XmlConfig(this.peersHome + File.separator
                + CONFIG_FILE, this.logger);
View Full Code Here


    public MainFrame(final String[] args) {
        String peersHome = Utils.DEFAULT_PEERS_HOME;
        if (args.length > 0) {
            peersHome = args[0];
        }
        logger = new Logger(peersHome);
        String lookAndFeelClassName = UIManager.getSystemLookAndFeelClassName();
        try {
            UIManager.setLookAndFeel(lookAndFeelClassName);
        } catch (Exception e) {
            logger.error("cannot change look and feel", e);
View Full Code Here

        };
        SipServerTransportUser sipServerTransportUser =
            new SipServerTransportUser() {
            @Override public void messageReceived(SipMessage sipMessage) {}
        };
        Logger logger = new Logger(null);
        transportManager = new TransportManager(new TransactionManager(logger),
                config, logger);
        transportManager.setSipServerTransportUser(sipServerTransportUser);
    }
View Full Code Here

            @Override
            public String getDomain() {
                return null;
            }
        };
        Logger logger = new Logger(null);
        transportManager = new TransportManager(new TransactionManager(logger),
                config, logger);
    }
View Full Code Here

public class DialogTestNG {
   
    @Test
    public void initialState() {
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        assert dialog.getState() instanceof DialogStateInit;
    }
View Full Code Here

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

        assert dialog.getState() instanceof DialogStateEarly;
    }

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

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

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

    //EARLY
   
    @Test
    public void transitionEarlyEarly(){
        Dialog dialog = new Dialog("", "", "", new Logger(null));
        dialog.receivedOrSent1xx();
        dialog.receivedOrSent1xx();
        assert dialog.getState() instanceof DialogStateEarly;
    }
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.