Author: andreas
Date: Thu Jul 2 11:08:23 2009
New Revision: 790548
URL: http://svn.apache.org/viewvc?rev=790548&view=rev
Log:
Access test file as resource to make it deployment independent.
Added:
lenya/contributions/2_0_X/modules/linkrewriter/java/test/org/apache/lenya/modules/linkrewriter/testdoc.xml
- copied unchanged from r769025, lenya/contributions/2_0_X/modules/linkrewriter/test/testdoc.xml
Removed:
lenya/contributions/2_0_X/modules/linkrewriter/test/testdoc.xml
Modified:
lenya/contributions/2_0_X/modules/linkrewriter/java/test/org/apache/lenya/modules/linkrewriter/LinkConverterTest.java
Modified: lenya/contributions/2_0_X/modules/linkrewriter/java/test/org/apache/lenya/modules/linkrewriter/LinkConverterTest.java
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/linkrewriter/java/test/org/apache/lenya/modules/linkrewriter/LinkConverterTest.java?rev=790548&r1=790547&r2=790548&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/linkrewriter/java/test/org/apache/lenya/modules/linkrewriter/LinkConverterTest.java (original)
+++ lenya/contributions/2_0_X/modules/linkrewriter/java/test/org/apache/lenya/modules/linkrewriter/LinkConverterTest.java Thu Jul 2 11:08:23 2009
@@ -51,7 +51,7 @@
docManager = (DocumentManager) getManager().lookup(DocumentManager.ROLE);
// create a new document:
- String uri = "context://lenya/modules/linkrewriter/test/testdoc.xml";
+ String uri = "resource://org/apache/lenya/modules/linkrewriter/testdoc.xml";
Document newDoc = docManager.add(factory, resourceType, uri, pub, area.getName(),
"/linkconvertertest", "en", "xml", "Link Converter Test", false);
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.