Search Options

Results per page
Sort
Preferred Languages
Advance

Results 561 - 570 of 880 for assertEquals (0.1 sec)

  1. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertEquals(multimap, copy);
      }
    
      public void testCreate() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create();
        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromSizes() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(15, 20);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/MediaTypeGetTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import kotlin.test.assertEquals
    import kotlin.test.assertFailsWith
    import okhttp3.MediaType.Companion.toMediaType
    
    open class MediaTypeGetTest : MediaTypeTest() {
      override fun parse(string: String): MediaType = string.toMediaType()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java

        // Non-null array of zero length.
        assertEquals(0, fem.getReplacementArray().length);
      }
    
      public void testMapLength() {
        Map<Character, String> map =
            ImmutableMap.of(
                'a', "first",
                'z', "last");
        ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map);
        // Array length is highest character value + 1
        assertEquals('z' + 1, fem.getReplacementArray().length);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    @PlexusTest
    @Deprecated
    class TransformationManagerTest {
        @Inject
        ArtifactTransformationManager tm;
    
        @Test
        void testTransformationManager() {
            List<ArtifactTransformation> tms = tm.getArtifactTransformations();
    
            assertEquals(3, tms.size());
    
            assertTrue(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t11/ProjectInheritanceTest.java

    import org.apache.maven.project.MavenProject;
    import org.apache.maven.project.inheritance.AbstractProjectInheritanceTestCase;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    /**
     * Verifies scope of root project is preserved regardless of parent dependency management.
     *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testEntrySetIteratorRemove() {
        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      public void testContainsEntryWithIncomparableKey() {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testEntrySetIteratorRemove() {
        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      public void testContainsEntryWithIncomparableKey() {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        presentKeyNullValueEntry = entry(k0(), null);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPut_supportedPresent() {
        assertEquals("put(present, value) should return the old value", v0(), getMap().put(k0(), v3()));
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPut_supportedNotPresent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

                immutableCell("one", "uno", 2));
      }
    
      public void testBuilder() {
        ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>();
        assertEquals(ImmutableTable.of(), builder.build());
        assertEquals(ImmutableTable.of('a', 1, "foo"), builder.put('a', 1, "foo").build());
        Table<Character, Integer, String> expectedTable = HashBasedTable.create();
        expectedTable.put('a', 1, "foo");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top