Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 448 for 1L (0.01 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            void testNegativeOffset() {
                request.setOffset(-1L);
                request.setData(new byte[10], 0, 10);
    
                byte[] buffer = new byte[256];
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                // Negative value should be written as-is (interpreted as unsigned by receiver)
                assertEquals(-1L, SMBUtil.readInt8(buffer, 8));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                ByteBuffer buffer = ByteBuffer.allocate(32);
                buffer.order(ByteOrder.LITTLE_ENDIAN);
                buffer.putLong(-1L);
                buffer.putLong(-1L);
                buffer.putLong(-1L);
                buffer.putInt(-1);
                buffer.putInt(-1);
                byte[] bufferArray = buffer.array();
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            .Builder()
            .request(chain.request())
            .protocol(Protocol.HTTP_1_1)
            .code(HTTP_GATEWAY_TIMEOUT)
            .message("Unsatisfiable Request (only-if-cached)")
            .sentRequestAtMillis(-1L)
            .receivedResponseAtMillis(System.currentTimeMillis())
            .build()
            .also {
              listener.satisfactionFailure(call, it)
            }
        }
    
        // If we don't need the network, we're done.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            long[][] timeValues = { { 0L, 0L, 0L, 0L }, // All zeros
                    { Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE }, // Max values
                    { 1L, 2L, 3L, 4L }, // Small values
                    { -1L, -2L, -3L, -4L } // Negative values (though unusual for file times)
            };
    
            for (long[] times : timeValues) {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            }
    
            @Test
            @DisplayName("Should encode negative values as unsigned")
            void testEncodeNegativeValues() {
                // Given
                long negativeOffset = -1L;
                int negativeLength = -1;
                SrvCopychunk chunk = new SrvCopychunk(negativeOffset, negativeOffset, negativeLength);
    
                // When
                int bytesWritten = chunk.encode(buffer, startIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/InputValidatorTest.java

            assertDoesNotThrow(() -> InputValidator.validateSmb2BufferSize(InputValidator.MAX_SMB2_BUFFER_SIZE, "test"));
    
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateSmb2BufferSize(-1L, "test"));
            assertThrows(IllegalArgumentException.class,
                    () -> InputValidator.validateSmb2BufferSize(InputValidator.MAX_SMB2_BUFFER_SIZE + 1, "test"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        @Test
        @DisplayName("Test setSessionId with boundary values")
        void testSetSessionIdWithBoundaryValues() {
            // Test with various session ID values
            long[] sessionIds = { 0L, 1L, Long.MAX_VALUE, Long.MIN_VALUE, -1L };
    
            for (long sessionId : sessionIds) {
                doNothing().when(messageBlock).setSessionId(sessionId);
                messageBlock.setSessionId(sessionId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            }
        }
    
        /**
         * Simple test rule implementation
         */
        public static class TestRule implements Rule {
            private static final long serialVersionUID = 1L;
            private final String ruleId;
            private final boolean matchResult;
            private final ResponseProcessor responseProcessor;
    
            public TestRule(String ruleId, boolean matchResult) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

        /**
         * Concrete implementation of AbstractRule for testing
         */
        public static class TestAbstractRule extends AbstractRule {
            private static final long serialVersionUID = 1L;
    
            private boolean matchResult = true;
            private int matchCallCount = 0;
            private ResponseData lastResponseData = null;
    
            @Override
            public boolean match(ResponseData responseData) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        }
        assertCastFails(GREATEST + 1L);
        assertCastFails(LEAST - 1L);
        assertCastFails(Long.MAX_VALUE);
        assertCastFails(Long.MIN_VALUE);
      }
    
      public void testSaturatedCast() {
        for (int value : VALUES) {
          assertThat(Ints.saturatedCast((long) value)).isEqualTo(value);
        }
        assertThat(Ints.saturatedCast(GREATEST + 1L)).isEqualTo(GREATEST);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
Back to top