gigaZhang / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

official urlrewritefilter-test artifact for junit testing purposes #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to do some basic tests on the rules in the urlrewritefilter. However 
what I would prefer is to do some junit tests prio to full deployment.
Therefor for the maven use case I'd like to be able to use artifact like this 
in my pom.xml:

<dependency>
    <groupId>org.tuckey</groupId>
    <artifactId>urlrewritefilter-test</artifactId>
    <version>4.0.4</version>
    <scope>test</scope>
</dependency>

which would be released in parallel to the official build.
And it would provide some simple api for testing custom configurations. 
(without a need to have full container running)

I got inspired by this post: 
http://sujitpal.blogspot.de/2006/08/junit-test-for-urlrewritefilter.html
However it's outdated (targeting version 3.x), as most of the classes are no 
more delivered with main jar file.

Would be nice if there would be also some documentation guiding to the usage 
(some wiki page or blog post).

As far as I could see, it should not be such a big thing, as junit tests 
already exist for urlwritefilter.

Original issue reported on code.google.com by butko...@gmail.com on 6 Feb 2013 at 10:18