Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 124 for getPtype (0.07 sec)

  1. src/test/java/jcifs/MsrpcGetMembersInAliasTest.java

            assertEquals(mockSids, msrpcGetMembersInAlias.sids, "sids should be set correctly");
            assertEquals(0, msrpcGetMembersInAlias.getPtype(), "ptype should be initialized to 0");
            assertEquals(DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG, msrpcGetMembersInAlias.getFlags(),
                    "flags should be set to DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java

            assertEquals(mockHandle, lsarClose.handle, "The handle should be initialized correctly.");
    
            // Verify that the ptype is set to 0
            assertEquals(0, lsarClose.getPtype(), "The ptype should be set to 0.");
    
            // Verify that the flags are set to the combination of DCERPC_FIRST_FRAG and DCERPC_LAST_FRAG
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcMessage.java

        /**
         * The result code of the DCERPC operation
         */
        protected int result = 0;
    
        /**
         * Gets the packet type of this DCERPC message
         * @return the packet type
         */
        public int getPtype() {
            return ptype;
        }
    
        /**
         * Gets the flags of this DCERPC message
         * @return the message flags
         */
        public int getFlags() {
            return flags;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

            // We can verify the state of the object after construction.
    
            // Verify ptype and flags are set correctly
            assertEquals(0, policy.getPtype(), "ptype should be 0");
            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, policy.getFlags(),
                    "flags should be DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                // Then
                assertNotNull(bindWithParams, "Constructor should create instance");
                assertEquals(0, bindWithParams.getOpnum(), "Opnum should be 0");
                assertEquals(11, bindWithParams.getPtype(), "Ptype should be 11 for bind message");
                assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, bindWithParams.getFlags(),
                        "Flags should be set for first and last fragment");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

        }
    
        @Test
        void testConstructor() {
            // Verify constructor properly initializes the object
            assertNotNull(msrpcShareGetInfo);
            assertEquals(0, msrpcShareGetInfo.getPtype());
            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, msrpcShareGetInfo.getFlags());
    
            // Verify parent class initialization
            assertNotNull(msrpcShareGetInfo.info);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

        @Nested
        @DisplayName("Getter Tests")
        class GetterTests {
    
            @Test
            @DisplayName("getPtype should return correct packet type")
            void testGetPtype() {
                message.ptype = DcerpcConstants.RPC_PT_REQUEST;
                assertEquals(DcerpcConstants.RPC_PT_REQUEST, message.getPtype());
            }
    
            @Test
            @DisplayName("getFlags should return correct flags")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

        void testConstructor_NonWorkgroupType_ThrowsException() throws Exception {
            // Given: A non-workgroup type with a host
            when(locator.getType()).thenReturn(SmbConstants.TYPE_SERVER);
            when(locator.getURL()).thenReturn(createSmbURL("smb://server/"));
    
            // When & Then: Constructor should throw SmbException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        void testGetTypeWithDifferentShareTypes(int inputType, int expectedType) {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, inputType, TEST_REMARK);
            assertEquals(expectedType, info.getType());
        }
    
        @Test
        @DisplayName("Test getType with hidden flag")
        void testGetTypeWithHiddenFlag() {
            // Hidden flag (0x80000000) should be masked out
            int hiddenPrinterType = 0x80000001; // Hidden printer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/FileEntryTest.java

        static Stream<Arguments> intGetterProvider() {
            return Stream.of(Arguments.of((IntGetter) FileEntry::getType, -1, "negative type"),
                    Arguments.of((IntGetter) FileEntry::getType, 0, "zero type"),
                    Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"),
    
                    Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top