Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for assertNotNull (0.28 sec)

  1. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

       * @param c the character to escape
       */
      public static void assertEscaping(CharEscaper escaper, String expected, char c) {
    
        String escaped = computeReplacement(escaper, c);
        Assert.assertNotNull(escaped);
        Assert.assertEquals(expected, escaped);
      }
    
      /**
       * Asserts that a Unicode escaper escapes the given code point into the expected string.
       *
       * @param escaper the non-null escaper to test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        try {
          hp = HostAndPort.fromString(hpString);
        } catch (IllegalArgumentException e) {
          // Make sure we expected this.
          assertNull(expectHost);
          return;
        }
        assertNotNull(expectHost);
    
        // Apply withDefaultPort(), yielding hp2.
        final boolean badDefaultPort = (defaultPort < 0 || defaultPort > 65535);
        HostAndPort hp2 = null;
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ResourcesTest.java

        assertThat(e).hasMessageThat().isEqualTo("resource no such resource not found.");
      }
    
      public void testGetResource() {
        assertNotNull(Resources.getResource("com/google/common/io/testdata/i18n.txt"));
      }
    
      public void testGetResource_relativePath_notFound() {
        IllegalArgumentException e =
            assertThrows(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  8. 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)
  9. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        } catch (RuntimeException e) {
          actualRuntimeException = e;
        }
    
        assertEquals(expectedResult, actualResult);
        if (expectedRuntimeException != null) {
          assertNotNull(actualRuntimeException);
          assertEquals(expectedRuntimeException.getClass(), actualRuntimeException.getClass());
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
Back to top