Unnamed: 0
int64
0
637
label
int64
0
1
code
stringlengths
24
8.83k
400
0
public Collection<ResourcePermission> getRequiredPermissions(String regionName) { return Collections.singletonList(ResourcePermissions.CLUSTER_MANAGE); }
401
0
private static ErrorPage findErrorPage (Context context, Throwable exception) { if (exception == null) { return (null); } Class<?> clazz = exception.getClass(); String name = clazz.getName(); while (!Object.class.equals(clazz)) { ErrorPage err...
402
0
protected void setUp() throws Exception { super.setUp(); req = new MockHttpServletRequest(); req.setupGetParameterMap(new HashMap()); req.setupGetContextPath("/my/namespace"); config = new DefaultConfiguration(); PackageConfig pkg = new PackageConfig.Builder("myns") ...
403
0
public String getName() { // Should we return the ID for the principal name? (No, because the // UaaUserDatabase retrieves users by name.) return principal.getName(); } @Override
404
0
public static IdStrategy idStrategy() { Jenkins j = Jenkins.getInstance(); SecurityRealm realm = j.getSecurityRealm(); if (realm == null) { return IdStrategy.CASE_INSENSITIVE; } return realm.getUserIdStrategy(); }
405
0
private static void verify(ActionRequestBuilder requestBuilder, boolean fail, long expectedCount) { if (fail) { if (requestBuilder instanceof MultiSearchRequestBuilder) { MultiSearchResponse multiSearchResponse = ((MultiSearchRequestBuilder) requestBuilder).get(); ...
406
0
public void setUp() throws Exception { TestClient testClient = new TestClient(getMockMvc()); adminToken = testClient.getClientCredentialsOAuthAccessToken("admin", "adminsecret", "clients.read clients.write clients.secret scim.write"); String clientId = generator.generate().to...
407
0
public Iterator<Group> getGroups() { synchronized (groups) { return (groups.values().iterator()); } } /** * Return the unique global identifier of this user database. */ @Override
408
0
public boolean refersDirectlyTo(PyObject ob) { if (ob == null || co_consts == null) { return false; } else { for (PyObject obj: co_consts) { if (obj == ob) { return true; } } return false; } ...
409
0
public Charset getCharset() { if (charset == null) { charset = DEFAULT_CHARSET; } return charset; } /** * Returns the message bytes. */
410
0
public String getDisplayName() { return Messages.UpstreamComitterRecipientProvider_DisplayName(); } } }
411
0
public final String convert(String str, boolean query) { if (str == null) return null; if( (!query || str.indexOf( '+' ) < 0) && str.indexOf( '%' ) < 0 ) return str; StringBuffer dec = new StringBuffer(); // decoded string output int strPos = 0; int strLen = str.le...
412
0
public final void parse(Set<InputStream> mappingStreams) { try { // JAXBContext#newInstance() requires several permissions internally and doesn't use any privileged blocks // itself; Wrapping it here avoids that all calling code bases need to have these permissions as well JAXBContext jc = run( NewJaxbConte...
413
0
static ASN1Enumerated fromOctetString(byte[] enc) { if (enc.length > 1) { return new ASN1Enumerated(enc); } if (enc.length == 0) { throw new IllegalArgumentException("ENUMERATED has zero length"); } int value = enc[0] & 0xff; ...
414
0
public void addRecipients(final ExtendedEmailPublisherContext context, EnvVars env, Set<InternetAddress> to, Set<InternetAddress> cc, Set<InternetAddress> bcc) { final class Debug implements RecipientProviderUtilities.IDebug { private final ExtendedEmailPublisherDescriptor descriptor ...
415
0
protected void handleParams(ActionMapping mapping, StringBuilder uri) { String name = mapping.getName(); String params = ""; if (name.indexOf('?') != -1) { params = name.substring(name.indexOf('?')); } if (params.length() > 0) { uri.append(params); ...
416
0
public static void copyRecursively(final Path source, final Path target, boolean overwrite) throws IOException { final CopyOption[] options; if (overwrite) { options = new CopyOption[]{StandardCopyOption.COPY_ATTRIBUTES, StandardCopyOption.REPLACE_EXISTING}; } else { ...
417
0
public Properties defaultOutputProperties() { Properties properties = new Properties(); properties.put(OutputKeys.ENCODING, defaultCharset); properties.put(OutputKeys.OMIT_XML_DECLARATION, "yes"); return properties; } /** * Converts the given input Source into the requi...
418
0
public static <T> Factory<T> prototypeFactory(final T prototype) { if (prototype == null) { return ConstantFactory.<T>constantFactory(null); } try { final Method method = prototype.getClass().getMethod("clone", (Class[]) null); return new PrototypeCloneFac...
419
0
public void sec2500PreventAnonymousBind() { provider.authenticate(new UsernamePasswordAuthenticationToken("rwinch", "")); } @SuppressWarnings("unchecked") @Test(expected = IncorrectResultSizeDataAccessException.class)
420
0
protected void checkConfig() throws IOException { // Create an unbound server socket ServerSocket socket = JdkCompat.getJdkCompat().getUnboundSocket(sslProxy); if (socket == null) { // Can create unbound sockets (1.3 JVM) - can't test the connection return...
421
0
private static boolean startsWithStringArray(String sArray[], String value) { if (value == null) { return false; } for (int i = 0; i < sArray.length; i++) { if (value.startsWith(sArray[i])) { return true; } } return false; ...
422
0
protected String getProtocolName() { return "Http"; } // ------------------------------------------------ HTTP specific properties // ------------------------------------------ managed in the ProtocolHandler
423
0
public String toString() { return "parameter:'" + parameterName + "'"; } } }
424
0
public long getAvailable(); /** * Set the available date/time for this servlet, in milliseconds since the * epoch. If this date/time is in the future, any request for this servlet * will return an SC_SERVICE_UNAVAILABLE error. A value equal to * Long.MAX_VALUE is considered to mean that ...
425
0
protected abstract Log getLog();
426
0
private static ManagedMap<BeanDefinition, BeanDefinition> parseInterceptUrlsForFilterInvocationRequestMap( MatcherType matcherType, List<Element> urlElts, boolean useExpressions, boolean addAuthenticatedAll, ParserContext parserContext) { ManagedMap<BeanDefinition, BeanDefinition> filterInvocationDefinitionMa...
427
0
public DeserializerFactory withConfig(DeserializerFactoryConfig config) { if (_factoryConfig == config) { return this; } /* 22-Nov-2010, tatu: Handling of subtypes is tricky if we do immutable-with-copy-ctor; * and we pretty much have to here either choose between...
428
0
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.defaultWebSecurityExpressionHandler .setApplicationContext(applicationContext); this.ignoredRequestRegistry = new IgnoredRequestConfigurer(applicationContext); }
429
0
private SessionCreationPolicy createPolicy(String createSession) { if ("ifRequired".equals(createSession)) { return SessionCreationPolicy.IF_REQUIRED; } else if ("always".equals(createSession)) { return SessionCreationPolicy.ALWAYS; } else if ("never".equals(createSession)) { return SessionCreationP...
430
1
public PlainText decrypt(SecretKey key, CipherText ciphertext) throws EncryptionException, IllegalArgumentException { long start = System.nanoTime(); // Current time in nanosecs; used to prevent timing attacks if ( key == null ) { throw new IllegalArgumentException("SecretKey arg may not be n...
431
1
public List<ACL> getAclForPath(String path) { List<ACL> acls = zkACLProvider.getACLsToAdd(path); return acls; } }; }
432
1
protected Object readResolve() throws ObjectStreamException { AbstractBrokerFactory factory = getPooledFactoryForKey(_poolKey); if (factory != null) return factory; // reset these transient fields to empty values _transactional = new ConcurrentHashMap(); ...
433
1
public void testRepositoryCreation() throws Exception { Client client = client(); File location = newTempDir(LifecycleScope.SUITE); logger.info("--> creating repository"); PutRepositoryResponse putRepositoryResponse = client.admin().cluster().preparePutRepository("test-repo-1") ...
434
1
protected void parseParameters() { parametersParsed = true; Parameters parameters = coyoteRequest.getParameters(); // getCharacterEncoding() may have been overridden to search for // hidden form field containing request encoding String enc = getCharacterEncoding(); ...
435
1
public void unzipping_stream_extracts_subset_of_files() throws IOException { InputStream zip = urlToZip().openStream(); File toDir = temp.newFolder(); ZipUtils.unzip(zip, toDir, (ZipUtils.ZipEntryFilter)ze -> ze.getName().equals("foo.txt")); assertThat(toDir.listFiles()).containsOnly(new File(toDir, ...
436
1
protected boolean addInputFilter(InputFilter[] inputFilters, String encodingName) { if (encodingName.equals("identity")) { // Skip } else if (encodingName.equals("chunked")) { inputBuffer.addActiveFilter (inputFilters[Const...
437
1
public KeystoreInstance createKeystore(String name, char[] password, String keystoreType) throws KeystoreException { File test = new File(directory, name); if(test.exists()) { throw new IllegalArgumentException("Keystore already exists "+test.getAbsolutePath()+"!"); } try...
438
1
private ControllerInfo parseCInfoString(String cInfoString) { Annotations annotation; String[] config = cInfoString.split(","); if (config.length == 2) { String[] pair = config[1].split("="); if (pair.length == 2) { annotation = DefaultAnnotations.bu...
439
1
public void filterWithParameter() throws IOException, ServletException { MockHttpServletRequest request = new MockHttpServletRequest("POST", "/hotels"); request.addParameter("_method", "delete"); MockHttpServletResponse response = new MockHttpServletResponse(); FilterChain filterChain = new FilterChain() { ...
440
1
public Authentication authenticate(Authentication authentication) throws AuthenticationException { Assert.isInstanceOf(UsernamePasswordAuthenticationToken.class, authentication, messages.getMessage("LdapAuthenticationProvider.onlySupports", "Only UsernamePasswordAuthenticationTok...
441
1
public CsrfConfigurer<H> ignoringAntMatchers(String... antPatterns) { return new IgnoreCsrfProtectionRegistry().antMatchers(antPatterns).and(); } @SuppressWarnings("unchecked") @Override
442
1
public void commence(ServletRequest request, ServletResponse response, AuthenticationException authException) throws IOException, ServletException { HttpServletRequest hrequest = (HttpServletRequest)request; HttpServletResponse hresponse = (HttpServletResponse)respo...
443
1
public void testWithVariantRequestOnly() throws Exception { params.put(I18nInterceptor.DEFAULT_REQUESTONLY_PARAMETER, "fr_CA_xx"); interceptor.intercept(mai); assertNull(params.get(I18nInterceptor.DEFAULT_PARAMETER)); // should have been removed assertNull(session.get(I18nIntercepto...
444
1
private <T> T run(PrivilegedAction<T> action) { return System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run(); }
445
1
public void execute(FunctionContext context) { ResultSender<Object> resultSender = context.getResultSender(); Cache cache = context.getCache(); String memberNameOrId = context.getMemberName(); RegionFunctionArgs regionCreateArgs = (RegionFunctionArgs) context.getArguments(); if (regionCreateArg...
446
1
public static Document signMetaInfo(Crypto crypto, String keyAlias, String keyPassword, InputStream metaInfo, String referenceID) throws Exception { if (keyAlias == null || "".equals(keyAlias)) { keyAlias = crypto.getDefaultX509Identifier(); ...
447
1
public void testCorruptFileThenSnapshotAndRestore() throws ExecutionException, InterruptedException, IOException { int numDocs = scaledRandomIntBetween(100, 1000); internalCluster().ensureAtLeastNumDataNodes(2); assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder() ...
448
1
public void parse(InputStream stream, ContentHandler ignore, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException { //Test to see if we should avoid parsing if (parserState.recursiveParserWrapperHandler.hasHitMaximumEmbe...
449
1
private boolean breakKeepAliveLoop(SocketWrapperBase<?> socketWrapper) { openSocket = keepAlive; // Do sendfile as needed: add socket to sendfile and end if (sendfileData != null && !getErrorState().isError()) { sendfileData.keepAlive = keepAlive; switch (socketWrappe...
450
1
public void execute(FunctionContext context) { RegionFunctionContext rfc = (RegionFunctionContext) context; Set<String> keys = (Set<String>) rfc.getFilter(); // Get local (primary) data for the context Region primaryDataSet = PartitionRegionHelper.getLocalDataForContext(rfc); if (this.cache.getL...
451
1
private static void unzip(final ZipFile zip, final Path targetDir) throws IOException { final Enumeration<? extends ZipEntry> entries = zip.entries(); while (entries.hasMoreElements()) { final ZipEntry entry = entries.nextElement(); final String name = entry.getName(); ...
452
1
private void updateGraphFromRequest(ActionRequest actionRequest, Graph graph) { graph.setGraphName1(actionRequest.getParameter("name")); graph.setDescription(actionRequest.getParameter("description")); graph.setXlabel(actionRequest.getParameter("xlabel")); graph.setYlabel(actionReque...
453
1
public BeanDefinition parse(Element elt, ParserContext pc) { MatcherType matcherType = MatcherType.fromElement(elt); String path = elt.getAttribute(HttpSecurityBeanDefinitionParser.ATT_PATH_PATTERN); String requestMatcher = elt.getAttribute(ATT_REQUEST_MATCHER_REF); String filters = elt.getAttribute(HttpSecuri...
454
1
protected Principal authenticate(Connection dbConnection, String username, String credentials) { // No user or no credentials // Can't possibly authenticate, don't bother the database then if (username == null || crede...
455
1
public BeanDefinitionHolder decorate(Node node, BeanDefinitionHolder holder, ParserContext parserContext) { BeanDefinition filterChainProxy = holder.getBeanDefinition(); ManagedList<BeanMetadataElement> securityFilterChains = new ManagedList<BeanMetadataElement>(); Element elt = (Element) node; MatcherTyp...
456
1
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { String fullName = m_arg0.execute(xctxt).str(); int indexOfNSSep = fullName.indexOf(':'); String result; String propName = ""; // List of properties where the name of the // property argument is to ...
457
1
private <T> T run(PrivilegedAction<T> action) { return System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run(); }
458
1
protected Locale getLocaleFromParam(Object requestedLocale) { Locale locale = null; if (requestedLocale != null) { locale = (requestedLocale instanceof Locale) ? (Locale) requestedLocale : LocalizedTextUtil.localeFromString(requestedLocale.toString...
459
1
public static HierarchicalConfiguration loadXml(InputStream xmlStream) { XMLConfiguration cfg = new XMLConfiguration(); try { cfg.load(xmlStream); return cfg; } catch (ConfigurationException e) { throw new IllegalArgumentException("Cannot load xml from Str...
460
1
private void multiByteReadConsistentlyReturnsMinusOneAtEof(File file) throws Exception { byte[] buf = new byte[2]; try (FileInputStream in = new FileInputStream(getFile("bla.zip")); ZipArchiveInputStream archive = new ZipArchiveInputStream(in)) { ArchiveEntry e = archive.get...
461
1
public void testRead7ZipMultiVolumeArchiveForStream() throws IOException { final FileInputStream archive = new FileInputStream(getFile("apache-maven-2.2.1.zip.001")); ZipArchiveInputStream zi = null; try { zi = new ZipArchiveInputStream(archive,null,false); ...
462
1
void setByteChunk( ByteChunk mb ) { initialized = (mb!=null); bc = mb; }
463
1
public void testUpdate() throws Exception { String xml = "<random>" + " <document>" + " <node name=\"id\" value=\"12345\"/>" + " <node name=\"name\" value=\"kitten\"/>" + " <node name=\"text\" enhance=\"3\" value=\"some other day\"/>" + " <node name=\"title\" enhance=\"4...
464
1
protected Container createBootstrapContainer(List<ContainerProvider> providers) { ContainerBuilder builder = new ContainerBuilder(); boolean fmFactoryRegistered = false; for (ContainerProvider provider : providers) { if (provider instanceof FileManagerProvider) { ...
465
1
protected void initOther() throws ServletException { PropertyUtils.addBeanIntrospector( SuppressPropertiesBeanIntrospector.SUPPRESS_CLASS); PropertyUtils.clearDescriptors(); String value = null; value = getServletConfig().getInitParameter("config"); if (value...
466
1
private void parseUsingSAX(InputStream is) throws IOException, ParserConfigurationException, SAXException, SAXNotRecognizedException, SAXNotSupportedException { // Invoke the SAX XML parser on the input. SAXParserFactory spf = SAXParserFactory.newInstance(); // Disable external entity resolvin...
467
1
private ManagedMap<BeanDefinition, BeanDefinition> parseInterceptUrlsForChannelSecurity() { ManagedMap<BeanDefinition, BeanDefinition> channelRequestMap = new ManagedMap<BeanDefinition, BeanDefinition>(); for (Element urlElt : interceptUrls) { String path = urlElt.getAttribute(ATT_PATH_PATTERN); String met...
468
1
public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException, InterruptedException { if (logger.isDebugEnabled()) { logger.debug("submit {}", req.toString()); } JSONObject form = req.getSubmittedForm(); P...
469
1
public Document getMetaData( HttpServletRequest request, FedizContext config ) throws ProcessingException { try { ByteArrayOutputStream bout = new ByteArrayOutputStream(4096); Writer streamWriter = new OutputStreamWriter(bout, "UTF-8"); XMLStreamWriter writer...
470
1
public void testMavenTriggerEvenWhenUnstable() throws Exception { doMavenTriggerTest(true); }
471
1
boolean isTransferException(); /** * The status codes which is considered a success response. The values are inclusive. The range must be defined as from-to with the dash included. * <p/> * The default range is <tt>200-299</tt> */
472
1
public Object instantiate(Class type, Configuration conf, boolean fatal) { Object obj = newInstance(_name, type, conf, fatal); Configurations.configureInstance(obj, conf, _props, (fatal) ? getProperty() : null); if (_singleton) set(obj, true); return obj; ...
473
1
public ScimGroup delete(String id, int version) throws ScimResourceNotFoundException { ScimGroup group = retrieve(id); membershipManager.removeMembersByGroupId(id); externalGroupMappingManager.unmapAll(id); int deleted; if (version > 0) { deleted = jdbcTemplate.up...
474
1
public Authentication attemptAuthentication(HttpServletRequest request) throws AuthenticationException { SecurityContext context = SecurityContextHolder.getContext(); if (context != null) { Authentication authentication = context.getAuthentication(); if (authenticati...
475
1
public void testPrototypeFactoryPublicSerialization() throws Exception { final Integer proto = Integer.valueOf(9); final Factory<Integer> factory = FactoryUtils.prototypeFactory(proto); assertNotNull(factory); final Integer created = factory.create(); assertTrue(proto != crea...
476
1
protected void configure(HttpSecurity http) throws Exception { logger.debug("Using default configure(HttpSecurity). If subclassed this will potentially override subclass configure(HttpSecurity)."); http .authorizeRequests() .anyRequest().authenticated() .and() .formLogin().and() .httpBasic(); } ...
477
1
public SocketState process(SocketWrapper<Socket> socket) throws IOException { RequestInfo rp = request.getRequestProcessor(); rp.setStage(org.apache.coyote.Constants.STAGE_PARSE); // Setting up the socket this.socket = socket; input = socket.getSocket().getInputStrea...
478
1
public void send(final String format, final Object... args) { descriptor.debug(logger, format, args); } } final Debug debug = new Debug(); Run<?,?> run = context.getRun(); final Result runResult = run.getResult(); if (run instanceof Abstrac...
479
1
public Object getValue(Object parent) { return ReflectionHelper.getValue( cascadingMember, parent ); } @Override
480
1
public void testSnapshotAndRestore() throws ExecutionException, InterruptedException, IOException { logger.info("--> creating repository"); assertAcked(client().admin().cluster().preparePutRepository("test-repo") .setType("fs").setSettings(ImmutableSettings.settingsBuilder() ...
481
1
public void canModifyPassword() throws Exception { ScimUser user = new ScimUser(null, generator.generate()+ "@foo.com", "Jo", "User"); user.addEmail(user.getUserName()); ScimUser created = db.createUser(user, "j7hyqpassX"); assertNull(user.getPasswordLastModified()); assertNo...
482
1
public void addRecipients(final ExtendedEmailPublisherContext context, EnvVars env, Set<InternetAddress> to, Set<InternetAddress> cc, Set<InternetAddress> bcc) { final class Debug implements RecipientProviderUtilities.IDebug { private final ExtendedEmailPublisherDescriptor descriptor ...
483
1
public void doHarmonyDecoder(byte[] src, boolean errorExpected, int failPosExpected) { CharsetDecoder decoder = new Utf8Decoder(); ByteBuffer bb = ByteBuffer.allocate(src.length); CharBuffer cb = CharBuffer.allocate(bb.limit()); boolean error = false; int i = 0;...
484
1
public byte[] asPortableSerializedByteArray() throws EncryptionException { // Check if this CipherText object is "complete", i.e., all // mandatory has been collected. if ( ! collectedAll() ) { String msg = "Can't serialize this CipherText object yet as not " + "all ...
485
1
protected void handle(Message msg) throws IOException { inbound.offer(msg); } } }
486
1
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } } @ServletSecurity(@HttpConstraint(EmptyRoleSemantic.DENY)) public static class DenyAllServlet extends TestServlet { pri...
487
1
protected Http11Processor createProcessor() { Http11Processor processor = new Http11Processor( proto.getMaxHttpHeaderSize(), (JIoEndpoint)proto.endpoint, proto.getMaxTrailerSize()); processor.setAdapter(proto.getAdapter()); processor.se...
488
1
public SocketState process(SocketWrapper<NioChannel> socket) throws IOException { RequestInfo rp = request.getRequestProcessor(); rp.setStage(org.apache.coyote.Constants.STAGE_PARSE); // Setting up the socket this.socket = socket.getSocket(); long soTimeout ...
489
1
public void invoke(Request request, Response response) throws IOException, ServletException { if (log.isDebugEnabled()) log.debug("Security checking request " + request.getMethod() + " " + request.getRequestURI()); LoginConfig config = this.context.getLoginConfig...
490
1
public void setUp() throws Exception { super.setUp(); _expectedResult = mock(AuthenticationResult.class); _authenticationProvider = mock(UsernamePasswordAuthenticationProvider.class); when(_authenticationProvider.authenticate(eq(VALID_USERNAME), eq(VALID_PASSWORD))).thenReturn(_e...
491
1
public byte[] toByteArray() { /* index || secretKeySeed || secretKeyPRF || publicSeed || root */ int n = params.getDigestSize(); int indexSize = (params.getHeight() + 7) / 8; int secretKeySize = n; int secretKeyPRFSize = n; int publicSeedSize = n; int rootSize =...
492
1
public TransformerFactory createTransformerFactory() { TransformerFactory factory = TransformerFactory.newInstance(); factory.setErrorListener(new XmlErrorListener()); return factory; }
493
1
public static void addUsers(final Set<User> users, final TaskListener listener, final EnvVars env, final Set<InternetAddress> to, final Set<InternetAddress> cc, final Set<InternetAddress> bcc, final IDebug debug) { for (final User user : users) { if (EmailRecipientUtils.isExcludedRecipie...
494
1
PlainText decrypt(SecretKey key, CipherText ciphertext) throws EncryptionException; /** * Create a digital signature for the provided data and return it in a * string. * <p> * <b>Limitations:</b> A new public/private key pair used for ESAPI 2.0 digital * signatures with this method and {@link #verifySigna...
495
1
public void init(KeyGenerationParameters param) { this.param = (RSAKeyGenerationParameters)param; this.iterations = getNumberOfIterations(this.param.getStrength(), this.param.getCertainty()); }
496
1
private ResetPasswordResponse changePasswordCodeAuthenticated(String code, String newPassword) { ExpiringCode expiringCode = expiringCodeStore.retrieveCode(code); if (expiringCode == null) { throw new InvalidCodeException("invalid_code", "Sorry, your reset password link is no longer vali...
497
1
public boolean accept(File pathname) { return pathname.isDirectory() && new File(pathname, "config.xml").isFile() && idStrategy().equals( pathname.getName(), id); } }); } /** * Gets the directory where Hudson stores user information. ...
498
1
public void register(ContainerBuilder builder, LocatableProperties props) { alias(ObjectFactory.class, StrutsConstants.STRUTS_OBJECTFACTORY, builder, props); alias(FileManagerFactory.class, StrutsConstants.STRUTS_FILE_MANAGER_FACTORY, builder, props, Scope.SINGLETON); alias(XWorkConverter.c...
499
1
public void changePassword_Returns422UnprocessableEntity_NewPasswordSameAsOld() throws Exception { Mockito.reset(passwordValidator); when(expiringCodeStore.retrieveCode("emailed_code")) .thenReturn(new ExpiringCode("emailed_code", new Timestamp(System.currentTimeMillis()+ UaaResetPassw...