Package de.novanic.eventservice.client.config

Examples of de.novanic.eventservice.client.config.RemoteEventServiceConfigurationTransferable


            theClientIdTransferable = null;
        } else {
            theClientIdTransferable = theClientId;
        }
        LOG.info("Client \"{}\" initialized.", theClientId);
        return new RemoteEventServiceConfigurationTransferable(theConfiguration.getMinWaitingTime(), theConfiguration.getMaxWaitingTime(),
                theConfiguration.getTimeoutTime(), theConfiguration.getReconnectAttemptCount(), theClientIdTransferable, theConfiguration.getConnectionStrategyClientConnectorClassName());
    }
View Full Code Here


public class EventServiceAsyncSuccessDummy implements EventServiceAsync, ServiceDefTarget
{
    private String myServiceURL = "dummyurl";

    public void initEventService(AsyncCallback<EventServiceConfigurationTransferable> aCallback) {
        aCallback.onSuccess(new RemoteEventServiceConfigurationTransferable(0, 0, 99999, 2, "12345", null));
    }
View Full Code Here

    protected void mockAddEvent(Domain aDomain) {
        doAnswer(new AsyncCallbackAnswer<Void>(null)).when(myEventServiceAsyncMock).addEvent(eq(aDomain), any(Event.class), any(AsyncCallback.class));
    }

    private EventServiceConfigurationTransferable getDefaultConfiguration() {
        return new RemoteEventServiceConfigurationTransferable(0, 20000, 90000, 2, null, DefaultClientConnector.class.getName());
    }
View Full Code Here

        myRemoteEventService = DefaultRemoteEventServiceFactoryTestMode.getInstance().getDefaultRemoteEventService(myEventServiceAsyncMock);
    }

    @Test
    public void testAddUnlistenListener_Local() {
        final RemoteEventServiceConfigurationTransferable theConfiguration = new RemoteEventServiceConfigurationTransferable(0, 20000, 90000, 0, null, DefaultClientConnector.class.getName());
        mockInit(theConfiguration);

        //caused by add Listener
        mockRegister(TEST_DOMAIN);
View Full Code Here

        verify(myEventServiceAsyncMock, times(1)).listen(any(AsyncCallback.class));
    }

    @Test
    public void testAddUnlistenListener_Local_2() {
        final RemoteEventServiceConfigurationTransferable theConfiguration = new RemoteEventServiceConfigurationTransferable(0, 20000, 90000, 0, null, DefaultClientConnector.class.getName());
        mockInit(theConfiguration);

        //caused by add Listener
        mockRegister(TEST_DOMAIN);
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.client.config.RemoteEventServiceConfigurationTransferable

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.