private void checkSigning(String type) throws Exception { _currentOut.reset(); SignedFileProcessor.main(new String[] { "-s", "test.txt", "secret." + type, "password" }); SignedFileProcessor.main(new String[] { "-v", "test.txt.bpg", "pub." + type }); assertEquals("signature verified.", getLine(_currentOut)); SignedFileProcessor.main(new String[] { "-s", "-a", "test.txt", "secret." + type, "password" }); SignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub." + type }); assertEquals("signature verified.", getLine(_currentOut)); }