svn commit: r647550 - /lenya/sandbox/modules/forrest/java/test/org/apache/lenya/modules/forrest/ImportTest.java
[email protected] Sun, 13 Apr 2008 09:36:32 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Sun Apr 13 02:36:30 2008
New Revision: 647550
URL: http://svn.apache.org/viewvc?rev=647550&view=rev
Log:
Set correct webapp URL and user ID for forrest test.
Modified:
lenya/sandbox/modules/forrest/java/test/org/apache/lenya/modules/forrest/ImportTest.java
Modified: lenya/sandbox/modules/forrest/java/test/org/apache/lenya/modules/forrest/ImportTest.java
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/forrest/java/test/org/apache/lenya/modules/forrest/ImportTest.java?rev=647550&r1=647549&r2=647550&view=diff
==============================================================================
--- lenya/sandbox/modules/forrest/java/test/org/apache/lenya/modules/forrest/ImportTest.java (original)
+++ lenya/sandbox/modules/forrest/java/test/org/apache/lenya/modules/forrest/ImportTest.java Sun Apr 13 02:36:30 2008
@@ -49,12 +49,17 @@
protected static final String SUBMIT_USECASE = "workflow.submit";
protected static final String PUBLISH_USECASE = "workflow.publish";
protected static final String PUB_ID = "docu";
+ protected static final String USER_ID = "andreas";
+
+ protected String getWebappUrl() {
+ return "/docu/authoring/index.html";
+ }
/**
* @throws Exception if an error occurs.
*/
public void diabled_testImport() throws Exception {
- Session session = login("lenya");
+ Session session = login("andreas");
Publication pub = getPublication(session, PUB_ID);
Area area = pub.getArea("authoring");
/*
@@ -70,7 +75,7 @@
}
public void disabled_testUpdateTitles() throws Exception {
- Session session = login("lenya");
+ Session session = login(USER_ID);
Publication pub = getPublication(session, PUB_ID);
Area area = pub.getArea("authoring");
Document[] docs = area.getDocuments();
@@ -83,7 +88,7 @@
}
public void disabled_testUpdateResourceType() throws Exception {
- Session session = login("lenya");
+ Session session = login(USER_ID);
Publication pub = getPublication(session, PUB_ID);
Area area = pub.getArea("authoring");
Document[] docs = area.getDocuments();
@@ -198,7 +203,7 @@
forceCheckIn(doc);
forceCheckIn(doc.getAreaVersion("live"));
- Session session = login("lenya");
+ Session session = login(USER_ID);
Document freshDoc = getFreshDocument(doc, session);
if (WorkflowUtil.canInvoke(getManager(), session, getLogger(), freshDoc, "edit")) {
System.out.println("Editing " + nodes[i].getPath());
@@ -206,7 +211,7 @@
session.commit();
}
- session = login("lenya");
+ session = login(USER_ID);
freshDoc = getFreshDocument(doc, session);
if (WorkflowUtil.canInvoke(getManager(), session, getLogger(), freshDoc, "submit")) {
System.out.println("Submitting " + nodes[i].getPath());
@@ -220,7 +225,7 @@
invoker.invoke(url, PUBLISH_USECASE, Collections.EMPTY_MAP);
}
- session = login("lenya");
+ session = login(USER_ID);
freshDoc = getFreshDocument(doc, session);
Workflowable newWf = WorkflowUtil.getWorkflowable(getManager(), session, getLogger(), freshDoc);
if (newWf == null) {
@@ -254,7 +259,7 @@
*/
public void testSetImageDimensions() throws Exception {
- Session session = login("lenya", PUB_ID);
+ Session session = login(USER_ID, PUB_ID);
Publication pub = getPublication(session, PUB_ID);
Area area = pub.getArea("authoring");