org.imemex.datasourceplugins.filesystem
Class AbstractGenericFilesystemTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.imemex.testrunner.AbstractTestCase
              extended by org.imemex.datasourceplugins.filesystem.AbstractGenericFilesystemTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
LocalFilesystemTest, SMBFilesystemTest

public abstract class AbstractGenericFilesystemTestCase
extends AbstractTestCase

Tests basic filesystem traversal and querying functionality.

Author:
marcos

Field Summary
 
Fields inherited from class org.imemex.testrunner.AbstractTestCase
DEFAULT_CONFIG, REMOTE_CONFIG
 
Constructor Summary
AbstractGenericFilesystemTestCase()
          Instantiates a AbstractGenericFilesystemTestCase and sets up the test environment.
 
Method Summary
 void setUp()
          Changes the content conversion property to false, so that this test is restricted to data source plugin code.
 void tearDown()
          Changes the content conversion property back to its original value.
 void testAllResourceViews()
          Obtains all resource views from the test data source.
 void testChangeEvents()
          Obtains all resource views that were modified after a given date
 void testGetResourceView()
          Test if getting to one view is possible.
 void testQueryMediation()
          Tests mediation functionality offered by the filesystem plugin.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractGenericFilesystemTestCase

public AbstractGenericFilesystemTestCase()
Instantiates a AbstractGenericFilesystemTestCase and sets up the test environment.

Method Detail

setUp

public void setUp()
Changes the content conversion property to false, so that this test is restricted to data source plugin code.

Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Changes the content conversion property back to its original value.

Overrides:
tearDown in class junit.framework.TestCase

testAllResourceViews

public void testAllResourceViews()
Obtains all resource views from the test data source.


testChangeEvents

public void testChangeEvents()
Obtains all resource views that were modified after a given date


testGetResourceView

public void testGetResourceView()
Test if getting to one view is possible.


testQueryMediation

public void testQueryMediation()
Tests mediation functionality offered by the filesystem plugin.