Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for testSids (0.06 sec)

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

            // Arrange
            testSids = new jcifs.SID[size];
            for (int i = 0; i < size; i++) {
                testSids[i] = mock(jcifs.SID.class);
                when(testSids[i].unwrap(sid_t.class)).thenReturn(mockSidT);
            }
    
            // Act
            lookupSids = new MsrpcLookupSids(mockPolicyHandle, testSids);
    
            // Assert
            assertNotNull(lookupSids);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SidResolverTest.java

        @Mock
        private SID mockSid3;
    
        @Mock
        private SID mockDomainSid;
    
        private String testServerName;
        private SID[] testSids;
    
        @BeforeEach
        void setUp() {
            testServerName = "test-server.domain.com";
            testSids = new SID[] { mockSid1, mockSid2, mockSid3 };
        }
    
        // Test resolveSids with array
        @Test
        void testResolveSids_Success() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

            assertSame(crawlJob, result);
        }
    
        // Test webConfigIds setter
        public void test_webConfigIds() {
            String[] testIds = { "web1", "web2", "web3" };
            CrawlJob result = crawlJob.webConfigIds(testIds);
            assertArrayEquals(testIds, crawlJob.webConfigIds);
            assertSame(crawlJob, result);
    
            // Test with null
            result = crawlJob.webConfigIds(null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/MIENameTest.java

        // Provide a common OID for tests (Kerberos V5 mechanism OID encoded in DER)
        private static ASN1ObjectIdentifier testOid() {
            return new ASN1ObjectIdentifier("1.2.840.113554.1.2.2");
        }
    
        private static byte[] oidDer() {
            // Full DER encoding of the OID
            try {
                return testOid().toASN1Primitive().getEncoded();
            } catch (java.io.IOException e) {
                throw new RuntimeException(e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

                assertTrue(generator.generate("test_id", outputFile));
            } finally {
                outputFile.delete();
            }
        }
    
        public void test_generate_outputFile_null() throws Exception {
            generator.setCommandList(Collections.singletonList("echo test"));
            try {
                generator.generate("test_id", null);
                fail("Should throw exception for null output file");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                // Given
                int testMid = 42;
    
                // When
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
                constructor.setAccessible(true);
                SmbComNtCancel cancel = constructor.newInstance(mockConfig, testMid);
    
                // Then
                assertNotNull(cancel);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dtyp/ACETest.java

        @Test
        @DisplayName("Test getSID returns correct SID")
        void testGetSID() throws SmbException {
            assertNull(ace.getSID());
    
            SID testSid = new SID("S-1-5-21-1234567890-123456789-123456789-1000");
            ace.sid = testSid;
    
            assertSame(testSid, ace.getSID());
        }
    
        @Test
        @DisplayName("Test decode with offset")
        void testDecodeWithOffset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

                    }
                }
            };
            ComponentUtil.register(dictionaryManager, "dictionaryManager");
    
            // Initialize ProtwordsFile
            protwordsFile = new ProtwordsFile("test_id", testFile.getAbsolutePath(), new Date());
            protwordsFile.manager(dictionaryManager);
        }
    
        @Override
        public void tearDown() throws Exception {
            if (testFile != null && testFile.exists()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

                    if (fileId != null) {
                        capturedFileId[0] = fileId[0];
                    }
                }
            };
    
            // When
            byte[] testId = new byte[] { 42 };
            anonymousImpl.setFileId(testId);
    
            // Then
            assertEquals(42, capturedFileId[0], "Anonymous implementation should work correctly");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

                    }
                }
            };
            ComponentUtil.register(dictionaryManager, "dictionaryManager");
    
            // Create StopwordsFile instance
            stopwordsFile = new StopwordsFile("test_id", testFile.getAbsolutePath(), new Date());
            stopwordsFile.manager(dictionaryManager);
        }
    
        @Override
        public void tearDown() throws Exception {
            if (testFile != null && testFile.exists()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top