Class AutomaticPomDownloadTest


  • public class AutomaticPomDownloadTest
    extends AbstractFoloContentManagementTest
    Test checking that a pom is downloaded automatically without requesting it. The test runs an http server that expects download of /org/foo/bar/1.0/bar-1.0.jar and /org/foo/bar/1.0/bar-1.0.pom. Then the test ensures that the pom does not exist, downloads the jar and after a timeout it checks that the pom exists.
    Author:
    pkocandr
    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.commonjava.test.http.expect.ExpectationServer server  
      • Fields inherited from class org.commonjava.indy.ftest.core.AbstractIndyFunctionalTest

        cacheProvider, client, dataDir, DEFAULT_TEST_TIMEOUT, etcDir, fixture, logger, name, storageDir, timeout, TIMEOUT_ENV_FACTOR_SYSPROP
    • Field Detail

      • server

        public org.commonjava.test.http.expect.ExpectationServer server
    • Constructor Detail

      • AutomaticPomDownloadTest

        public AutomaticPomDownloadTest()
    • Method Detail

      • downloadJarAndCheckIfPomWasDownloaded

        public void downloadJarAndCheckIfPomWasDownloaded()
                                                   throws Exception
        Throws:
        Exception