Package org.jpos.core

Examples of org.jpos.core.Configuration


        }
    }

    @Test
    public void testConstructorThrowsConfigurationException1() throws Throwable {
        Configuration cfg = new SimpleConfiguration();
        try {
            new JCESecurityModule(cfg, new Logger(), "testJCESecurityModuleRealm");
            fail("Expected ConfigurationException to be thrown");
        } catch (ConfigurationException ex) {
            // expected
View Full Code Here


        }
    }

    @Test
    public void testConstructorThrowsNullPointerException2() throws Throwable {
        Configuration cfg = new SubConfiguration();
        try {
            new JCESecurityModule(cfg, new Logger(), "testJCESecurityModuleRealm");
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
View Full Code Here

    }

    @Test
    public void testSetConfigurationThrowsConfigurationException() throws Throwable {
        JCESecurityModule jCESecurityModule = new JCESecurityModule();
        Configuration cfg = new SimpleConfiguration();
        try {
            jCESecurityModule.setConfiguration(cfg);
            fail("Expected ConfigurationException to be thrown");
        } catch (ConfigurationException ex) {
            // expected
View Full Code Here

    }

    @Test
    public void testSetConfigurationThrowsNullPointerException() throws Throwable {
        JCESecurityModule jCESecurityModule = new JCESecurityModule();
        Configuration cfg = new SubConfiguration();
        try {
            jCESecurityModule.setConfiguration(cfg);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
View Full Code Here

    }

    @Test
    public void testLog() throws Throwable {
        BSHLogListener bSHLogListener = new BSHLogListener();
        Configuration cfg = new SimpleConfiguration(new Properties());
        bSHLogListener.setConfiguration(cfg);
        LogEvent ev = new LogEvent("testBSHLogListenerTag");
        ev.setSource(new LogChannel());
        LogEvent result = bSHLogListener.log(ev);
        assertSame("result", ev, result);
View Full Code Here

    }

    @Test
    public void testSetConfiguration() throws Throwable {
        BSHLogListener bSHLogListener = new BSHLogListener();
        Configuration cfg = new SimpleConfiguration(new Properties());
        bSHLogListener.setConfiguration(cfg);
        assertSame("bSHLogListener.cfg", cfg, bSHLogListener.cfg);
    }
View Full Code Here

        dirPoll.setConfiguration(null);
    }

    @Test
    public void testSetConfigurationThrowsNullPointerException1() throws Throwable {
        Configuration cfg = new SubConfiguration();
        DirPoll processor = new DirPoll();
        DirPoll dirPoll = new DirPoll();
        processor.setProcessor("");
        dirPoll.setProcessor(processor);
        try {
View Full Code Here

        }
    }

    @Test
    public void testSetConfigurationThrowsNullPointerException2() throws Throwable {
        Configuration cfg = new SubConfiguration();
        DirPoll dirPoll = new DirPoll();
        dirPoll.setProcessor("");
        try {
            dirPoll.setConfiguration(cfg);
            fail("Expected NullPointerException to be thrown");
View Full Code Here

        }
    }

    @Test
    public void testSetConfigurationThrowsNullPointerException3() throws Throwable {
        Configuration cfg = new SubConfiguration();
        DirPoll dirPoll = new DirPoll();
        dirPoll.setProcessor(new DirPoll());
        try {
            dirPoll.setConfiguration(cfg);
            fail("Expected NullPointerException to be thrown");
View Full Code Here

        }
    }

    @Test
    public void testSetConfigurationThrowsNullPointerException4() throws Throwable {
        Configuration cfg = new SubConfiguration();
        DirPoll dirPoll = new DirPoll();
        try {
            dirPoll.setConfiguration(cfg);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
View Full Code Here

TOP

Related Classes of org.jpos.core.Configuration

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.