Package org.talend.esb.servicelocator.client

Examples of org.talend.esb.servicelocator.client.ServiceLocatorException


        } catch (JAXBException e) {
            if (LOG.isLoggable(Level.SEVERE)) {
                LOG.log(Level.SEVERE,
                        "Failed to serialize endpoint data", e);
            }
            throw new ServiceLocatorException("Failed to serialize endpoint data", e);
        }
    }
View Full Code Here


        } catch (JAXBException e) {
            if (LOG.isLoggable(Level.SEVERE)) {
                LOG.log(Level.SEVERE,
                        "Failed to serialize endpoint data", e);
            }
            throw new ServiceLocatorException("Failed to serialize endpoint data", e);
        }
    }
View Full Code Here

    @Test(expected = WebApplicationException.class)
    public void lookUpEndpointExpectedLocatorException() throws ServiceLocatorException,
            InterruptedException {
        names.clear();
        names.add(ENDPOINTURL);
        expect(sl.lookup(SERVICE_NAME)).andStubThrow(new ServiceLocatorException("test"));
        replayAll();
        lps.lookupEndpoint(SERVICE_NAME.toString(), new ArrayList<String>());
    }
View Full Code Here

    @Test(expected = WebApplicationException.class)
    public void lookUpEndpointsExpectedLocatorException() throws ServiceLocatorException,
            InterruptedException {
        names.clear();
        names.add(ENDPOINTURL);
        expect(sl.lookup(SERVICE_NAME)).andStubThrow(new ServiceLocatorException("test"));
        replayAll();
        lps.lookupEndpoints(SERVICE_NAME.toString(), new ArrayList<String>());
    }
View Full Code Here

   
    @Test(expected = WebApplicationException.class)
    public void unregisterEndpointExpectedLocatorException() throws ServiceLocatorException,
            InterruptedException {
        sl.unregister(SERVICE_NAME, ENDPOINTURL);
        EasyMock.expectLastCall().andStubThrow(new ServiceLocatorException("test"));
        replayAll();
        lps.unregisterEndpoint(SERVICE_NAME.toString(), ENDPOINTURL);
    }
View Full Code Here

   
    @Test(expected = WebApplicationException.class)
    public void registerEndpointExpectedLocatorException() throws ServiceLocatorException,
            InterruptedException {
        sl.register(endpoint(), EasyMock.eq(true));
        EasyMock.expectLastCall().andStubThrow(new ServiceLocatorException("test"));

        replayAll();
        RegisterEndpointRequest req = new RegisterEndpointRequest();
        EntryType entryType = new EntryType();
        entryType.setKey("test");
View Full Code Here

    public void registerEndpointExpectedLocatorException()
            throws ServiceLocatorException, InterruptedException,
            ServiceLocatorFault, InterruptedExceptionFault {
        sl.register(endpoint(), EasyMock.eq(true));
        EasyMock.expectLastCall().andStubThrow(
                new ServiceLocatorException("test"));

        replayAll();
        lps.registerEndpoint(SERVICE_NAME, ENDPOINTURL, null, null, null);
    }
View Full Code Here

    public void unregisterEndpointExpectedLocatorException()
            throws ServiceLocatorException, InterruptedException,
            ServiceLocatorFault, InterruptedExceptionFault {
        sl.unregister(SERVICE_NAME, ENDPOINTURL);
        EasyMock.expectLastCall().andStubThrow(
                new ServiceLocatorException("test"));
        replayAll();
        lps.unregisterEndpoint(SERVICE_NAME, ENDPOINTURL);
    }
View Full Code Here

    public void lookUpEndpointExpectedLocatorException()
            throws ServiceLocatorException, InterruptedException,
            ServiceLocatorFault, InterruptedExceptionFault {
        sl.lookup(SERVICE_NAME);
        EasyMock.expectLastCall().andStubThrow(
                new ServiceLocatorException("test"));
        replayAll();
        lps.lookupEndpoint(SERVICE_NAME, null);
    }
View Full Code Here

    public void lookUpEndpointsExpectedLocatorException()
            throws ServiceLocatorException, InterruptedException,
            ServiceLocatorFault, InterruptedExceptionFault {
        sl.lookup(SERVICE_NAME);
        EasyMock.expectLastCall().andStubThrow(
                new ServiceLocatorException("test"));
        replayAll();
        lps.lookupEndpoints(SERVICE_NAME, null);
    }
View Full Code Here

TOP

Related Classes of org.talend.esb.servicelocator.client.ServiceLocatorException

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.