Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 990 for assert (0.03 sec)

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

        if (supportsIteratorRemove) {
          int initialSize = map.size();
          iterator.next();
          iterator.remove();
          assertEquals(initialSize - 1, map.size());
          // (We can't assert that the values collection no longer contains the
          // removed value, because the underlying map can have multiple mappings
          // to the same value.)
          assertInvariants(map);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SpnegoContextTest.java

            // Act: len==0 triggers initial token construction
            byte[] out = ctx.initSecContext(null, 0, 0);
    
            // Assert: returns a SPNEGO token (opaque here but non-null/non-empty)
            assertNotNull(out);
            assertTrue(out.length > 0);
    
            // Verify interactions: flags and an empty optimistic token are used
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/testing.md

    Crea funciones con un nombre que comience con `test_` (esta es la convención estándar de `pytest`).
    
    Usa el objeto `TestClient` de la misma manera que con `httpx`.
    
    Escribe declaraciones `assert` simples con las expresiones estándar de Python que necesites revisar (otra vez, estándar de `pytest`).
    
    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | Consejo
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import static java.nio.charset.StandardCharsets.UTF_16LE;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.Iterables;
    import com.google.common.hash.HashTestUtils.RandomHasherAction;
    import java.io.ByteArrayOutputStream;
    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/testing.md

    Crie funções com um nome que comece com `test_` (essa é a convenção padrão do `pytest`).
    
    Use o objeto `TestClient` da mesma forma que você faz com `httpx`.
    
    Escreva instruções `assert` simples com as expressões Python padrão que você precisa verificar (novamente, `pytest` padrão).
    
    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | Dica
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

    import static java.util.Arrays.asList;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Sets;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenReturn(ioResp);
    
            // Act
            int available = stream.available();
    
            // Assert
            assertEquals(7, available, "Should return available bytes reported by server");
    
            // Interactions: ensure open, use tree, send IOCTL and close resources
            InOrder inOrder = inOrder(handle, fd, tree);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

     * limitations under the License.
     */
    
    package com.google.common.eventbus;
    
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.CopyOnWriteArrayList;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

      private void assertMapsEqual(Map<?, ?> expected, Map<?, ?> map) {
        assertEquals(expected, map);
        assertEquals(expected.hashCode(), map.hashCode());
        assertEquals(expected.entrySet(), map.entrySet());
    
        // Assert that expectedValues > mapValues and that
        // mapValues > expectedValues; i.e. that expectedValues == mapValues.
        Collection<?> expectedValues = expected.values();
        Collection<?> mapValues = map.values();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

                readThreads[i] = new Thread(() -> {
                    for (int j = 0; j < 100; j++) {
                        List<DirectoryCacheEntry.FileInfo> children = entry.getChildren();
                        // Just read, don't assert specific counts due to race conditions
                        assertNotNull(children);
                    }
                });
                readThreads[i].start();
            }
    
            // Wait for all threads
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top