Class FileIndexResourceFactoryTest

java.lang.Object
com.googlecode.download.maven.plugin.internal.cache.FileIndexResourceFactoryTest

public class FileIndexResourceFactoryTest extends Object
Unit tests for FileIndexResourceFactory
  • Constructor Details

    • FileIndexResourceFactoryTest

      public FileIndexResourceFactoryTest()
  • Method Details

    • testGenerateUniqueCacheFileForEmptyResource

      public void testGenerateUniqueCacheFileForEmptyResource()
      URI is a relative URI without protocol spec, so it doesn't contain the host name. We will test if the method FileIndexResourceFactory.generateUniqueCachePath(String) is able to generate a unique path for the root resource.
    • testGenerateUniqueCacheFileForRootResource

      public void testGenerateUniqueCacheFileForRootResource()
      URI is a relative URI without protocol spec, so it doesn't contain the host name. We will test if the method FileIndexResourceFactory.generateUniqueCachePath(String) is able to generate a unique path for the root resource.
    • testGenerateUniqueCacheFileForNonRootResource

      public void testGenerateUniqueCacheFileForNonRootResource()
      URI is a relative URI without protocol spec, so it doesn't contain the host name. We will test if the method FileIndexResourceFactory.generateUniqueCachePath(String) is able to generate a unique path for a resource containing a file name.