Package org.jpos.util

Examples of org.jpos.util.Logger


    }

    @Test
    public void testGetLogger() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        Logger logger = new Logger();
        vErrorParser.setLogger(logger, "testVErrorParserRealm");
        Logger result = vErrorParser.getLogger();
        assertSame("result", logger, result);
    }
View Full Code Here


    }

    @Test
    public void testGetRealm1() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        vErrorParser.setLogger(new Logger(), "testVErrorParserRealm");
        String result = vErrorParser.getRealm();
        assertEquals("result", "testVErrorParserRealm", result);
    }
View Full Code Here

    }

    @Test
    public void testSetLogger() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        Logger logger = new Logger();
        vErrorParser.setLogger(logger, "testVErrorParserRealm");
        assertSame("vErrorParser.logger", logger, vErrorParser.logger);
        assertEquals("vErrorParser.realm", "testVErrorParserRealm", vErrorParser.realm);
    }
View Full Code Here

    }

    @Test
    public void testSetLogger() throws Throwable {
        EuroPackager euroPackager = new EuroPackager();
        Logger logger = Logger.getLogger("testEuroPackagerName");
        euroPackager.setLogger(logger, "testEuroPackagerRealm");
        assertSame("euroPackager.getLogger()", logger, euroPackager.getLogger());
        assertNotNull("euroPackager.f48Packager", euroPackager.f48Packager);
        assertEquals("euroPackager.getRealm()", "testEuroPackagerRealm", euroPackager.getRealm());
    }
View Full Code Here

        }
    }

    @Test
    public void testConnectThrowsNullPointerException() throws Throwable {
        Logger logger = new Logger();
        logger.addListener(null);
        ChannelPool channelPool = new ChannelPool();
        channelPool.setLogger(logger, "testChannelPoolRealm");
        try {
            channelPool.connect();
            fail("Expected NullPointerException to be thrown");
View Full Code Here

        }
    }

    @Test
    public void testDisconnectThrowsNullPointerException2() throws Throwable {
        Logger logger = new Logger();
        ChannelPool channelPool = new ChannelPool();
        channelPool.addChannel(new ASCIIChannel());
        logger.addListener(null);
        channelPool.setLogger(logger, "testChannelPoolRealm");
        try {
            channelPool.disconnect();
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
View Full Code Here

        }
    }

    @Test
    public void testDisconnectThrowsNullPointerException3() throws Throwable {
        Logger logger = new Logger();
        logger.addListener(null);
        ChannelPool channelPool = new ChannelPool();
        channelPool.setLogger(logger, "testChannelPoolRealm");
        try {
            channelPool.disconnect();
            fail("Expected NullPointerException to be thrown");
View Full Code Here

    }

    @Test
    public void testGetLogger() throws Throwable {
        ChannelPool channelPool = new ChannelPool();
        Logger logger = new Logger();
        channelPool.setLogger(logger, "testChannelPoolRealm");
        Logger result = channelPool.getLogger();
        assertSame("result", logger, result);
    }
View Full Code Here

    }

    @Test
    public void testGetRealm1() throws Throwable {
        ChannelPool channelPool = new ChannelPool();
        channelPool.setLogger(new Logger(), "testChannelPoolRealm");
        String result = channelPool.getRealm();
        assertEquals("result", "testChannelPoolRealm", result);
    }
View Full Code Here

        }
    }

    @Test
    public void testIsConnectedThrowsNullPointerException() throws Throwable {
        Logger logger = new Logger();
        logger.addListener(null);
        ChannelPool channelPool = new ChannelPool();
        channelPool.setLogger(logger, "testChannelPoolRealm");
        try {
            channelPool.isConnected();
            fail("Expected NullPointerException to be thrown");
View Full Code Here

TOP

Related Classes of org.jpos.util.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.