Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 275 for isEqualTo (0.07 sec)

  1. android/guava-tests/test/com/google/common/base/DefaultsTest.java

        assertEquals(0, Defaults.defaultValue(long.class).longValue());
        assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue());
        assertThat(Defaults.defaultValue(double.class).doubleValue()).isEqualTo(0.0d);
        assertNull(Defaults.defaultValue(void.class));
        assertNull(Defaults.defaultValue(String.class));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/VerifyTest.java

      }
    
      public void testVerify_simpleMessage_failure() {
        VerifyException expected = assertThrows(VerifyException.class, () -> verify(false, "message"));
        assertThat(expected).hasMessageThat().isEqualTo("message");
      }
    
      public void testVerify_complexMessage_success() {
        verify(true, "%s", IGNORE_ME);
      }
    
      public void testVerify_complexMessage_failure() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import kotlin.test.Test
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    
    /** Runs the web platform ToAscii tests. */
    class WebPlatformToAsciiTest {
      @Suppress("ktlint:standard:max-line-length")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/VerifyTest.java

      }
    
      public void testVerify_simpleMessage_failure() {
        VerifyException expected = assertThrows(VerifyException.class, () -> verify(false, "message"));
        assertThat(expected).hasMessageThat().isEqualTo("message");
      }
    
      public void testVerify_complexMessage_success() {
        verify(true, "%s", IGNORE_ME);
      }
    
      public void testVerify_complexMessage_failure() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        g2.addEdge(N1, N2, E12);
    
        assertThat(g1).isEqualTo(g2);
      }
    
      @Test
      public void equivalent_edgeDirectionsDiffer() {
        network.addEdge(N1, N2, E12);
    
        MutableNetwork<Integer, String> g2 = createNetwork(edgeType);
        g2.addEdge(N2, N1, E12);
    
        switch (edgeType) {
          case UNDIRECTED:
            assertThat(network).isEqualTo(g2);
            break;
          case DIRECTED:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        g2.addEdge(N1, N2, E12);
    
        assertThat(g1).isEqualTo(g2);
      }
    
      @Test
      public void equivalent_edgeDirectionsDiffer() {
        network.addEdge(N1, N2, E12);
    
        MutableNetwork<Integer, String> g2 = createNetwork(edgeType);
        g2.addEdge(N2, N1, E12);
    
        switch (edgeType) {
          case UNDIRECTED:
            assertThat(network).isEqualTo(g2);
            break;
          case DIRECTED:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testToByteArray() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(UTF_8));
      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

        assertThat(referenceQuantiles.keySet()).isEqualTo(indexes);
        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone());
          assertWithMessage("Wrong keys from " + algorithm).that(quantiles.keySet()).isEqualTo(indexes);
          for (int i : indexes) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

          throws InterruptedException, TimeoutException, ExecutionException {
        assertDone(future);
        assertThat(future.isCancelled()).isFalse();
    
        assertThat(getDone(future)).isEqualTo(expectedResult);
        assertThat(getDoneFromTimeoutOverload(future)).isEqualTo(expectedResult);
      }
    
      private static void assertFailed(AbstractFuture<Integer> future, Throwable expectedException)
          throws InterruptedException, TimeoutException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertThat(expected).hasMessageThat().isEqualTo("Mark not set");
      }
    
      public void testMarkNotSupported() {
        counter = new CountingInputStream(new UnmarkableInputStream());
    
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top