Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for testSort (0.09 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        Helpers.testComparator(comparator, ordered);
      }
    
      public void testSort() {
        testSort(new long[] {}, new long[] {});
        testSort(new long[] {2}, new long[] {2});
        testSort(new long[] {2, 1, 0}, new long[] {0, 1, 2});
        testSort(new long[] {2, GREATEST, 1, LEAST}, new long[] {LEAST, 1, 2, GREATEST});
      }
    
      static void testSort(long[] input, long[] expected) {
        input = Arrays.copyOf(input, input.length);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/DuplicateHostHelperTest.java

            DuplicateHostHelper helper = new DuplicateHostHelper();
            List<DuplicateHost> testList = new ArrayList<>();
    
            DuplicateHost testHost = new DuplicateHost();
            testHost.setRegularName("www.test.com");
            testHost.setDuplicateHostName("test.com");
            testList.add(testHost);
    
            helper.setDuplicateHostList(testList);
    
            assertEquals(testList, helper.duplicateHostList);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/NameServiceClientTest.java

        }
    
        @Test
        void testGetNbtAllByAddress_StringIntString() throws UnknownHostException {
            // Arrange
            String host = "testHost";
            int type = 0x20;
            String scope = "testScope";
            NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/LmhostsTest.java

                writer.write("192.168.1.100 TESTHOST\n");
                writer.write("10.0.0.1      SERVER01\n");
            }
    
            when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath());
    
            // Test first host
            NbtAddress result = lmhosts.getByName("TESTHOST", mockContext);
            assertNotNull(result);
            assertEquals("TESTHOST", result.getHostName());
    
            // Test second host
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

        /**
         * Test basic session lifecycle management
         */
        @Test
        @Timeout(5)
        public void testSessionLifecycle() throws Exception {
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            // Test initial state - session starts with usage count > 0 due to transport.acquire()
            assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

        public void test_constructor_withIdZero() {
            // Test constructor with id = 0 (create mode)
            ProtwordsItem item = new ProtwordsItem(0, "testword");
    
            assertEquals(0, item.getId());
            assertEquals("testword", item.getInput());
            assertEquals("testword", item.getNewInput());
        }
    
        public void test_constructor_withNonZeroId() {
            // Test constructor with id != 0 (existing item)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

         */
        @Test
        public void testConcurrentTreeOperationsThreadSafe() throws Exception {
            // Given
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            int threadCount = 10;
            int opsPerThread = 100;
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/NbtAddressTest.java

            // Test the constructor with minimal parameters
            mockName = new Name(mockConfig, "TESTHOST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
    
            assertNotNull(nbtAddress);
            assertEquals("TESTHOST", nbtAddress.getHostName());
            assertArrayEquals(new byte[] { (byte) 192, (byte) 168, (byte) 1, (byte) 1 }, nbtAddress.getAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

     */
    public class RdmaIntegrationTest {
    
        private String testServer;
        private int testPort;
        private CIFSContext testContext;
    
        @BeforeEach
        public void setUp() throws Exception {
            testServer = System.getProperty("rdma.test.server");
            String portStr = System.getProperty("rdma.test.port", "445");
            testPort = Integer.parseInt(portStr);
    
            // Create RDMA-enabled context
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

        private SmbTransport transport;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Setup transport fields that are accessed directly
            transport.tconHostName = "testHost";
            // Setup session.transport field (accessed directly in SmbTree)
            session.transport = transport;
            // Setup session to return transport via method call
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top