Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1171 - 1180 of 3,432 for NULL (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        void testNullDecryptionKey() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, null);
            }, "Should throw NullPointerException for null decryption key");
        }
    
        @Test
        @DisplayName("Should accept null dialect during construction")
        void testNullDialect() {
            // When/Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

                    Arguments.of(new byte[] { 0x0A, 0x0B }, new byte[] { 0x0A, 0x0B }, 100L, true),
                    // fid based equality (null fileId, same fid and tree id)
                    Arguments.of(null, null, 200L, true));
        }
    
        @ParameterizedTest(name = "equals/hashCode consistent for treeId={2}")
        @MethodSource("equalsHashParams")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

        }
    
        /**
         * Test null safety in comparisons
         */
        public void test_nullSafety() {
            CrawlerStatus status = CrawlerStatus.INITIALIZING;
            CrawlerStatus nullStatus = null;
    
            // Enum == null should be false
            assertFalse(status == nullStatus);
            assertFalse(status.equals(nullStatus));
    
            // null == Enum should be false
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            if (data == null) {
                throw new CIFSException("Data cannot be null");
            }
            return compress(data, 0, data.length, algorithm);
        }
    
        @Override
        public byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException {
            if (data == null) {
                throw new CIFSException("Data cannot be null");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MoreCollectors.java

       *
       * @throws IllegalArgumentException if the stream consists of two or more elements.
       * @throws NullPointerException if any element in the stream is {@code null}.
       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
       */
      @SuppressWarnings("unchecked")
      public static <T> Collector<T, ?, Optional<T>> toOptional() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

        void constructor_shouldHandleNullServerSuccessfully() throws IOException {
            // Arrange
            String server = null;
            int access = 123;
    
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = 0; // Simulate success
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java

            pathMappingHelper.setPathMappingList(sessionId, null);
            assertNull(pathMappingHelper.getPathMappingList(sessionId));
        }
    
        public void test_removePathMappingList_withNullSessionId() {
            pathMappingHelper.removePathMappingList(null);
        }
    
        public void test_getPathMappingList_withNullSessionId() {
            assertNull(pathMappingHelper.getPathMappingList(null));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                final SmbFileFilter ff) throws SmbException {
            try (CloseableIterator<SmbResource> it = doEnum(root, wildcard, searchAttributes,
                    fnf == null ? null : new ResourceNameFilterWrapper(fnf), ff == null ? null : new ResourceFilterWrapper(ff))) {
    
                final List<SmbFile> list = new ArrayList<>();
                while (it.hasNext()) {
                    try (SmbResource n = it.next()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

        }
    
        @Test
        @DisplayName("Test allowChain with null parameter")
        void testAllowChainWithNull() {
            // Given
            when(request.allowChain(null)).thenReturn(false);
    
            // When
            boolean result = request.allowChain(null);
    
            // Then
            assertFalse(result);
            verify(request, times(1)).allowChain(null);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          Path file = createFile();
          if (initialBytes != null) {
            java.nio.file.Files.write(file, initialBytes);
            return MoreFiles.asByteSink(file, StandardOpenOption.APPEND);
          }
          return MoreFiles.asByteSink(file);
        }
    
        @Override
        public byte[] getExpected(byte[] bytes) {
          if (initialBytes == null) {
            return checkNotNull(bytes);
          } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top