Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1181 - 1190 of 1,270 for cases (0.02 sec)

  1. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            if (expectEqual) {
                assertEquals(hA, hB);
                assertEquals(hA.hashCode(), hB.hashCode());
            } else {
                assertNotEquals(hA, hB);
            }
    
            // Test negative case with different tree id handles
            SmbTreeHandleImpl tC = mock(SmbTreeHandleImpl.class);
            lenient().when(tC.acquire()).thenReturn(tC);
            lenient().when(tC.getTreeId()).thenReturn(treeId + 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameQueryResponseTest.java

        }
    
        @Test
        void toString_shouldReturnExpectedFormat_withNullAddrEntry() throws NoSuchFieldException, IllegalAccessException {
            // Set 'addrEntry' field to null for this test case
            Field addrEntryField = NameServicePacket.class.getDeclaredField("addrEntry");
            addrEntryField.setAccessible(true);
            addrEntryField.set(nameQueryResponse, null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertArrayEquals(name.getBytes(StandardCharsets.UTF_8), mock.getName());
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle large buffer decoding")
            void testLargeBufferDecode() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

    import junit.framework.AssertionFailedError;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tester that runs automated sanity tests for any given class. A typical use case is to test static
     * factory classes like:
     *
     * <pre>
     * interface Book {...}
     * public class Books {
     *   public static Book hardcover(String title) {...}
     *   public static Book paperback(String title) {...}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/config/BaseConfiguration.java

         */
        protected final int initChannelBindingPolicy(String policy) {
            if (policy == null)
                return 1; // preferred
            switch (policy.toLowerCase()) {
            case "disabled":
                return 0;
            case "required":
                return 2;
            default:
                return 1; // preferred
            }
        }
    
        @Override
        public boolean isUseDirectoryLeasing() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SID.java

         * resolved. However, if a SID is constructed explicitly using a SID
         * constructor, JCIFS will have no knowledge of the server that created the
         * SID and therefore cannot possibly resolve it automatically. In this case,
         * this method will be necessary.
         *
         * @param authorityServerName
         *            The FQDN of the server that is an authority for the SID.
         * @param tc
         *            Context to use
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                String result = notification.toString();
                assertTrue(result.contains("oplockLevel=" + oplockLevel));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle minimum valid buffer size")
            void testMinimumBufferSize() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertTrue(bulkLine.contains("reading2"));
        }
    
        @Test(expected = SuggesterException.class)
        public void testCreateBulkLineWithNullItem() {
            // Test that null item causes exception
            SuggestUtil.createBulkLine("test_index", "_doc", null);
        }
    
        @Test
        public void testCreateDefaultReadingConverter() {
            // Test creating default reading converter
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        )
    
        taskFaker.advanceUntil(800.ms)
        assertEvents(
          "plan 3 TCP connect canceled",
        )
    
        taskFaker.assertNoMoreTasks()
      }
    
      /**
       * This test causes two connections to become available simultaneously, one from a TCP connect and
       * one from the pool. We must take the pooled connection because by taking it from the pool, we've
       * fully acquired it.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            byte[] copiedFileId = new byte[16];
            System.arraycopy(buffer, 8, copiedFileId, 0, 16);
            assertArrayEquals(newFileId, copiedFileId);
        }
    
        @Test
        @DisplayName("Test edge case with minimum buffer size")
        void testMinimumBufferSize() {
            byte[] buffer = new byte[24]; // Exact size needed
    
            int written = request.writeBytesWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top