Package org.talend.esb.servicelocator.client.internal

Examples of org.talend.esb.servicelocator.client.internal.NodePath


   
    @Test
    public void getExpiryTime() throws Exception {
        final Date expected = new Date();
       
        NodePath expiryPath = endpointNode.child(TIMETOLIVE);
        expect(backend.nodeExists(expiryPath)).andReturn(true);
        expect(backend.getContent(expiryPath)).andReturn(getDateBytes(expected));
        replay(backend);
       
        Date answer = endpointNode.getExpiryTime();
View Full Code Here


        verify(backend);
    }
   
    @Test
    public void getExpiryTimeMissingNode() throws Exception {
        NodePath expiryPath = endpointNode.child(TIMETOLIVE);
        expect(backend.nodeExists(expiryPath)).andReturn(false);
        replay(backend);
       
        Date answer = endpointNode.getExpiryTime();
       
View Full Code Here

   
    @Test
    public void setExpiryTime() throws Exception {
        final Date expiryTime = new Date();
       
        NodePath expiryPath = endpointNode.child(TIMETOLIVE);
        backend.ensurePathExists(eq(expiryPath), eq(CreateMode.PERSISTENT), anyObject(byte[].class));
        replay(backend);
       
        endpointNode.setExpiryTime(expiryTime, true);
View Full Code Here

TOP

Related Classes of org.talend.esb.servicelocator.client.internal.NodePath

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.