Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for actualContents (0.07 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserialize() {
        // For a bare Collection, the most we can guarantee is that the elements are preserved.
        assertEqualIgnoringOrder(actualContents(), SerializableTester.reserialize(actualContents()));
      }
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 1.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java

    public class CollectionSerializationEqualTester<E> extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserialize() {
        assertEquals(SerializableTester.reserialize(actualContents()), actualContents());
      }
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-07-24 20:12
    - 1.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

        extends AbstractContainerTester<Collection<E>, E> {
    
      // TODO: replace this with an accessor.
      protected Collection<E> collection;
    
      @Override
      protected Collection<E> actualContents() {
        return collection;
      }
    
      // TODO: dispose of this once collection is encapsulated.
      @Override
      @CanIgnoreReturnValue
      protected Collection<E> resetContainer(Collection<E> newContents) {
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-07-24 20:12
    - 2.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

      }
    
      /**
       * @return the contents of the container under test, for use by {@link #expectContents(Object[])
       *     expectContents(E...)} and its friends.
       */
      protected abstract Collection<E> actualContents();
    
      /**
       * Replaces the existing container under test with a new container created by the subject
       * generator.
       *
       * @see #resetContainer(Object) resetContainer(C)
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 8.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        extends AbstractContainerTester<Map<K, V>, Entry<K, V>> {
      protected Map<K, V> getMap() {
        return container;
      }
    
      @Override
      protected Collection<Entry<K, V>> actualContents() {
        return getMap().entrySet();
      }
    
      /** @see AbstractContainerTester#resetContainer() */
      protected final void resetMap() {
        resetContainer();
      }
    
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 7.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        extends AbstractContainerTester<Map<K, V>, Entry<K, V>> {
      protected Map<K, V> getMap() {
        return container;
      }
    
      @Override
      protected Collection<Entry<K, V>> actualContents() {
        return getMap().entrySet();
      }
    
      /** @see AbstractContainerTester#resetContainer() */
      protected final void resetMap() {
        resetContainer();
      }
    
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 7.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

        return ((TestMultimapGenerator<K, V, ? extends Multimap<K, V>>)
                getSubjectGenerator().getInnerGenerator())
            .sampleValues();
      }
    
      @Override
      protected Collection<Entry<K, V>> actualContents() {
        return multimap.entries();
      }
    
      // TODO: dispose of this once collection is encapsulated.
      @Override
      @CanIgnoreReturnValue
      protected M resetContainer(M newContents) {
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 6K bytes
    - Viewed (0)
  8. cmd/bucket-handlers_test.go

    		}
    
    		// read the response body.
    		actualContent, err = io.ReadAll(rec.Body)
    		if err != nil {
    			t.Fatalf("Test %d : MinIO %s: Failed parsing response body: <ERROR> %v", i, instanceType, err)
    		}
    
    		// Verify whether the bucket obtained object is same as the one created.
    		if testCase.expectedContent != nil && !bytes.Equal(testCase.expectedContent, actualContent) {
    Registered: 2024-11-03 19:28
    - Last Modified: 2024-06-10 15:50
    - 39.8K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    	if anonReq.Method != http.MethodHead {
    		// read the response body.
    		var actualContent []byte
    		actualContent, err = io.ReadAll(rec.Body)
    		if err != nil {
    			t.Fatal(failTestStr(anonTestStr, fmt.Sprintf("Failed parsing response body: <ERROR> %v", err)))
    		}
    
    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    Registered: 2024-11-03 19:28
    - Last Modified: 2024-10-01 22:13
    - 77K bytes
    - Viewed (0)
  10. cmd/object-handlers_test.go

    		}
    		// read the response body.
    		actualContent, err := io.ReadAll(rec.Body)
    		if err != nil {
    			t.Fatalf("Test %d: %s: Failed reading response body: <ERROR> %v", i+1, instanceType, err)
    		}
    
    		if rec.Code == http.StatusOK || rec.Code == http.StatusPartialContent {
    			if !bytes.Equal(testCase.expectedContent, actualContent) {
    Registered: 2024-11-03 19:28
    - Last Modified: 2024-09-12 20:10
    - 163.2K bytes
    - Viewed (0)
Back to top