Author: tolusha
Date: 2010-03-26 06:33:19 -0400 (Fri, 26 Mar 2010)
New Revision: 2163
Modified:
jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgentTest.java
Log:
EXOJCR-549: fix tests
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 2010-03-26
10:08:17 UTC (rev 2162)
+++
jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgentTest.java 2010-03-26
10:33:19 UTC (rev 2163)
@@ -667,7 +667,6 @@
assertEquals(ShortInfo.COMPLETED, info.getType().intValue());
assertEquals(0, info.getState().intValue());
assertEquals("db6", info.getRepositoryName());
- assertEquals("ws2", info.getWorkspaceName());
}
public void testInfoBackupCompletedById() throws Exception
@@ -970,7 +969,7 @@
MultivaluedMap<String, String> headers = new MultivaluedMapImpl();
ContainerRequestUserRole creq =
new ContainerRequestUserRole("GET", new URI(HTTP_BACKUP_AGENT_PATH
- +
HTTPBackupAgent.Constants.OperationType.CURRENT_BACKUPS_REPOSITORY_INFO), new
URI(""), null,
+ +
HTTPBackupAgent.Constants.OperationType.COMPLETED_BACKUPS_REPOSITORY_INFO), new
URI(""), null,
new InputHeadersMap(headers));
ByteArrayContainerResponseWriter responseWriter = new
ByteArrayContainerResponseWriter();
@@ -1026,7 +1025,7 @@
}
ArrayList<WorkspaceEntry> wsEntries = new ArrayList<WorkspaceEntry>();
- wsEntries.add(makeWorkspaceEntry(defWEntry, "db7", "ws1",
"jdbcjcr24"));
+ wsEntries.add(makeWorkspaceEntry(defWEntry, "db7", "ws",
"jdbcjcr24"));
wsEntries.add(makeWorkspaceEntry(defWEntry, "db7", "ws2",
"jdbcjcr24"));
RepositoryEntry rEntry = makeRepositoryEntry(defREntry, "db7",
wsEntries);
Show replies by date