@Test public void testCreateImageSequenceNameWithNullAnimation() { try { assertEquals("theFrame0013", AnimationImageSequenceNameFactory.createImageSequenceName(null, 13, "theFrame")); fail(); } catch (Exception e) { assertTrue("Expected IllegalArgumentException. Got: " + e.getClass().getCanonicalName(), e instanceof IllegalArgumentException); } }
public static String createImageSequenceName(Animation animation, int frame, String frameName) { Validate.notNull(animation, "An animation is required"); return createImageSequenceName(frame, Util.isBlank(frameName) ? DEFAULT_FRAME_NAME : frameName, String.valueOf(animation.getFrameCount()).length()); }
AnimationImageSequenceNameFactory { public static String createImageSequenceName(Animation animation, int frame, String frameName) { Validate.notNull(animation, "An animation is required"); return createImageSequenceName(frame, Util.isBlank(frameName) ? DEFAULT_FRAME_NAME : frameName, String.valueOf(animation.getFrameCount()).length()); } }
AnimationImageSequenceNameFactory { public static String createImageSequenceName(Animation animation, int frame, String frameName) { Validate.notNull(animation, "An animation is required"); return createImageSequenceName(frame, Util.isBlank(frameName) ? DEFAULT_FRAME_NAME : frameName, String.valueOf(animation.getFrameCount()).length()); } private  AnimationImageSequenceNameFactory(); }
AnimationImageSequenceNameFactory { public static String createImageSequenceName(Animation animation, int frame, String frameName) { Validate.notNull(animation, "An animation is required"); return createImageSequenceName(frame, Util.isBlank(frameName) ? DEFAULT_FRAME_NAME : frameName, String.valueOf(animation.getFrameCount()).length()); } 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); }
AnimationImageSequenceNameFactory { public static String createImageSequenceName(Animation animation, int frame, String frameName) { Validate.notNull(animation, "An animation is required"); return createImageSequenceName(frame, Util.isBlank(frameName) ? DEFAULT_FRAME_NAME : frameName, String.valueOf(animation.getFrameCount()).length()); } 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);  }