@Test public void testCreateContext() throws Exception { File root = temp.newFolder(); JhoveContext ctx = JhoveUtility.createContext(root); assertNotNull(ctx); assertTrue(new File(root, JhoveUtility.JHOVE_CONFIG_NAME).exists()); ctx.destroy(); assertFalse(root.toString(), root.exists()); }
public static JhoveContext createContext() throws MetsExportException { File temp = new File(FileUtils.getTempDirectory(), "jhove" + UUID.randomUUID().toString()); if (!temp.mkdir()) { throw new MetsExportException("Cannot create " + temp.toString()); } temp.deleteOnExit(); return createContext(temp); }
JhoveUtility { public static JhoveContext createContext() throws MetsExportException { File temp = new File(FileUtils.getTempDirectory(), "jhove" + UUID.randomUUID().toString()); if (!temp.mkdir()) { throw new MetsExportException("Cannot create " + temp.toString()); } temp.deleteOnExit(); return createContext(temp); } }
JhoveUtility { public static JhoveContext createContext() throws MetsExportException { File temp = new File(FileUtils.getTempDirectory(), "jhove" + UUID.randomUUID().toString()); if (!temp.mkdir()) { throw new MetsExportException("Cannot create " + temp.toString()); } temp.deleteOnExit(); return createContext(temp); }  }
JhoveUtility { public static JhoveContext createContext() throws MetsExportException { File temp = new File(FileUtils.getTempDirectory(), "jhove" + UUID.randomUUID().toString()); if (!temp.mkdir()) { throw new MetsExportException("Cannot create " + temp.toString()); } temp.deleteOnExit(); return createContext(temp); }  static Node getNodeRecursive(Node node, String localName); static void initJhove(MetsContext metsContext); static JhoveContext createContext(); static JhoveContext createContext(File configFolder); static JHoveOutput getMix(File sourceFile, File tempFolder,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static JHoveOutput getMix(File targetFile, MetsContext metsContext, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMixFromFedora(IMetsElement metsElement, String streamName); static void mergeMix(Mix source, MixType deviceMix); static void insertImageCaptureMetadata(Mix mix, XMLGregorianCalendar dateCreated); static void insertObjectIdentifier(Mix mix, String pid, String datastream); static void insertChangeHistory(Mix mix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMix(File sourceFile, JhoveContext jhoveContext,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static void destroyConfigFiles(JhoveContext ctx); static void addDenominator(JHoveOutput jhoveOutput); static void addPhotometricInformation(JHoveOutput jhoveOutput, PhotometricInterpretation photometricInterpretation); static void addOrientation(JHoveOutput jhoveOutput); }
JhoveUtility { public static JhoveContext createContext() throws MetsExportException { File temp = new File(FileUtils.getTempDirectory(), "jhove" + UUID.randomUUID().toString()); if (!temp.mkdir()) { throw new MetsExportException("Cannot create " + temp.toString()); } temp.deleteOnExit(); return createContext(temp); }  static Node getNodeRecursive(Node node, String localName); static void initJhove(MetsContext metsContext); static JhoveContext createContext(); static JhoveContext createContext(File configFolder); static JHoveOutput getMix(File sourceFile, File tempFolder,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static JHoveOutput getMix(File targetFile, MetsContext metsContext, MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMixFromFedora(IMetsElement metsElement, String streamName); static void mergeMix(Mix source, MixType deviceMix); static void insertImageCaptureMetadata(Mix mix, XMLGregorianCalendar dateCreated); static void insertObjectIdentifier(Mix mix, String pid, String datastream); static void insertChangeHistory(Mix mix, XMLGregorianCalendar dateCreated, String originalFileName); static JHoveOutput getMix(File sourceFile, JhoveContext jhoveContext,
            MixType deviceMix, XMLGregorianCalendar dateCreated, String originalFileName
            ); static void destroyConfigFiles(JhoveContext ctx); static void addDenominator(JHoveOutput jhoveOutput); static void addPhotometricInformation(JHoveOutput jhoveOutput, PhotometricInterpretation photometricInterpretation); static void addOrientation(JHoveOutput jhoveOutput);  }