AnimationImageSequenceNameFactory { public static File createImageSequenceFile(Animation animation, int frame, String frameName, File outputDir) { return new File(outputDir, createImageSequenceFileName(animation, frame, frameName)); } private  AnimationImageSequenceNameFactory(); static String createImageSequenceFileName(Animation animation, int frame, String frameName); static String createImageSequenceName(Animation animation, int frame, String frameName); static File createImageSequenceFile(Animation animation, int frame, String frameName, File outputDir); static File createStereoImageSequenceFile(Animation animation, int frame, String frameName, File outputDir, Eye eye);  }
@Test public void testCreateImageSequenceFile() { setAnimationFrameCount(222); File outputFile = AnimationImageSequenceNameFactory.createImageSequenceFile(animation, 56, "myFrame", TEMP_DIR); assertNotNull(outputFile); assertEquals("myFrame056.tga", outputFile.getName()); assertEquals(TEMP_DIR.getAbsolutePath(), outputFile.getParent()); outputFile.deleteOnExit(); }