Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for assertNotNull (0.27 sec)

  1. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

            TreeMap.class);
      }
    
      public void testGet_misc() {
        assertNotNull(ArbitraryInstances.get(CharMatcher.class));
        assertNotNull(ArbitraryInstances.get(Currency.class).getCurrencyCode());
        assertNotNull(ArbitraryInstances.get(Locale.class));
        assertNotNull(ArbitraryInstances.get(Joiner.class).join(ImmutableList.of("a")));
        assertNotNull(ArbitraryInstances.get(Splitter.class).split("a,b"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertNotNull;
    import static junit.framework.Assert.assertNull;
    import static junit.framework.Assert.assertSame;
    
    import com.google.common.testing.TearDown;
    import java.lang.reflect.InvocationTargetException;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(1, builder.size);
        builder.add("a");
        assertEquals(1, builder.size);
        builder.add("b", "c", "d");
        assertEquals(4, builder.size);
        Object[] table = builder.hashTable;
        assertNotNull(table);
        assertSame(table, ((RegularImmutableSet<String>) builder.build()).table);
      }
    
      @GwtIncompatible("Builder impl")
      public void testPresizedBuilderForceCopy() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        assertNotNull(tester.instantiate(FactoryMethodDoesNotAcceptNull.class).name);
      }
    
      public void testInstantiate_constructorAcceptsNull() throws Exception {
        assertNull(tester.instantiate(ConstructorAcceptsNull.class).name);
      }
    
      public void testInstantiate_constructorDoesNotAcceptNull() throws Exception {
        assertNotNull(tester.instantiate(ConstructorDoesNotAcceptNull.class).name);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertNotNull;
    import static junit.framework.Assert.assertNull;
    import static junit.framework.Assert.assertSame;
    
    import com.google.common.testing.TearDown;
    import java.lang.reflect.InvocationTargetException;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

              }
            };
        AssertionFailedError actual = null;
        try {
          tester.test();
        } catch (AssertionFailedError e) {
          actual = e;
        }
        assertNotNull("verify() should be able to cause test failure", actual);
        assertTrue(
            "AssertionFailedError should have info about why test failed",
            actual.getCause().getMessage().contains(message));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                expected = range1;
              } else {
                expected = range1.span(range2);
              }
            }
    
            try {
              assertEquals(expected, rangeMap.span());
              assertNotNull(expected);
            } catch (NoSuchElementException e) {
              assertNull(expected);
            }
          }
        }
      }
    
      public void testAllRangesAlone() {
        for (Range<Integer> range : RANGES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        FreshValueGenerator generator = new FreshValueGenerator();
        // repeat a few times to make sure we don't stumble upon a bad Locale
        assertNotNull(generator.generateFresh(Currency.class));
        assertNotNull(generator.generateFresh(Currency.class));
        assertNotNull(generator.generateFresh(Currency.class));
      }
    
      public void testNulls() throws Exception {
        new ClassSanityTester()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 18.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheTesting.java

          // under high memory pressure keys/values may be nulled out but not yet enqueued
          assertThat(table.size()).isAtMost(segment.count);
          for (Entry<?, ?> entry : table.entrySet()) {
            assertNotNull(entry.getKey());
            assertNotNull(entry.getValue());
            assertSame(entry.getValue(), cchm.get(entry.getKey()));
          }
        }
        checkEviction(cchm);
        checkExpiration(cchm);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CharStreamsTest.java

        // Should wrap Appendable in a new object
        Appendable plainAppendable = new StringBuilder();
        Writer result = CharStreams.asWriter(plainAppendable);
        assertNotSame(plainAppendable, result);
        assertNotNull(result);
    
        // A Writer should not be wrapped
        Appendable secretlyAWriter = new StringWriter();
        result = CharStreams.asWriter(secretlyAWriter);
        assertSame(secretlyAWriter, result);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
Back to top