Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 825 for assertequal (0.12 sec)

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

        Set<Multiset.Entry<E>> expected = getMultiset().entrySet();
        assertEquals(expected, SerializableTester.reserialize(expected));
      }
    
      @CollectionFeature.Require(SERIALIZABLE_INCLUDING_VIEWS)
      public void testElementSetSerialization() {
        Set<E> expected = getMultiset().elementSet();
        assertEquals(expected, SerializableTester.reserialize(expected));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. .teamcity/src/test/kotlin/VersionedSettingsBranchTest.kt

    import common.VersionedSettingsBranch
    import org.junit.jupiter.api.Assertions
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Assertions.assertFalse
    import org.junit.jupiter.api.Assertions.assertNull
    import org.junit.jupiter.api.Assertions.assertTrue
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.CsvSource
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jan 31 07:59:58 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

            assertNotNull(TimeoutManager.getInstance().thread);
            Thread.sleep(2000);
            assertEquals(count, expiredCount);
            assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount());
            task.cancel();
            Thread.sleep(2000);
            assertEquals(0, TimeoutManager.getInstance().getTimeoutTaskCount());
            assertNull(TimeoutManager.getInstance().thread);
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertFalse(table.containsValue(null));
      }
    
      public void testGet() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals((Character) 'a', table.get("foo", 1));
        assertEquals((Character) 'b', table.get("bar", 1));
        assertEquals((Character) 'c', table.get("foo", 3));
        assertNull(table.get("foo", 2));
        assertNull(table.get("bar", 3));
        assertNull(table.get("cat", 1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTester.java

      public void testIsEmpty() throws IOException {
        assertEquals(expected.length == 0, source.isEmpty());
      }
    
      public void testSize() throws IOException {
        assertEquals(expected.length, source.size());
      }
    
      public void testSizeIfKnown() throws IOException {
        Optional<Long> sizeIfKnown = source.sizeIfKnown();
        if (sizeIfKnown.isPresent()) {
          assertEquals(expected.length, (long) sizeIfKnown.get());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        Multimap<String, Integer> filtered = filterValues(keyFiltered, VALUE_PREDICATE);
        assertEquals(1, filtered.size());
        assertTrue(filtered.containsEntry("foo", 1));
        assertTrue(filtered.keySet().retainAll(asList("cat", "dog")));
        assertEquals(0, filtered.size());
      }
    
      // TODO(jlevy): Many more tests needed.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        assertEquals("Foo", new ClassInfo(FILE, "Foo.class", classLoader).getSimpleName());
        assertEquals("Foo", new ClassInfo(FILE, "a/b/Foo.class", classLoader).getSimpleName());
        assertEquals("Foo", new ClassInfo(FILE, "a/b/Bar$Foo.class", classLoader).getSimpleName());
        assertEquals("", new ClassInfo(FILE, "a/b/Bar$1.class", classLoader).getSimpleName());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

    import org.apache.maven.session.scope.internal.SessionScope;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    
    /**
     */
    @Deprecated
    class ArtifactDeployerTest extends AbstractArtifactComponentTestCase {
        @Inject
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

          assertEquals(method, lastMethodCalled);
          assertEquals(delay, lastDelay);
          assertEquals(unit, lastUnit);
        }
    
        void assertLastMethodCalled(String method, long initialDelay, long delay, TimeUnit unit) {
          assertEquals(method, lastMethodCalled);
          assertEquals(initialDelay, lastInitialDelay);
          assertEquals(delay, lastDelay);
          assertEquals(unit, lastUnit);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top