CodeSignManager { public static void verify(File appFolder, boolean noStrictVerify) throws IOException { if (noStrictVerify) { checkExitValue(exec(new String[] { "/usr/bin/codesign", "--verify --no-strict -v", "\"" + appFolder.getAbsolutePath() + "\"" })); } else { checkExitValue(exec(new String[] { "/usr/bin/codesign", "--verify -v", "\"" + appFolder.getAbsolutePath() + "\"" })); } }  static void verify(File appFolder, boolean noStrictVerify); static void sign(String codeSignIdentity, File appFolder, boolean force); static ExecResult getCodesignEntitlementsInformation(File appFolder); static ExecResult getSecurityCMSInformation(File appFolder); static void verify(ExecResult result1, ExecResult result2);  }
@Test(expected = ExecutionResultVerificationException.class) public void testVerifyCodesignEntitlementsInvalid() throws ExecutionResultVerificationException { CodeSignManager.verify(validEntitlements, invalidEntitlements); }
@Test(expected = ExecutionResultVerificationException.class) public void testVerifySecurityCmsInvalid() throws ExecutionResultVerificationException { CodeSignManager.verify(validSecurityCms, invalidSecurityCms); }