ImageMagickHelper { public String getCliExecutionCommand() { return compareExec; } ImageMagickHelper();  ImageMagickHelper(String newCompareExec); String getCliExecutionCommand(); boolean runImageMagickImageCompare(String outImageFilePath, String cmpImageFilePath, String diffImageName); boolean runImageMagickImageCompare(String outImageFilePath, String cmpImageFilePath,
                                              String diffImageName, String fuzzValue); static final String MAGICK_COMPARE_ENVIRONMENT_VARIABLE; }
@Test public void imageMagickEnvVarIsDefault() { ImageMagickHelper imageMagickHelper = new ImageMagickHelper(); Assert.assertNotNull(imageMagickHelper.getCliExecutionCommand()); }
@Test public void imageMagickEnvVarIsExplicitlySpecified() { String compareExec = SystemUtil.getPropertyOrEnvironmentVariable(ImageMagickHelper.MAGICK_COMPARE_ENVIRONMENT_VARIABLE); if (compareExec == null) { compareExec = SystemUtil.getPropertyOrEnvironmentVariable(ImageMagickHelper.MAGICK_COMPARE_ENVIRONMENT_VARIABLE_LEGACY); } ImageMagickHelper imageMagickHelper = new ImageMagickHelper(compareExec); Assert.assertNotNull(imageMagickHelper.getCliExecutionCommand()); }