Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-13

StoreTest is only passing by accident

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.0.1
    • None
    • None
    • None

    Description

      StoreTest.testClearCacheWhenExceptionOccurs() is currently setting up the cache directory to be target/cacheTest, but asserts that target/tmp exists and is empty. The tmp dir happens to be created by CacheResponseWrapper.thresholdReached() calling Path.getTempDirectory()

      Suggestion: extract a subclass that gets reused accross the cache test which configures those directories, assert they don't exit in @Before and removes them in @After

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD