Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 4,154 for inst (0.03 seconds)

  1. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

        void testWriteSetupWireFormatWithVariousFids(int fid, byte expectedLow, byte expectedHigh) {
            // Arrange
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, fid);
            byte[] buffer = new byte[10];
            int offset = 0;
    
            // Act
            int bytesWritten = transPeekNamedPipe.writeSetupWireFormat(buffer, offset);
    
            // Assert
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbNamedPipeTest.java

        }
    
        @ParameterizedTest
        @DisplayName("getPipeType echoes constructor input (edge values)")
        @ValueSource(ints = { 0, SmbPipeResource.PIPE_TYPE_RDONLY, SmbPipeResource.PIPE_TYPE_WRONLY, SmbPipeResource.PIPE_TYPE_DCE_TRANSACT })
        void getPipeTypeEchoesInput(int pipeType) throws Exception {
            // Arrange & Act
            SmbNamedPipe pipe = new SmbNamedPipe("smb://server/IPC$/foo", pipeType, ctx());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

        }
    
        @ParameterizedTest
        @ValueSource(ints = { FileSystemInformation.SMB_INFO_ALLOCATION, FileSystemInformation.FS_SIZE_INFO,
                FileSystemInformation.FS_FULL_SIZE_INFO })
        void testConstructorWithDifferentInformationLevels(int informationLevel) {
            // Test constructor with different information levels
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            private byte[] data;
            private int decodeCallCount = 0;
            private boolean throwOnDecode = false;
    
            public TestCreateContextResponse(byte[] name) {
                this.name = name;
            }
    
            @Override
            public byte[] getName() {
                return name;
            }
    
            @Override
            public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

        }
    
        /**
         * Constant-time array copy to prevent timing attacks
         */
        private void constantTimeCopy(byte[] src, int srcPos, byte[] dest, int destPos, int length) {
            // Simple constant-time copy - always process all bytes
            for (int i = 0; i < length; i++) {
                dest[destPos + i] = src[srcPos + i];
            }
        }
    
        /**
         * Decrypt an SMB2 message
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

        }
    
        @ParameterizedTest
        @ValueSource(ints = { NtlmFlags.NTLMSSP_NEGOTIATE_UNICODE, NtlmFlags.NTLMSSP_NEGOTIATE_OEM, NtlmFlags.NTLMSSP_NEGOTIATE_NTLM,
                NtlmFlags.NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED, NtlmFlags.NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED })
        @DisplayName("Should handle various NTLM flags")
        void testVariousNTLMFlags(int flag) {
            // When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/it/CrudTestBase.java

            RestAssured.baseURI = getFessUrl();
            settingTestToken();
        }
    
        @BeforeEach
        protected void init() {
        }
    
        @AfterEach
        protected void tearDown() {
            final Map<String, Object> searchBody = createSearchBody(SEARCH_ALL_NUM);
            int count = 0;
            List<String> idList = getIdList(searchBody);
            while (idList.size() > 0 && count < NUM) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 21 13:29:45 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            buffer[6] = 0;
            buffer[7] = 0;
    
            return buffer;
        }
    
        private byte[] createDfsReferralBufferWithMultipleReferrals(int numReferrals) {
            // Each referral structure needs 20 bytes, plus string data
            int referralSize = 20;
            int referralsDataSize = numReferrals * referralSize;
    
            // Add space for string data for each referral
            String testPath = "\\server\\share";
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  10. internal/logger/target/kafka/kafka.go

    	// store to persist and replay the logs to the target
    	// to avoid missing events when the target is down.
    	store          store.Store[any]
    	storeCtxCancel context.CancelFunc
    
    	initKafkaOnce      once.Init
    	initQueueStoreOnce once.Init
    
    	client   sarama.Client
    	producer sarama.SyncProducer
    	kconfig  Config
    	config   *sarama.Config
    }
    
    func (h *Target) validate() error {
    	if len(h.kconfig.Brokers) == 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top