Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 730 for ensure (0.05 sec)

  1. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            if (message != null && !message.isEmpty()) {
                assertTrue(ts.contains(message), "toString should include non-empty message");
            }
    
            // Ensure constructors/getters don't interact with the cause
            verifyNoInteractions(mockCause);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. LICENSE

    software and other kinds of works, specifically designed to ensure
    cooperation with the community in the case of network server software.
    
      The licenses for most software and other practical works are designed
    to take away your freedom to share and change the works.  By contrast,
    our General Public Licenses are intended to guarantee your freedom to
    share and change all versions of a program--to make sure it remains free
    software for all its users.
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 33.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/AbstractStreamingHasher.java

          munch();
        }
      }
    
      private void munch() {
        Java8Compatibility.flip(buffer);
        while (buffer.remaining() >= chunkSize) {
          // we could limit the buffer to ensure process() does not read more than
          // chunkSize number of bytes, but we trust the implementations
          process(buffer);
        }
        buffer.compact(); // preserve any remaining data that do not make a full chunk
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

            loadBalancer.setStrategy(LoadBalancingStrategy.WEIGHTED_RANDOM);
            when(mockChannelManager.getHealthyChannels()).thenReturn(Arrays.asList(channel1, channel2));
    
            // Test multiple selections to ensure it works
            for (int i = 0; i < 10; i++) {
                ChannelInfo selected = loadBalancer.selectChannel(mockMessage);
                assertTrue(Arrays.asList(channel1, channel2).contains(selected));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbTreeHandleTest.java

    import org.mockito.quality.Strictness;
    
    /**
     * Tests for SmbTreeHandle interface.
     * This test class uses Mockito to create a mock implementation of the SmbTreeHandle interface.
     * Each method of the interface is tested to ensure it behaves as expected.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbTreeHandleTest {
    
        @Mock
        private SmbTreeHandle smbTreeHandle;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

    import java.lang.reflect.Method;
    import java.util.Locale;
    import junit.framework.TestCase;
    
    /**
     * Since annotations have some reusability issues that force copy and paste all over the place, it's
     * worth having a test to ensure that all our Feature enums have their annotations correctly set up.
     *
     * @author George van den Driessche
     */
    public class FeatureEnumTest extends TestCase {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          for (int insertion = 0; insertion < totalInsertions; insertion++) {
            RandomHasherAction.pickAtRandom(random).performAction(random, sinksAndControl);
          }
          // We need to ensure that at least 4 bytes have been put into the hasher or else
          // Hasher#hash will throw an ISE.
          int intToPut = random.nextInt();
          for (Hasher hasher : sinksAndControl) {
            hasher.putInt(intToPut);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        }
    
        @Test
        @DisplayName("Should create new connections when reuse conditions are not met")
        void testNoConnectionReuse() throws Exception {
            // Given: Create a new pool for this test to ensure isolation
            SmbTransportPoolImpl testPool = new SmbTransportPoolImpl();
            when(ctx.getTransportPool()).thenReturn(testPool);
    
            // Create an existing connection
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/context/AbstractCIFSContextTest.java

                return defaultCreds;
            }
    
            @Override
            public boolean close() throws CIFSException {
                closeCalled = true;
                // Call super.close() to ensure the shutdown hook is removed
                return super.close();
            }
    
            public boolean isCloseCalled() {
                return closeCalled;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeInternalTest.java

        @EnumSource(RequestParam.class)
        @DisplayName("send handles each RequestParam enum constant")
        void send_eachRequestParam_isAccepted(RequestParam param) throws Exception {
            // Arrange: stub per-call return to ensure interaction with the exact enum
            when(tree.send(eq(request), eq(param))).thenReturn(response);
    
            // Act
            CommonServerMessageBlockResponse out = tree.send(request, param);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top