org.apache.commons.feedparser.test
Class BaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.feedparser.test.BaseTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestBrokenFeeds, TestComments, TestGuid

public class BaseTestCase
extends junit.framework.TestCase

Version:
$Id: BaseTestCase.java 373622 2006-01-30 22:53:00Z mvdb $
Author:
Kevin A. Burton

Constructor Summary
BaseTestCase(String name)
           
 
Method Summary
 String captureOutputFromTest(String resource)
          Run a parse on the given feed and then capture the event output as a string for unit testing.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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

BaseTestCase

public BaseTestCase(String name)
             throws Exception
Throws:
Exception
Method Detail

captureOutputFromTest

public String captureOutputFromTest(String resource)
                             throws Exception
Run a parse on the given feed and then capture the event output as a string for unit testing. We can then grep across the string assering that the correct events are called.

Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.