Package org.jpos.core

Examples of org.jpos.core.SubConfiguration


        assertEquals("transactionManager.retryInterval", 5000L, transactionManager.retryInterval);
    }

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


public class BaseSMAdapterTest {

    @Test
    public void testConstructor() throws Throwable {
        Configuration cfg = new SubConfiguration(new SimpleConfiguration(new Properties(null)), "testBaseSMAdapterPrefix");
        Logger logger = new Logger();
        BaseSMAdapter baseSMAdapter = new BaseSMAdapter(cfg, logger, "testBaseSMAdapterRealm");
        assertSame("baseSMAdapter.cfg", cfg, baseSMAdapter.cfg);
        assertEquals("baseSMAdapter.realm", "testBaseSMAdapterRealm", baseSMAdapter.realm);
        assertSame("baseSMAdapter.logger", logger, baseSMAdapter.logger);
View Full Code Here

        }
    }

    @Test
    public void testImportPINImplThrowsSMException1() throws Throwable {
        BaseSMAdapter baseSMAdapter = new BaseSMAdapter(new SubConfiguration(new SimpleConfiguration(new Properties(null)),
                "testBaseSMAdapterPrefix"), new Logger(), "testBaseSMAdapterRealm");
        try {
            baseSMAdapter.importPINImpl(new EncryptedPIN("testBaseSMAdapterPinBlockHexString", (byte) 0,
                    "testBaseSMAdapterAccountNumber"), new KeySerialNumber(), new SecureDESKey((short) 100,
                    "testBaseSMAdapterKeyType", "testBaseSMAdapterKeyHexString1", "testBaseSMAdapterKeyCheckValueHexString1"));
View Full Code Here

        }
    }

    @Test
    public void testTranslatePINImplThrowsSMException1() throws Throwable {
        BaseSMAdapter baseSMAdapter = new BaseSMAdapter(new SubConfiguration(new SimpleConfiguration(new Properties(null)),
                "testBaseSMAdapterPrefix"), new Logger(), "testBaseSMAdapterRealm");
        try {
            baseSMAdapter.translatePINImpl(new EncryptedPIN(), new SecureDESKey((short) 100, "testBaseSMAdapterKeyType",
                    "testBaseSMAdapterKeyHexString1", "testBaseSMAdapterKeyCheckValueHexString1"), new SecureDESKey(), (byte) 0);
            fail("Expected SMException to be thrown");
View Full Code Here

    }

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

    }

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

    }

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

    }

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

    }

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

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

TOP

Related Classes of org.jpos.core.SubConfiguration

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.