Examples of SystemConfig


Examples of org.apache.webbeans.test.xml.definition.SystemConfig

        Assert.assertNotNull(instance);
        Assert.assertTrue(instance instanceof MockAsynchronousCreditCardPaymentProcessor);

        MockAsynchronousCreditCardPaymentProcessor ccProcessor = (MockAsynchronousCreditCardPaymentProcessor) instance;

        SystemConfig config = ccProcessor.getConfig();
        Assert.assertEquals("default", config.getValue());

        PaymentProcessor paymentProcesor = ccProcessor.getPaymentProcessor();
        Assert.assertNotNull(paymentProcesor);
    }
View Full Code Here

Examples of org.apache.webbeans.test.xml.definition.SystemConfig

        Assert.assertNotNull(instance);
        Assert.assertTrue(instance instanceof MockAsynchronousCreditCardPaymentProcessor);

        MockAsynchronousCreditCardPaymentProcessor ccProcessor = (MockAsynchronousCreditCardPaymentProcessor) instance;

        SystemConfig config = ccProcessor.getConfig();
        Assert.assertEquals("default", config.getValue());

        PaymentProcessor paymentProcesor = ccProcessor.getPaymentProcessor();
        Assert.assertNotNull(paymentProcesor);
    }
View Full Code Here

Examples of org.pentaho.platform.config.SystemConfig

  public void setUp() throws Exception {
    mp = new MicroPlatform();
    mp.defineInstance( IAuthorizationPolicy.class, new TestAuthorizationPolicy() );
    mp.start();

    ISystemConfig systemConfig = new SystemConfig();
    IConfiguration securityConfig = mock( IConfiguration.class );
    Properties props = new Properties();
    props.setProperty( "provider", "jackrabbit" );
    when( securityConfig.getProperties() ).thenReturn( props );
    when( securityConfig.getId() ).thenReturn( "security" );
    systemConfig.registerConfiguration( securityConfig );

    systemResource = new SystemResource( systemConfig );

    StandaloneApplicationContext applicationContext = new StandaloneApplicationContext( getSolutionPath(), "" ); //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.