@Test public void testNonExistingFile() { try { setUp(); } catch (Exception e) { fail(e.getMessage()); } try { settings.setSignerSetting(ISignerSettings.KEY_INPUT_FILE, NON_EXISITNG_FILE_FILENAME); GenericSignedFlashArchive archive = new GenericSignedFlashArchive(settings); archive.getClass(); fail("should not get here"); } catch (SignerException e) { e.getMessage(); } }
@Test public void testDirAsInputFile() { try { setUp(); } catch (Exception e) { fail(e.getMessage()); } try { settings.setSignerSetting( ISignerSettings.KEY_INPUT_FILE, Activator.getResourcesPath() + DIRECTORY_FILE_FILENAME); GenericSignedFlashArchive archive = new GenericSignedFlashArchive(settings); archive.getClass(); fail("should not get here"); } catch (SignerException e) { e.getMessage(); } }