Search Options

Results per page
Sort
Preferred Languages
Advance

Results 621 - 630 of 1,270 for expectEq (0.07 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

        }
    
        protected void assertProblemFree(SimpleProblemCollector collector) {
            assertEquals(0, collector.getErrors().size(), "Expected no errors");
            assertEquals(0, collector.getWarnings().size(), "Expected no warnings");
            assertEquals(0, collector.getFatals().size(), "Expected no fatals");
        }
    
        protected void assertCollectorState(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. cmd/auth-handler_test.go

    			authT: authTypePostPolicy,
    		},
    	}
    
    	// .. Tests all request auth type.
    	for i, testc := range testCases {
    		authT := getRequestAuthType(testc.req)
    		if authT != testc.authT {
    			t.Errorf("Test %d: Expected %d, got %d", i+1, testc.authT, authT)
    		}
    	}
    }
    
    // Test all s3 supported auth types.
    func TestS3SupportedAuthType(t *testing.T) {
    	type testCase struct {
    		authT authType
    		pass  bool
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. cmd/api-utils_test.go

    	for i, testCase := range testCases {
    		t.Run(fmt.Sprintf("Test%d", i+1), func(t *testing.T) {
    			outputText := s3EncodeName(testCase.inputText, testCase.encodingType)
    			if testCase.expectedOutput != outputText {
    				t.Errorf("Expected `%s`, got `%s`", testCase.expectedOutput, outputText)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FlushablesTest.java

        // make sure that no exception is thrown by flushQuietly when the mock does
        // throw an exception on flush.
        setupFlushable(true);
        Flushables.flushQuietly(mockFlushable);
      }
    
      // Set up a flushable to expect to be flushed, and optionally to
      // throw an exception.
      private void setupFlushable(boolean shouldThrowOnFlush) throws IOException {
        mockFlushable = mock(Flushable.class);
        if (shouldThrowOnFlush) {
          doThrow(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.3K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/delmarker-expiration_test.go

    				if err != nil {
    					fail = true
    				}
    			} else {
    				if err == nil {
    					fail = true
    				}
    				if test.err.Error() != err.Error() {
    					fail = true
    				}
    			}
    			if fail {
    				t.Fatalf("Expected %v but got %v", test.err, err)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

         * @param oldValue the expected data currently associated with the key, may be {@code null}
         * @param newValue the data to associate with the key, may be {@code null} to remove the mapping
         * @return {@code true} if the key mapping was successfully updated from the old value to the new value,
         *         {@code false} if the current key mapping didn't match the expected value and was not updated.
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. cmd/metacache_test.go

    	for i, tt := range metaCacheTestset {
    		t.Run(tt.id, func(t *testing.T) {
    			var want bool
    			if i >= len(wantResults) {
    				t.Logf("no expected result for test #%d", i)
    			} else {
    				want = wantResults[i]
    			}
    
    			got := tt.finished()
    			if got != want {
    				t.Errorf("#%d: want %v, got %v", i, want, got)
    			}
    		})
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 08 18:06:45 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  8. cmd/data-scanner_test.go

    	}
    	gots, err := item.applyNewerNoncurrentVersionLimit(context.TODO(), objAPI, fivs, es)
    	if err != nil {
    		t.Fatalf("Failed with err: %v", err)
    	}
    	if len(gots) != len(wants) {
    		t.Fatalf("Expected %d objects but got %d", len(wants), len(gots))
    	}
    
    	// Close expiry state's channel to inspect object versions enqueued for expiration
    	close(workers[0])
    	wg.Wait()
    	for _, obj := range expired {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
     * <p>Failure of the expected event to occur within an implementation-defined "reasonable" time
     * period or an interrupt while waiting for the expected event will result in a {@link
     * RuntimeException}.
     *
     * <p>Here's an example that tests a {@code finalize} method:
     *
     * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

            if ( structureSize == 9 ) {
                return this.readErrorResponse(buffer, bufferIndex);
            }
            else if ( structureSize != 17 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 17");
            }
    
            short dataOffset = buffer[ bufferIndex + 2 ];
            bufferIndex += 4;
            this.dataLength = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 07:13:17 UTC 2018
    - 3.8K bytes
    - Viewed (0)
Back to top