Package org.apache.sling.discovery.impl

Examples of org.apache.sling.discovery.impl.Config


    }
   
    @Before
    public void setUp() throws Exception {
        servlet = new TopologyConnectorServlet();
        Config config = mock(Config.class);
        PrivateAccessor.setField(servlet, "config", config);
    }
View Full Code Here


    @Before
    public void setup() throws Exception {
        resourceResolverFactory = MockFactory
                .mockResourceResolverFactory();
        config = new Config() {
            public long getHeartbeatTimeout() {
                // 1s for fast tests
                return 1;
            };
        };
View Full Code Here

public class ConnectorRegistryTest {

    @Test
    public void testRegisterUnregister() throws Exception {
        Instance i = Instance.newStandaloneInstance("i", true);
        Config config = new Config() {
            @Override
            public long getHeartbeatTimeout() {
                return 20000;
            }
        };
View Full Code Here

    private Mockery context = new JUnit4Mockery();


    @Before
    public void before() throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException {
        Config config= new Config();
        setPrivate(config, "sharedKey", "testKey");
        setPrivate(config, "hmacEnabled", true);
        setPrivate(config, "encryptionEnabled", true);
        setPrivate(config, "keyInterval", 3600*100*4);
        topologyRequestValidator = new TopologyRequestValidator(config);
View Full Code Here

TOP

Related Classes of org.apache.sling.discovery.impl.Config

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.