Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 106 for testConstructors (0.13 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/MsrpcEnumerateAliasesInDomainTest.java

        }
    
        /**
         * Test method for
         * {@link MsrpcEnumerateAliasesInDomain#MsrpcEnumerateAliasesInDomain(SamrDomainHandle, int, SamrSamArray)}.
         */
        @Test
        void testConstructor() {
            // Given
            int acctFlags = 1;
    
            // When
            MsrpcEnumerateAliasesInDomain request = new MsrpcEnumerateAliasesInDomain(mockDomainHandle, acctFlags, mockSamArray);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

            assertEquals(expected, NbtException.getErrorString(unknownClass, 0));
        }
    
        @Test
        @DisplayName("Constructor sets fields and message correctly")
        void testConstructor() {
            NbtException e = new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
            assertEquals(NbtException.ERR_SSN_SRVC, e.errorClass);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

        @BeforeEach
        void setUp() {
            trans2SetFileInformation = new Trans2SetFileInformation(fid, attributes, createTime, lastWriteTime);
        }
    
        @Test
        void testConstructor() {
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2SetFileInformation.command);
            assertEquals(Trans2SetFileInformation.TRANS2_SET_FILE_INFORMATION, trans2SetFileInformation.subCommand);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java

        }
    
        /**
         * Test case for the {@link MsrpcLsarClose#MsrpcLsarClose(policy_handle)} constructor.
         * Verifies that the handle, ptype, and flags are correctly initialized.
         */
        @Test
        void testConstructor() {
            // Create an instance of MsrpcLsarClose with the mock handle
            MsrpcLsarClose lsarClose = new MsrpcLsarClose(mockHandle);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorJavaTest.java

    package okhttp3.zstd;
    
    import okhttp3.CompressionInterceptor;
    import okhttp3.Gzip;
    import okhttp3.brotli.Brotli;
    import org.junit.jupiter.api.Test;
    
    class ZstdInterceptorJavaTest {
      @Test
      public void testConstructor() {
        CompressionInterceptor interceptor = new CompressionInterceptor(
          Zstd.INSTANCE,
          Gzip.INSTANCE,
          Brotli.INSTANCE
        );
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 969 bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java

     */
    class MsrpcDfsRootEnumTest {
    
        /**
         * Test the constructor of MsrpcDfsRootEnum.
         * Verifies that the object is initialized with the correct default values.
         */
        @Test
        void testConstructor() {
            // Given
            String serverName = "test-server";
    
            // When
            MsrpcDfsRootEnum dfsRootEnum = new MsrpcDfsRootEnum(serverName);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Test class for SmbComTreeDisconnect.
     */
    class SmbComTreeDisconnectTest {
    
        /**
         * Test the constructor of SmbComTreeDisconnect.
         */
        @Test
        void testConstructor() {
            // When
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacGroupTest.java

            pacGroup = new PacGroup(mockSid, attributes);
        }
    
        /**
         * Test method for {@link jcifs.pac.PacGroup#PacGroup(jcifs.smb.SID, int)}.
         */
        @Test
        void testConstructor() {
            // Verify that the constructor correctly sets the id and attributes
            assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

        private SmbComDelete smbComDelete;
    
        @BeforeEach
        public void setUp() {
            smbComDelete = new SmbComDelete(TEST_FILE_NAME);
        }
    
        @Test
        public void testConstructor() {
            // Test if the constructor sets the file name and command correctly
            assertEquals(TEST_FILE_NAME, smbComDelete.path);
            assertEquals(ServerMessageBlock.SMB_COM_DELETE, smbComDelete.command);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            // Define behavior for the OEM encoding, which is used by writeString
            when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name());
        }
    
        @Test
        void testConstructor() {
            // Test that the constructor correctly sets the command and path
            String directoryName = "testDir";
            SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top