Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,008 for new (0.01 sec)

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

            // Test various file ID sizes
            byte[] shortFileId = new byte[8];
            byte[] standardFileId = new byte[16];
            byte[] longFileId = new byte[32];
    
            new SecureRandom().nextBytes(shortFileId);
            new SecureRandom().nextBytes(standardFileId);
            new SecureRandom().nextBytes(longFileId);
    
            RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            List<AvPair> originalPairs = new LinkedList<>();
            originalPairs.add(new AvFlags(0x12345678));
            originalPairs.add(new AvTimestamp(new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }));
            originalPairs.add(new AvTargetName("TESTNAME".getBytes()));
            originalPairs.add(new AvSingleHost(new byte[] { 0x11, 0x22, 0x33, 0x44 }));
            originalPairs.add(new AvChannelBindings(new byte[] { 0x55, 0x66 }));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/ByteEncodableTest.java

            // Verify content
            assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset");
        }
    
        @Test
        void testEncodeWithOffset() {
            // Test encoding with a destination offset
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
            ByteEncodable encodable = new ByteEncodable(data, 0, 3);
            byte[] dest = new byte[5]; // {0,0,0,0,0}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            byte[] originalBuffer = new byte[8];
            SMBUtil.writeInt8(expectedIndexNumber, originalBuffer, 0);
    
            // Decode into first instance
            FileInternalInfo firstInstance = new FileInternalInfo();
            firstInstance.decode(originalBuffer, 0, originalBuffer.length);
    
            // Encode from first instance
            byte[] encodedBuffer = new byte[8];
            firstInstance.encode(encodedBuffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            testFileId = new byte[16];
            new SecureRandom().nextBytes(testFileId);
            outputBuffer = new byte[4096];
            request = new Smb2ReadRequest(mockConfig, testFileId, outputBuffer, 0);
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

        }
    
        @Test
        void testEquals() {
            ToolchainModel tm1 = new ToolchainModel();
            tm1.setType("jdk");
            tm1.addProvide("version", "1.5");
            tm1.addProvide("vendor", "sun");
            Xpp3Dom configuration1 = new Xpp3Dom("configuration");
            Xpp3Dom jdkHome1 = new Xpp3Dom("jdkHome");
            jdkHome1.setValue("${env.JAVA_HOME}");
            configuration1.addChild(jdkHome1);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            TransportException noCauseException = new TransportException("No cause");
            assertNull(noCauseException.getRootCause());
            assertEquals(noCauseException.getCause(), noCauseException.getRootCause());
    
            // Test with cause
            IOException rootCause = new IOException("IO error");
            TransportException withCauseException = new TransportException("With cause", rootCause);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacMacTest.java

            Map<Integer, KerberosKey> keys = new HashMap<>();
            KerberosKey hmacKey = new KerberosKey(TEST_PRINCIPAL, new byte[16], PacSignature.ETYPE_ARCFOUR_HMAC, 0);
            KerberosKey aes128Key = new KerberosKey(TEST_PRINCIPAL, new byte[16], PacSignature.ETYPE_AES128_CTS_HMAC_SHA1_96, 0);
            KerberosKey aes256Key = new KerberosKey(TEST_PRINCIPAL, new byte[32], PacSignature.ETYPE_AES256_CTS_HMAC_SHA1_96, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            netServerEnum2 = new NetServerEnum2(realConfig, domain, serverTypes);
    
            netServerEnum2.reset(1, null);
    
            assertNull(getFieldValue(netServerEnum2, "lastName"));
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns 0")
        void testWriteSetupWireFormat() {
            netServerEnum2 = new NetServerEnum2(realConfig, "DOMAIN", NetServerEnum2.SV_TYPE_ALL);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                props.setProperty("jcifs.smb.client.soTimeout", "35000");
    
                // Create a new configuration and context
                Configuration config = new PropertyConfiguration(props);
                BaseContext baseContext = new BaseContext(config);
    
                // Create fresh authentication
                NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(baseContext, WORKGROUP, USERNAME, PASSWORD);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top