testScenario1() Complex test scenario using default values (DigestAlgorithm with MD5,
PropertiesfileCache with file=cache.properties, EqualComparator
and update=true).
Test the interface semantic of Caches.
This method does some common test for cache implementations.
A cache must return a stored value and a valid iterator.
After calling the delete() the cache must be empty.
Parameters: algo - configured test object
Test the interface semantic of Algorithms.
This method does some common test for algorithm implementations.
An algorithm must return always the same value for the same file and
it must not return null.
Parameters: algo - configured test object
Test the interface semantic of Comparators.
This method does some common test for comparator implementations.
Parameters: algo - configured test object
public void testCreatePropertiesCacheDirect()(Code)
Checks whether a cache file is created.
testCreatePropertiesCacheViaCustomSelector
public void testCreatePropertiesCacheViaCustomSelector()(Code)
In earlier implementations there were problems with the order
of the s. The scenario was
It was important first to set the cache and then to set
the cache's configuration parameters. That results in the reorganized
configure() method of ModifiedSelector. This testcase tests that.
testCreatePropertiesCacheViaModifiedSelector
public void testCreatePropertiesCacheViaModifiedSelector()(Code)
Complex test scenario using default values (DigestAlgorithm with MD5,
PropertiesfileCache with file=cache.properties, EqualComparator
and update=true).
try fist time --> should select all
try second time --> should select no files (only directories)
modify timestamp of one file and content of a nother one
try third time --> should select only the file with modified
content
testScenarioCoreSelectorDefaults
public void testScenarioCoreSelectorDefaults()(Code)
testScenarioCoreSelectorSettings
public void testScenarioCoreSelectorSettings()(Code)
testScenarioCustomSelectorSettings
public void testScenarioCustomSelectorSettings()(Code)