Package com.fourspaces.couchdb

Examples of com.fourspaces.couchdb.ReplicationTask


  public void testLoadDetailsFromTask() {
    final String task = "e9db21: testDb -> http://10.11.12.13:5984/testDb/";
    final String status = "MR Processed source update #594";
    final String pid = "<0.201.0>";
   
    ReplicationTask repTask = new ReplicationTask(task, status, pid);
   
    assertTrue(repTask.loadDetailsFromTask());
   
    assertEquals(status, repTask.getStatus());
    assertEquals(pid, repTask.getPid());
    assertNotNull(repTask.getSource());
    assertFalse(repTask.getSource().isRemote());
    assertEquals("testDb", repTask.getSource().getReplicatedEntity());
   
    assertNotNull(repTask.getDestination());
    assertTrue(repTask.getDestination().isRemote());
    assertEquals("10.11.12.13", repTask.getDestination().getServer());
    assertEquals("5984", Integer.toString(repTask.getDestination().getPort()));
    assertEquals("testDb", repTask.getDestination().getReplicatedEntity());
   
  }
View Full Code Here

TOP

Related Classes of com.fourspaces.couchdb.ReplicationTask

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.