[exo-jcr-commits] exo-jcr SVN: r4221 - jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Apr 11 05:31:33 EDT 2011


Author: areshetnyak
Date: 2011-04-11 05:31:32 -0400 (Mon, 11 Apr 2011)
New Revision: 4221

Modified:
   jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgentTest.java
Log:
JCR-1563: The test HTTPBackupAgent was fixed.

Modified: jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgentTest.java
===================================================================
--- jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgentTest.java	2011-04-11 08:35:21 UTC (rev 4220)
+++ jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgentTest.java	2011-04-11 09:31:32 UTC (rev 4221)
@@ -3161,35 +3161,4 @@
          }
       }
    }
-
-   public void testStartBackupRepository_OnWin() throws Exception
-   {
-      Session session_db6_ws2 = repositoryService.getRepository("db6").login(credentials, "ws2");
-      assertNotNull(session_db6_ws2);
-
-      session_db6_ws2.getRootNode().addNode("NODE_NAME_TO_TEST");
-      session_db6_ws2.save();
-
-      File f = new File("E:\\data\\exo-working\\temp\\backup");
-
-      BackupConfigBean configBean = new BackupConfigBean(BackupManager.FULL_AND_INCREMENTAL, f.getPath(), 10000l);
-
-      JsonGeneratorImpl generatorImpl = new JsonGeneratorImpl();
-      JsonValue json = generatorImpl.createJsonObject(configBean);
-
-      MultivaluedMap<String, String> headers = new MultivaluedMapImpl();
-      headers.putSingle("Content-Type", "application/json; charset=UTF-8");
-      ContainerRequestUserRole creq =
-               new ContainerRequestUserRole("POST", new URI(HTTP_BACKUP_AGENT_PATH
-                        + HTTPBackupAgent.Constants.OperationType.START_BACKUP_REPOSITORY + "/db6"), new URI(""),
-                        new ByteArrayInputStream(json.toString().getBytes("UTF-8")), new InputHeadersMap(headers));
-
-      ByteArrayContainerResponseWriter responseWriter = new ByteArrayContainerResponseWriter();
-      ContainerResponse cres = new ContainerResponse(responseWriter);
-      handler.handleRequest(creq, cres);
-
-      assertEquals(200, cres.getStatus());
-
-      Thread.sleep(10000);
-   }
 }



More information about the exo-jcr-commits mailing list