Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for testList (0.91 sec)

  1. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

                .testEquals();
          }
        }
      }
    
      public abstract static class AbstractFilteredSortedSetTest<C extends SortedSet<Integer>>
          extends AbstractFilteredSetTest<C> {
        public void testFirst() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            C filtered = filter(createUnfiltered(contents), EVEN);
    
            try {
              Integer first = filtered.first();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      }
    
      public void testFirst() {
        assertEquals(1, ContiguousSet.create(Range.closed(1, 3), integers()).first().intValue());
        assertEquals(1, ContiguousSet.create(Range.open(0, 4), integers()).first().intValue());
        assertEquals(
            Integer.MIN_VALUE,
            ContiguousSet.create(Range.<Integer>all(), integers()).first().intValue());
      }
    
      public void testLast() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testSingletonMultisetPollLast() {
        assertEquals(a, sortedMultiset.pollLastEntry());
        assertTrue(sortedMultiset.isEmpty());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFirst() {
        assertEquals(a, sortedMultiset.firstEntry());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollFirst() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      }
    
      public void testFirst() {
        assertEquals(1, ContiguousSet.create(Range.closed(1, 3), integers()).first().intValue());
        assertEquals(1, ContiguousSet.create(Range.open(0, 4), integers()).first().intValue());
        assertEquals(
            Integer.MIN_VALUE,
            ContiguousSet.create(Range.<Integer>all(), integers()).first().intValue());
      }
    
      public void testLast() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/SmbTransportTest.java

            verify(smbTransport).getRemoteAddress(); // Verify that the method was called
        }
    
        @Test
        void testGetRemoteHostName() {
            // Arrange
            String hostName = "testHost";
            when(smbTransport.getRemoteHostName()).thenReturn(hostName);
    
            // Act
            String result = smbTransport.getRemoteHostName();
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testSingletonMultisetPollLast() {
        assertEquals(a, sortedMultiset.pollLastEntry());
        assertTrue(sortedMultiset.isEmpty());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFirst() {
        assertEquals(a, sortedMultiset.firstEntry());
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollFirst() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top