org.openprivacy.reptile.tests
Class CactusTestContentTransformer

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.cactus.AbstractTestCase
                    |
                    +--org.apache.cactus.ServletTestCase
                          |
                          +--org.openprivacy.reptile.tests.CactusTestContentTransformer
All Implemented Interfaces:
junit.framework.Test

public class CactusTestContentTransformer
extends org.apache.cactus.ServletTestCase

Test thats exercises the ContentTransformer. A lot of RSS feed entries are incorrect. These all have to deal with non-RSS 1.0 feeds. Here we try to lie to Reptile and say that a format is actually RSS 0.9x when it is really RSS 0.9y. Reptile needs to be smart enought to accept this and still render RSS 1.0.

I need to make sure I test at least three RSS formats once.


 test-rss-0.9.xml ->  http://my.netscape.com/rdf/simple/0.9/
        
 test-rss-0.91-dtd.xml -> http://my.netscape.com/publish/formats/rss-0.91.dtd

 http://my.netscape.com/publish/formats/rss-0.9.dtd

 

Version:
$Id: CactusTestContentTransformer.java,v 1.1 2002/02/08 01:14:59 burton Exp $
Author:
Kevin A. Burton

Field Summary
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Fields inherited from class org.apache.cactus.AbstractTestCase
BEGIN_METHOD_PREFIX, currentTestMethod, END_METHOD_PREFIX, logger, TEST_METHOD_PREFIX
 
Constructor Summary
CactusTestContentTransformer(java.lang.String name)
          Create a new CactusTestContentTransformer instance.
 
Method Summary
 void testRSS_0_9_1_dtd()
           
 void testRSS_0_9()
          Test RSS .09 so that, even if we give it the wrong content-type, it still works.
 
Methods inherited from class org.apache.cactus.ServletTestCase
runTest
 
Methods inherited from class org.apache.cactus.AbstractTestCase
callBeginMethod, callEndMethod, getBeginMethodName, getEndMethodName, runBare, runBareServerTest, runGenericTest, runServerTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CactusTestContentTransformer

public CactusTestContentTransformer(java.lang.String name)
Create a new CactusTestContentTransformer instance.

Method Detail

testRSS_0_9

public void testRSS_0_9()
                 throws java.lang.Exception
Test RSS .09 so that, even if we give it the wrong content-type, it still works.

java.lang.Exception

testRSS_0_9_1_dtd

public void testRSS_0_9_1_dtd()
                       throws java.lang.Exception
java.lang.Exception