@Test public void testIsValidZipBackupFilename_withInvalidFilename_fails() { String givenFilename = "/example/filename.zip2"; boolean result = this.target.isValidZipBackupFilename(givenFilename); assertFalse(result); }
@Override public boolean isValidZipBackupFilename(String filename) { return ("." + FilenameUtils.getExtension(filename)).equals(EXT_ZIP_BACKUP); }
BackupFileService extends ServiceDispatcher<I, O> implements BackupFileServiceApi<I, O> { @Override public boolean isValidZipBackupFilename(String filename) { return ("." + FilenameUtils.getExtension(filename)).equals(EXT_ZIP_BACKUP); } }
BackupFileService extends ServiceDispatcher<I, O> implements BackupFileServiceApi<I, O> { @Override public boolean isValidZipBackupFilename(String filename) { return ("." + FilenameUtils.getExtension(filename)).equals(EXT_ZIP_BACKUP); }  }
BackupFileService extends ServiceDispatcher<I, O> implements BackupFileServiceApi<I, O> { @Override public boolean isValidZipBackupFilename(String filename) { return ("." + FilenameUtils.getExtension(filename)).equals(EXT_ZIP_BACKUP); }  @Override boolean isValidBackupFilename(String filename); @Override boolean isValidZipBackupFilename(String filename); @Override boolean isValidEncryptedBackupFilename(String filename); }
BackupFileService extends ServiceDispatcher<I, O> implements BackupFileServiceApi<I, O> { @Override public boolean isValidZipBackupFilename(String filename) { return ("." + FilenameUtils.getExtension(filename)).equals(EXT_ZIP_BACKUP); }  @Override boolean isValidBackupFilename(String filename); @Override boolean isValidZipBackupFilename(String filename); @Override boolean isValidEncryptedBackupFilename(String filename);  }