Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 177 for testbar (6.29 sec)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testMap_noSuchFile() throws IOException {
        // Setup
        File file = createTempFile();
        boolean deleted = file.delete();
        assertTrue(deleted);
    
        // Test
        assertThrows(FileNotFoundException.class, () -> Files.map(file));
      }
    
      public void testMap_readWrite() throws IOException {
        // Test data
        int size = 1024;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

    import com.google.common.collect.Lists;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.ArrayList;
    import java.util.List;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester for equals() and hashCode() methods of a class.
     *
     * <p>The simplest use case is:
     *
     * <pre>
     * new EqualsTester().addEqualityGroup(foo).testEquals();
     * </pre>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

                  .that(actual > 0)
                  .isTrue();
            }
          }
        }
      }
    
      public void testMax_noArgs() {
        try {
          SignedBytes.max();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testMax() {
        assertThat(SignedBytes.max(LEAST)).isEqualTo(LEAST);
        assertThat(SignedBytes.max(GREATEST)).isEqualTo(GREATEST);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/IntsTest.java

            .isEqualTo(3);
      }
    
      @GwtIncompatible
      public void testMax_noArgs() {
        try {
          Ints.max();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testMax() {
        assertThat(Ints.max(LEAST)).isEqualTo(LEAST);
        assertThat(Ints.max(GREATEST)).isEqualTo(GREATEST);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/JoinerTest.java

      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Joiner.class);
        tester.testInstanceMethods(Joiner.on(","), NullPointerTester.Visibility.PACKAGE);
        tester.testInstanceMethods(Joiner.on(",").skipNulls(), NullPointerTester.Visibility.PACKAGE);
        tester.testInstanceMethods(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/EquivalenceTester.java

    import com.google.common.collect.Lists;
    import com.google.common.testing.RelationshipTester.ItemReporter;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.List;
    
    /**
     * Tester for {@link Equivalence} relationships between groups of objects.
     *
     * <p>To use, create a new {@link EquivalenceTester} and add equivalence groups where each group
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapMakerTest.java

    @J2ktIncompatible // MapMaker
    public class MapMakerTest extends TestCase {
      @GwtIncompatible // NullPointerTester
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(new MapMaker());
      }
    
      @GwtIncompatible // threads
      static final class DelayingIdentityLoader<T> implements Function<T, T> {
        private final CountDownLatch delayLatch;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ObjectsTest.java

        assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Objects.class);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/archive/tar/format.go

    		// Do nothing.
    	case format.has(FormatGNU):
    		copy(b.toGNU().magic(), magicGNU)
    		copy(b.toGNU().version(), versionGNU)
    	case format.has(formatSTAR):
    		copy(b.toSTAR().magic(), magicUSTAR)
    		copy(b.toSTAR().version(), versionUSTAR)
    		copy(b.toSTAR().trailer(), trailerSTAR)
    	case format.has(FormatUSTAR | FormatPAX):
    		copy(b.toUSTAR().magic(), magicUSTAR)
    		copy(b.toUSTAR().version(), versionUSTAR)
    	default:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      protected final <T> void setDefault(Class<T> type, T value) {
        tester.setDefault(type, value);
      }
    
      /**
       * Sets two distinct values for {@code type}. These values can be used for both null pointer
       * testing and equals testing.
       *
       * @since 17.0
       */
      protected final <T> void setDistinctValues(Class<T> type, T value1, T value2) {
        tester.setDistinctValues(type, value1, value2);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
Back to top