Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1331 - 1340 of 6,976 for class (0.05 sec)

  1. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        assertThat(e).hasCauseThat().isInstanceOf(InterruptedException.class);
      }
    
      public void testAwait_countDownLatch_interrupted() {
        Interruptenator interruptenator = new Interruptenator(Thread.currentThread());
        try {
          CountDownLatch latch = new CountDownLatch(1);
          RuntimeException expected =
              assertThrows(RuntimeException.class, () -> GcFinalization.await(latch));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceLocatorTest.java

     */
    @ExtendWith(MockitoExtension.class)
    public class SmbResourceLocatorTest {
    
        /**
         * A very small concrete implementation used only by the tests. It parses
         * the URL string and performs minimal validation โ€“ just enough to make the
         * happy-path expectations deterministic.
         */
        private static class DummySmbResourceLocator implements SmbResourceLocator {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/testing.md

    # ๐Ÿ”ฌ
    
    ๐Ÿ‘ <a href="https://www.starlette.io/testclient/" class="external-link" target="_blank">๐Ÿ’ƒ</a>, ๐Ÿ”ฌ **FastAPI** ๐Ÿˆธ โฉ &amp; ๐Ÿ˜Œ.
    
    โšซ๏ธ โš“๏ธ ๐Ÿ”› <a href="https://www.python-httpx.org" class="external-link" target="_blank">๐Ÿ‡ธ๐Ÿ‡ฒ</a>, โ” ๐Ÿ”„ ๐Ÿ— โš“๏ธ ๐Ÿ”› ๐Ÿ“จ, โšซ๏ธ ๐Ÿ“ถ ๐Ÿ˜ฐ &amp; ๐Ÿ‹๏ธ.
    
    โฎ๏ธ โšซ๏ธ, ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ <a href="https://docs.pytest.org/" class="external-link" target="_blank">โœณ</a> ๐Ÿ”— โฎ๏ธ **FastAPI**.
    
    ## โš™๏ธ `TestClient`
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                                .unwrap(SmbTransportInternal.class);
                        final SmbTransportInternal trans = this.exclusiveTransport;
                        try (SmbSessionInternal smbSession = trans.getSmbSession(this.ctx, host, targetDomain).unwrap(SmbSessionInternal.class);
                                SmbTreeImpl uct = smbSession.getSmbTree(share, null).unwrap(SmbTreeImpl.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/SIDTest.java

        @Test
        void testUnwrap() throws SmbException {
            SID sid = new SID(adminSidString);
            SID unwrapped = sid.unwrap(SID.class);
            assertNotNull(unwrapped);
            assertEquals(sid, unwrapped);
    
            assertThrows(ClassCastException.class, () -> sid.unwrap(String.class));
        }
    
        /**
         * Test the resolve method.
         *
         * @throws IOException if an I/O error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            FileEntry fe1 = mock(FileEntry.class);
            lenient().when(fe1.getName()).thenReturn("file1");
            lenient().when(fe1.getFileIndex()).thenReturn(1);
    
            FileEntry fe2 = mock(FileEntry.class);
            lenient().when(fe2.getName()).thenReturn("file2");
            when(fe2.getFileIndex()).thenReturn(2);
    
            FileEntry fe3 = mock(FileEntry.class);
            lenient().when(fe3.getName()).thenReturn("file3");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/misc/AssertionUtilTest.java

            exception.expect(ClIllegalStateException.class);
            exception.expectMessage(is("hogeใ ใ‹ใ‚‰ใงใ™ใ€‚"));
            assertState(false, "hogeใ ใ‹ใ‚‰ใงใ™ใ€‚");
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.misc.AssertionUtil#assertIndex(boolean, String)} .
         */
        @Test
        public void testAssertIndex() {
            exception.expect(ClIndexOutOfBoundsException.class);
            exception.expectMessage(is("hogeใ ใ‹ใ‚‰ใงใ™ใ€‚"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList.Builder<String> builder = ImmutableList.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
    
        assertThrows(NullPointerException.class, () -> builder.add((String[]) null));
    
        assertThrows(NullPointerException.class, () -> builder.add("a", null, "b"));
      }
    
      public void testBuilderAddAllHandlesNullsCorrectly() {
        {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      public void testOfNullKey() {
        assertThrows(NullPointerException.class, () -> ImmutableBiMap.of(null, 1));
    
        assertThrows(NullPointerException.class, () -> ImmutableBiMap.of("one", 1, null, 2));
      }
    
      public void testOfNullValue() {
        assertThrows(NullPointerException.class, () -> ImmutableBiMap.of("one", null));
    
        assertThrows(NullPointerException.class, () -> ImmutableBiMap.of("one", 1, "two", null));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Test class for SocketInputStream using JUnit 5 and Mockito.
     * Tests the NetBIOS session layer protocol implementation.
     */
    @ExtendWith(MockitoExtension.class)
    class SocketInputStreamTest {
    
        /**
         * Creates a NetBIOS session message header.
         * The header format is:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top