svn commit: r587547 - /lenya/trunk/src/modules-core/linking/java/test/org/apache/lenya/cms/cocoon/transformation/ProxyTransformerTest.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue Oct 23 09:05:34 2007
New Revision: 587547

URL: http://svn.apache.org/viewvc?rev=587547&view=rev
Log:
Use default publication URL in proxy transformer test to avoid failing of UsecaseAuthorizer for non-existent publication

Modified:
    lenya/trunk/src/modules-core/linking/java/test/org/apache/lenya/cms/cocoon/transformation/ProxyTransformerTest.java

Modified: lenya/trunk/src/modules-core/linking/java/test/org/apache/lenya/cms/cocoon/transformation/ProxyTransformerTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/linking/java/test/org/apache/lenya/cms/cocoon/transformation/ProxyTransformerTest.java?rev=587547&r1=587546&r2=587547&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/linking/java/test/org/apache/lenya/cms/cocoon/transformation/ProxyTransformerTest.java (original)
+++ lenya/trunk/src/modules-core/linking/java/test/org/apache/lenya/cms/cocoon/transformation/ProxyTransformerTest.java Tue Oct 23 09:05:34 2007
@@ -57,9 +57,9 @@
     protected static final String NAMESPACE = XHTMLSerializer.XHTML1_NAMESPACE;
     protected static final String ELEMENT = "a";
     protected static final String ATTRIBUTE = "href";
-
+    
     protected String getWebappUrl() {
-        return "/mock/authoring/index.html";
+        return "/default/authoring/index.html";
     }
 
     public void testProxyTransformer() throws Exception {
@@ -67,11 +67,10 @@
         ProxyTransformer transformer = new ProxyTransformer();
         transformer.enableLogging(getLogger());
         transformer.service(getManager());
-
-        String proxyUrl = "http://www.mock.org";
         
         String pubId = "mock";
         String area = "authoring";
+        String proxyUrl = "http://www.mock.org";
 
         createMockPublication(pubId, area, proxyUrl);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.