@Test public void testFormatArchiveFilename4() { String filename = ViewArchive.toArchiveEntryFilename( "100.jpg" ); Assert.assertEquals( "100.jpg", filename ); }
@VisibleForTesting static String toArchiveEntryFilename( final String filename ) { if ( filename == null ) { return ""; } if ( filename.matches( "\\d+\\.jpg" ) ) { return padWith0( filename, 7 ); } return filename; }
ViewArchive { @VisibleForTesting static String toArchiveEntryFilename( final String filename ) { if ( filename == null ) { return ""; } if ( filename.matches( "\\d+\\.jpg" ) ) { return padWith0( filename, 7 ); } return filename; } }
ViewArchive { @VisibleForTesting static String toArchiveEntryFilename( final String filename ) { if ( filename == null ) { return ""; } if ( filename.matches( "\\d+\\.jpg" ) ) { return padWith0( filename, 7 ); } return filename; } private  ViewArchive( final File folder, final String format, final boolean clean ); }
ViewArchive { @VisibleForTesting static String toArchiveEntryFilename( final String filename ) { if ( filename == null ) { return ""; } if ( filename.matches( "\\d+\\.jpg" ) ) { return padWith0( filename, 7 ); } return filename; } private  ViewArchive( final File folder, final String format, final boolean clean ); static void execute( final File folder, final String format, final boolean clean ); }
ViewArchive { @VisibleForTesting static String toArchiveEntryFilename( final String filename ) { if ( filename == null ) { return ""; } if ( filename.matches( "\\d+\\.jpg" ) ) { return padWith0( filename, 7 ); } return filename; } private  ViewArchive( final File folder, final String format, final boolean clean ); static void execute( final File folder, final String format, final boolean clean );  }