Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,940 for when (0.31 sec)

  1. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        // ...and then putIfAbsent. Simulate failure on both
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing);
    
        // next map.get()
        when(backingMap.get(KEY)).thenReturn(existingZero);
        // since get returned zero, try a replace; that fails due to a simulated race
        when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

            def annotations = []
            jApiType.annotations >> annotations
    
            when:
            annotations.clear()
    
            then:
            rule.maybeViolation(jApiType).humanExplanation =~ 'Is not annotated with @Incubating'
    
            when:
            annotations.add(incubatingAnnotation)
    
            then:
            rule.maybeViolation(jApiType) == null
    
            where:
            apiElement    | jApiTypeName
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

        when certificates matched but the DNS addresses did not. This would only occur when following a
        redirect from one hostname to another, and where both hosts had common certificates.
    
     *  Fix: Don't fail on a redirect when a client has configured a 'trust everything' trust manager.
        Typically this would cause certain redirects to fail in debug and development configurations.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. cmd/typed-errors.go

    // error returned in IAM subsystem when user doesn't exist.
    var errNoSuchUser = errors.New("Specified user does not exist")
    
    // error returned by IAM when a use a builtin IDP command when they could mean
    // to use a LDAP command.
    var errNoSuchUserLDAPWarn = errors.New("Specified user does not exist. If you meant a user in LDAP please use command under `mc idp ldap`")
    
    // error returned when service account is not found
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

            }
        }
    
        inner class TypeBuilder {
            fun buildKtType(coneType: ConeKotlinType): KtType {
                return when (coneType) {
                    is ConeClassLikeTypeImpl -> {
                        when {
                            coneType.lookupTag.toSymbol(rootSession) == null -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/classrealm/DefaultClassRealmManagerTest.java

            Artifact artifact = mock(Artifact.class);
            when(artifact.getFile()).thenReturn(new File(new File("local/repository"), "some/path"));
            when(artifact.getGroupId()).thenReturn("group1");
            when(artifact.getArtifactId()).thenReturn("artifact1");
            when(artifact.getExtension()).thenReturn("ext");
            when(artifact.getClassifier()).thenReturn("classifier1");
            when(artifact.getVersion()).thenReturn("1");
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jan 10 12:53:42 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        // ...and then putIfAbsent. Simulate failure on both
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing);
    
        // next map.get()
        when(backingMap.get(KEY)).thenReturn(existingZero);
        // since get returned zero, try a replace; that fails due to a simulated race
        when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

        def canAddMetaData() {
            TestDomainObject value = new TestDomainObject('a')
    
            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
            repository.get('class') == value
        }
    
        def findReturnsNullForUnknownClass() {
            expect:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

                currentExpression == ifExpression.then || currentExpression == ifExpression.`else`
            } ?: return null
            getExpectedType(ifExpression)?.let { return it }
    
            // if `KtIfExpression` doesn't have an expected type, get the expected type of the current branch from the other branch
            val otherBranch = (if (expression == ifExpression.then) ifExpression.`else` else ifExpression.then) ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  10. tests/associations_has_many_test.go

    		t.Fatalf("Error happened when append pet, got %v", err)
    	}
    
    	if pet2.ID == 0 {
    		t.Fatalf("pet2's ID should be created")
    	}
    
    	user.Pets = []*Pet{&pet2}
    	CheckUser(t, user2, user)
    
    	AssertAssociationCount(t, user2, "Pets", 1, "AfterReplace")
    
    	// Delete
    	if err := DB.Model(&user2).Association("Pets").Delete(&Pet{}); err != nil {
    		t.Fatalf("Error happened when delete pet, got %v", err)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 15.6K bytes
    - Viewed (0)
Back to top