org.openi.feeds.ws
Class FeedsMetaDataServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openi.feeds.ws.FeedsMetaDataServiceTest
All Implemented Interfaces:
junit.framework.Test

public class FeedsMetaDataServiceTest
extends junit.framework.TestCase

Author:
Dipendra Pokhrel
test class for org.openi.feeds.ws.FeedsMetaDataService(web service)

Field Summary
static java.lang.String FEEDS_BASE_DIR
           
 
Constructor Summary
FeedsMetaDataServiceTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testFeedsConfig()
           
 void testListAll()
          tests listAll method which returns the tree map of all available feeds available under basedir filtered with extensions
 void testListDir()
          tests listDir method which returns the tree map of all available files/folders available under specfied dir
 void testListMetaData()
          tests metadata lister method which resturna array of all metadadata object available under base dir
 void testParse()
          tests parse method which parses the specified feed based on delimeter and samplesize provided in specified metadata and returns parsed metadata object
 void testReparse()
          tests Reparse method which parses the specified feed and returns the parsed metadata
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

FEEDS_BASE_DIR

public static java.lang.String FEEDS_BASE_DIR
Constructor Detail

FeedsMetaDataServiceTest

public FeedsMetaDataServiceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testFeedsConfig

public void testFeedsConfig()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testListMetaData

public void testListMetaData()
                      throws java.lang.Exception
tests metadata lister method which resturna array of all metadadata object available under base dir

Throws:
java.lang.Exception

testListAll

public void testListAll()
                 throws java.lang.Exception
tests listAll method which returns the tree map of all available feeds available under basedir filtered with extensions

Throws:
java.lang.Exception

testListDir

public void testListDir()
                 throws java.lang.Exception
tests listDir method which returns the tree map of all available files/folders available under specfied dir

Throws:
java.lang.Exception

testReparse

public void testReparse()
                 throws java.lang.Exception
tests Reparse method which parses the specified feed and returns the parsed metadata

Throws:
java.lang.Exception

testParse

public void testParse()
               throws java.lang.Exception
tests parse method which parses the specified feed based on delimeter and samplesize provided in specified metadata and returns parsed metadata object

Throws:
java.lang.Exception