Package org.talend.esb.servicelocator.client

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


    @Test
    public void updateEndpointExpiringTimeWrongTime() throws Exception {
        final int ttl = 95;
       
        sl.updateTimetolive(SERVICE_NAME, ENDPOINTURL, ttl);
        expectLastCall().andThrow(new WrongArgumentException());
        replay(sl);
       
        try {
            lps.updateTimetolive(SERVICE_NAME.toString(), ENDPOINTURL, ttl);
            fail();
View Full Code Here


    @Test
    public void updateEndpointExpiringTimeWrongTime() throws Exception {
        final int ttl = 95;
       
        sl.updateTimetolive(SERVICE_NAME, ENDPOINTURL, ttl);
        expectLastCall().andThrow(new WrongArgumentException());
        replay(sl);
       
        try {
            lps.updateTimetolive(SERVICE_NAME, ENDPOINTURL, ttl);
            fail();
View Full Code Here

            LOG.fine("Updating expiring time to happen in " + timetolive + " seconds on endpoint " + endpoint
                    + " for service " + serviceName + "...");
        }
       
        if (timetolive < 0) {
            throw new WrongArgumentException("Time-to-live cannot be negative.");
        }
       
        if (timetolive == 0) {
            throw new WrongArgumentException("Time-to-live cannot be zero.");
        }

        RootNode rootNode = getBackend().connect();
        ServiceNode serviceNode = rootNode.getServiceNode(serviceName);
        EndpointNode endpointNode = serviceNode.getEndPoint(endpoint);
View Full Code Here

TOP

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

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.