Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 779 for test_0 (0.12 sec)

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

    import java.util.Map;
    import org.junit.Ignore;
    
    /**
     * Tester for {@link Map#remove(Object, Object)}. Can't be invoked directly; please see {@link
     * com.google.common.collect.testing.MapTestSuiteBuilder}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

        items.addAll(ImmutableList.copyOf(group));
        return this;
      }
    
      /** Run tests on equivalence methods, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
      public EquivalenceTester<T> test() {
        for (int run = 0; run < REPETITIONS; run++) {
          testItems();
          delegate.test();
        }
        return this;
      }
    
      private void testItems() {
        for (T item : items) {
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

        }
    
        /**
         * Tests the constructor of {@link TransTransactNamedPipeResponse}.
         */
        @Test
        void testConstructor() {
            // The constructor is called in setUp(), so we just verify the result.
            assertNotNull(response, "The response object should not be null.");
        }
    
        /**
         * Tests the writeSetupWireFormat method.
         */
        @Test
        void testWriteSetupWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

    import java.util.Collection;
    import java.util.List;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Creates collections containing unhashable sample elements, to be tested.
     *
     * @author Regina O'Dell
     */
    @GwtCompatible
    @NullMarked
    public abstract class TestUnhashableCollectionGenerator<T extends Collection<UnhashableObject>>
        implements TestCollectionGenerator<UnhashableObject> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        tester.ignore(LinkedListMultimap.class.getMethod("get", Object.class));
        tester.ignore(LinkedListMultimap.class.getMethod("removeAll", Object.class));
        tester.testAllPublicInstanceMethods(LinkedListMultimap.create());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestSortedMapGenerator.java

    import java.util.Map.Entry;
    import java.util.SortedMap;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Creates sorted maps, containing sample elements, to be tested.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullMarked
    public interface TestSortedMapGenerator<K extends @Nullable Object, V extends @Nullable Object>
        extends TestMapGenerator<K, V> {
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CollectPreconditions.java

      }
    
      static void checkPositive(int value, String name) {
        if (value <= 0) {
          throw new IllegalArgumentException(name + " must be positive but was: " + value);
        }
      }
    
      /**
       * Precondition tester for {@code Iterator.remove()} that throws an exception with a consistent
       * error message.
       */
      static void checkRemove(boolean canRemove) {
        checkState(canRemove, "no calls to next() since the last call to remove()");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            assertFalse(concreteResponse.isVerifyFailed());
    
            // Test exception handling
            assertNull(concreteResponse.getException());
            Exception testEx = new RuntimeException("Test");
            concreteResponse.exception(testEx);
            assertEquals(testEx, concreteResponse.getException());
    
            // Test expiration
            assertNull(concreteResponse.getExpiration());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashingTest.java

              func.hashString(input, UTF_8).toString());
        }
      }
    
      public void testNullPointers() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(byte[].class, "secret key".getBytes(UTF_8))
                .setDefault(HashCode.class, HashCode.fromLong(0));
        tester.testAllPublicStaticMethods(Hashing.class);
      }
    
      public void testSeedlessHashFunctionEquals() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (2)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java

    import org.junit.Ignore;
    
    /**
     * Tester for {@link Multimap#containsValue}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top