@Test public void testSameFlowAndOneHasNoBundleShouldHaveDifferentFingerprints() throws IOException { final String fp1 = fingerprinter.createFingerprint(getResourceBytes("/nifi/fingerprint/flow3-with-bundle-1.xml"), null); assertTrue(fp1.contains("org.apache.nifinifi-standard-nar1.0")); final String fp2 = fingerprinter.createFingerprint(getResourceBytes("/nifi/fingerprint/flow3-with-no-bundle.xml"), null); assertTrue(fp2.contains("MISSING_BUNDLE")); assertNotEquals(fp1, fp2); }
public synchronized String createFingerprint(final byte[] flowBytes) throws FingerprintException { return createFingerprint(flowBytes, null); }
FingerprintFactory { public synchronized String createFingerprint(final byte[] flowBytes) throws FingerprintException { return createFingerprint(flowBytes, null); } }
FingerprintFactory { public synchronized String createFingerprint(final byte[] flowBytes) throws FingerprintException { return createFingerprint(flowBytes, null); } FingerprintFactory(final StringEncryptor encryptor);  FingerprintFactory(final StringEncryptor encryptor, final DocumentBuilder docBuilder); }
FingerprintFactory { public synchronized String createFingerprint(final byte[] flowBytes) throws FingerprintException { return createFingerprint(flowBytes, null); } FingerprintFactory(final StringEncryptor encryptor);  FingerprintFactory(final StringEncryptor encryptor, final DocumentBuilder docBuilder); synchronized String createFingerprint(final byte[] flowBytes); synchronized String createFingerprint(final byte[] flowBytes, final FlowController controller); }
FingerprintFactory { public synchronized String createFingerprint(final byte[] flowBytes) throws FingerprintException { return createFingerprint(flowBytes, null); } FingerprintFactory(final StringEncryptor encryptor);  FingerprintFactory(final StringEncryptor encryptor, final DocumentBuilder docBuilder); synchronized String createFingerprint(final byte[] flowBytes); synchronized String createFingerprint(final byte[] flowBytes, final FlowController controller); static final String NO_VALUE; }