Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 251 for Edge (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Then
                assertEquals(4, read1);
                assertEquals(4, read2);
            }
        }
    
        @Nested
        @DisplayName("Edge case tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle maximum buffer index")
            void testMaxBufferIndex() throws SMBProtocolDecodingException {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

                assertTrue(afterRead.contains("pathConsumed="));
                assertTrue(afterRead.contains("numReferrals="));
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Handling")
        class EdgeCasesTests {
    
            @Test
            @DisplayName("Should handle malformed buffer gracefully")
            void testReadDataWireFormatMalformedBuffer() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SIDTest.java

                // Invalid unwrap
                assertThrows(ClassCastException.class, () -> sid.unwrap(String.class));
            }
    
            @Test
            @DisplayName("isEmpty and isBlank edge cases")
            void testEmptyAndBlank() throws Exception {
                // No subauthorities
                SID s1 = new SID("S-1-5");
                assertTrue(s1.isEmpty());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                    assertNotNull(context);
                    assertTrue(context.getContextType() > 0);
                }
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Handling")
        class EdgeCasesTest {
    
            @Test
            @DisplayName("Should handle maximum size arrays")
            void testMaximumSizeArrays() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            assertEquals(type1, type2);
    
            Map<String, Object> source1 = event.toSource();
            Map<String, Object> source2 = event.toSource();
            assertSame(source1, source2);
        }
    
        // Test edge cases for version numbers
        public void test_versionNumberEdgeCases() {
            TestSearchLogEvent event = new TestSearchLogEvent("id", 0L, "type");
    
            // Test minimum value
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

                        ExceptionWithGoodAndBadConstructor.class,
                        1,
                        SECONDS));
        assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION);
      }
    
      // Edge case tests of the exception-construction code through untimed get():
    
      @SuppressWarnings("FuturesGetCheckedIllegalExceptionType")
      public void testGetCheckedUntimed_exceptionClassIsRuntimeException() {
        assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.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
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/util/SMBUtilTest.java

                assertEquals((time / 1000L) * 1000L, readTime);
            }
        }
    
        @Test
        void testBoundaryConditions() {
            byte[] buffer = new byte[16];
    
            // Test edge of array
            SMBUtil.writeInt2(0xFFFF, buffer, 14);
            assertEquals(0xFFFF, SMBUtil.readInt2(buffer, 14));
    
            // Test different offsets
            for (int offset = 0; offset <= 8; offset++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            assertEquals(SmbComTransaction.TRANS_PEEK_NAMED_PIPE, transPeekNamedPipe.getSubCommand());
        }
    
        @Test
        @DisplayName("Should handle edge case with zero FID")
        void testZeroFid() {
            // Arrange
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, 0);
            byte[] buffer = new byte[10];
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbSessionTest.java

                assertNull(mockSession.getContext()); // Default mock behavior
                assertNull(mockSession.unwrap(SmbSession.class)); // Default mock behavior
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTest {
    
            @Test
            @DisplayName("Should handle repeated method calls consistently")
            void shouldHandleRepeatedMethodCallsConsistently() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top