test_class.file: cosmic-agent/src/test/java/com/cloud/agent/resource/secondarystorage/LocalTemplateDownloaderTest.java
test_class.identifier: LocalTemplateDownloaderTest
test_case.body: @Test
      public void localTemplateDownloaderTest() throws Exception {
          final String url = new File("pom.xml").toURI().toURL().toString();
          final long defaultMaxTemplateSizeInBytes = TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES;
          final String tempDir = System.getProperty("java.io.tmpdir");
          final TemplateDownloader td = new LocalTemplateDownloader(url, tempDir, defaultMaxTemplateSizeInBytes);
  
          final long bytes = td.download(true, null);
  
          assertThat(bytes, greaterThan(0L));
      }
test_case.class_method_signature: LocalTemplateDownloaderTest.localTemplateDownloaderTest()
test_case.full_signature: @Test public void localTemplateDownloaderTest()
test_case.identifier: localTemplateDownloaderTest
test_case.invocations: toString toURL toURI getProperty download assertThat greaterThan
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void localTemplateDownloaderTest()
focal_class.declarator: s_logger = LoggerFactory.getLogger(LocalTemplateDownloader.class)
focal_class.modifier: public static final
focal_class.original_string: public static final Logger s_logger = LoggerFactory.getLogger(LocalTemplateDownloader.class);
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.file: cosmic-agent/src/main/java/com/cloud/agent/resource/secondarystorage/LocalTemplateDownloader.java
focal_class.identifier: LocalTemplateDownloader
focal_class.interfaces: implements TemplateDownloader
focal_class.class_method_signature: LocalTemplateDownloader.LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_class.full_signature: public  LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_class.identifier: LocalTemplateDownloader
focal_class.modifiers: public
focal_class.parameters: (final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_class.signature:  LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_class.class_method_signature: LocalTemplateDownloader.LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes)
focal_class.full_signature: public  LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes)
focal_class.identifier: LocalTemplateDownloader
focal_class.modifiers: public
focal_class.parameters: (final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes)
focal_class.signature:  LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes)
focal_class.class_method_signature: LocalTemplateDownloader.LocalTemplateDownloader(final String downloadUrl, final String toDir, final long maxTemplateSizeInBytes)
focal_class.full_signature: public  LocalTemplateDownloader(final String downloadUrl, final String toDir, final long maxTemplateSizeInBytes)
focal_class.identifier: LocalTemplateDownloader
focal_class.modifiers: public
focal_class.parameters: (final String downloadUrl, final String toDir, final long maxTemplateSizeInBytes)
focal_class.signature:  LocalTemplateDownloader(final String downloadUrl, final String toDir, final long maxTemplateSizeInBytes)
focal_class.class_method_signature: LocalTemplateDownloader.download(final boolean resume, final DownloadCompleteCallback callback)
focal_class.full_signature: @Override public long download(final boolean resume, final DownloadCompleteCallback callback)
focal_class.identifier: download
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean resume, final DownloadCompleteCallback callback)
focal_class.return: long
focal_class.signature: long download(final boolean resume, final DownloadCompleteCallback callback)
focal_class.superclass: extends TemplateDownloaderBase
focal_method.body: public LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback) {
          super(storageLayer, downloadUrl, toDir, maxTemplateSizeInBytes, callback);
          final String filename = new File(downloadUrl).getName();
          this._toFile = toDir.endsWith(File.separator) ? toDir + filename : toDir + File.separator + filename;
      }
focal_method.class_method_signature: LocalTemplateDownloader.LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_method.full_signature: public  LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_method.identifier: LocalTemplateDownloader
focal_method.modifiers: public
focal_method.parameters: (final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)
focal_method.signature:  LocalTemplateDownloader(final StorageLayer storageLayer, final String downloadUrl, final String toDir,
                                     final long maxTemplateSizeInBytes, final DownloadCompleteCallback callback)