DownloadImpl implements Download { @Override public String getActionText() { return actionText; }  @Nonnull @Override String getExportedType(); @Override String getUrl(); @Override String getTitle(); @Override String getDescription(); @Override String getActionText(); @Override String getTitleType(); @Override String getFilename(); @Override String getFormat(); @Override String getSize(); @Override boolean displaySize(); @Override boolean displayFormat(); @Override boolean displayFilename(); @Override String getExtension(); final static String RESOURCE_TYPE; }
@Test void testDownloadWithCustomActionText() { Download download = getDownloadUnderTest(DOWNLOAD_1, Download.PN_ACTION_TEXT, STYLE_ACTION_TEST); assertEquals(COMPONENT_ACTION_TEXT, download.getActionText(), "Expected action text is not correct"); Utils.testJSONExport(download, Utils.getTestExporterJSONPath(TEST_BASE, DOWNLOAD_FULLY_CONFIGURED)); }
@Test void testDownloadWithoutActionText() { Download downloadWithoutActionText = getDownloadUnderTest(DOWNLOAD_2); assertNull(downloadWithoutActionText.getActionText(), "Expected action text is not correct"); Utils.testJSONExport(downloadWithoutActionText, Utils.getTestExporterJSONPath(TEST_BASE, DOWNLOAD_WITH_DAM_PROPERTIES)); }