@VisibleForTesting public DiskFileItemFactory (@Nonnegative final int nSizeThreshold) { this (nSizeThreshold, null); }
/** * This method is only for testing purposes to disable the complete client * certificate check, so that the tests can be performed, even if no SMP * certificate for testing is present. * * @param bCheckDisabled * <code>true</code> to always return <code>true</code> for the client * certificate check, <code>false</code> to enable client certificate * check. * @see PDServerConfiguration#isClientCertificateValidationActive() */ @VisibleForTesting public static void allowAllForTests (final boolean bCheckDisabled) { s_bIsCheckDisabled.set (bCheckDisabled); }
@VisibleForTesting public static void internalReinitForTestOnly () { // Re-read the config file with precedence to "private-test-as4.properties" // file but only if it wasn't read in test mode before. // This is necessary to avoid that the dynamic properties from the test // suites are overwritten with each new test if (!s_bTestMode) reinit (true); }
@VisibleForTesting public final void addMimeType (@Nonnull final MimeTypeInfo aInfo, @Nonnull final MimeTypeWithSource aMimeType) { ValueEnforcer.notNull (aInfo, "Info"); ValueEnforcer.notNull (aMimeType, "MimeType"); m_aRWLock.writeLocked ( () -> { m_aMapMimeType.putSingle (aMimeType.getMimeType (), aInfo); aInfo.addMimeType (aMimeType); }); }
@VisibleForTesting public final void addExtension (@Nonnull final MimeTypeInfo aInfo, @Nonnull final ExtensionWithSource aExt) { ValueEnforcer.notNull (aInfo, "Info"); ValueEnforcer.notNull (aExt, "Ext"); m_aRWLock.writeLocked ( () -> { m_aMapExt.putSingle (aExt.getExtension (), aInfo); aInfo.addExtension (aExt); }); }
@Nullable @VisibleForTesting PDExtendedBusinessCard getBusinessCardPeppolSMP (@Nonnull final IParticipantIdentifier aParticipantID, @Nonnull final SMPClientReadOnly aSMPClient)
@Nullable @VisibleForTesting PDExtendedBusinessCard getBusinessCardBDXR1 (@Nonnull final IParticipantIdentifier aParticipantID, @Nonnull final BDXRClientReadOnly aSMPClient)