Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 685 for Insert (0.03 sec)

  1. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            SMBProtocolDecodingException ex = new SMBProtocolDecodingException();
    
            // Assert state
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
            assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype");
    
            // Assert throwing/catching behavior with assertThrows
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Act
            LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, server, access);
    
            // Assert
            assertNotNull(handle);
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
            // We cannot directly assert the 'opened' field as it's private, but successful construction implies it.
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

    import static com.google.common.escape.testing.EscaperAsserts.assertUnescaped;
    import static com.google.common.escape.testing.EscaperAsserts.assertUnicodeEscaping;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.escape.UnicodeEscaper;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            // Act
            URLConnection conn = handler.openConnection(url);
    
            // Assert
            assertNotNull(conn);
            assertTrue(conn instanceof SmbFile);
        }
    
        @Test
        @DisplayName("openConnection throws NPE for null URL")
        void testOpenConnectionWithNullUrl() {
            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

        @Test
        void returnsProvidedValues_happyPath() {
            // Arrange
            SmbBasicFileInfo info = new TestInfo(0x20 /* ARCHIVE */, 1_600_000_000_000L, 1_700_000_000_000L, 1_650_000_000_000L, 42L);
    
            // Act & Assert
            Assertions.assertEquals(0x20, info.getAttributes(), "attributes should match");
            Assertions.assertEquals(1_600_000_000_000L, info.getCreateTime(), "create time should match");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

         */
        @Test
        void defaultConstructorSetsMessageAndStatus() {
            // Arrange & Act
            SmbEndOfFileException ex = new SmbEndOfFileException();
    
            // Assert
            assertEquals("Unexpectedly reached end of file", ex.getMessage(), "Default message must match");
            assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Default NT status should be UNSUCCESSFUL");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            List<FileEntry[]> pages = List.of(new FileEntry[][] { new FileEntry[] {} });
    
            // Act
            TestIterator it = TestIterator.create(tree, parent, wildcard, null, attrs, initial, pages);
    
            // Assert
            assertSame(tree, it.getTreeHandle(), "tree handle should be same instance returned by acquire");
            assertEquals(attrs, it.getSearchAttributes());
            assertEquals(wildcard, it.getWildcard());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class));
    
            // Act
            SamrDomainHandle handle = new SamrDomainHandle(mockDcerpcHandle, mockPolicyHandle, access, mockSid);
    
            // Assert
            assertNotNull(handle);
            // Verify sendrecv was called once with the correct RPC message
            verify(mockDcerpcHandle, times(1)).sendrecv(openDomainCaptor.capture());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. tests/joins_test.go

    	for i := 0; i < 21; i++ {
    		user := &User{Name: fmt.Sprintf("User%d", i), ManagerID: &manager.ID}
    		DB.Create(user)
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var entries []User
    	assert.NotPanics(t, func() {
    		assert.NoError(t,
    			DB.Preload("Manager.Team").
    				Joins("Manager.Company").
    				Find(&entries).Error)
    	})
    }
    
    func TestJoinsPreload_Issue7013_RelationEmpty(t *testing.T) {
    	type (
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 15K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            // Arrange: create an implementation instance
            SmbRenewableCredentials impl = supplier.get();
    
            // Act: call renew
            CredentialsInternal renewed = impl.renew();
    
            // Assert: verify behavior based on scenario
            if (expectSame) {
                assertSame(impl, renewed, "renew() should return the same instance");
            } else if (expectNew) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top