@Nonnull public MockHttpServletRequest addUserRole (@Nullable final String sRole) { m_aUserRoles.add (sRole); return this; }
public static boolean containsName( @Nullable final String sName) { return s_aNameSet.contains(sName); }
@Nonnull @ReturnsMutableCopy public ICommonsSet <String> getAllExpectedErrorIDs () { return m_aExpectedErrorIDs.getClone (); }
public ICommonsList <String> getPropertyGroups (final String sPrefix) { final ICommonsSet <String> groups = new CommonsLinkedHashSet <> (10); String sRealPrefix = sPrefix; if (!sRealPrefix.endsWith (".")) sRealPrefix += "."; for (final String sKey : m_aProps.keySet ()) { if (sKey.startsWith (sRealPrefix)) { final String groupName = sKey.substring (sRealPrefix.length (), sKey.indexOf ('.', sRealPrefix.length ())); groups.add (groupName); } } return groups.getCopyAsList (); }
aCertSet.add (aCert); if (aCertSet.size () > 1) LOGGER.warn ("Found " + aCertSet.size () + " different certificates in message: " + aCertSet); else LOGGER.warn ("Found " + aCertSet.size () + " different certificates in message!"); aState.setUsedCertificate (aCertSet.getAtIndex (0)); aState.setDecryptedSOAPDocument (aSOAPDoc);
if (aValidSent.contains (sAddress)) aValidSentExt.add (aFailure); else if (aValidUnsent.contains (sAddress)) aValidUnsentExt.add (aFailure); else aValidUnsentExt, aInvalidExt); if (aValidUnsent.isEmpty () && aInvalid.isEmpty () && aValidSent.isNotEmpty ())
private void _onIndexSuccess (@Nonnull final IIndexerWorkItem aWorkItem) { m_aRWLock.writeLocked ( () -> m_aUniqueItems.remove (aWorkItem)); }
@Nonnegative public int getNonceCount () { return m_aRWLock.readLocked ( () -> m_aNonces.size ()); }
protected final void logThirdpartyModules () { // List all third party modules for later evaluation final ICommonsSet <IThirdPartyModule> aModules = ThirdPartyModuleRegistry.getInstance () .getAllRegisteredThirdPartyModules (); if (!aModules.isEmpty ()) { LOGGER.info ("Using the following third party modules:"); for (final IThirdPartyModule aModule : aModules.getSorted (IHasDisplayName.getComparatorCollating (SystemHelper.getSystemLocale ()))) if (!aModule.isOptional ()) { String sMsg = " " + aModule.getDisplayName (); if (aModule.getVersion () != null) sMsg += ' ' + aModule.getVersion ().getAsString (true); sMsg += " licensed under " + aModule.getLicense ().getDisplayName (); if (aModule.getLicense ().getVersion () != null) sMsg += ' ' + aModule.getLicense ().getVersion ().getAsString (); LOGGER.info (sMsg); } } }
public boolean isGoodCase () { return m_aExpectedErrorIDs.isEmpty (); }