Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 529 for ensure (0.04 sec)

  1. 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)
  2. src/main/java/org/codelibs/curl/io/ContentCache.java

    import java.nio.file.Files;
    import java.util.logging.Logger;
    
    /**
     * ContentCache is a class that provides a way to cache content either in memory or in a file.
     * It implements the Closeable interface to ensure that resources are properly released.
     *
     * <p>This class supports two types of content caching:
     * <ul>
     *   <li>In-memory caching using a byte array</li>
     *   <li>File-based caching using a File object</li>
     * </ul>
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

      private lateinit var workspaceDir: Path
    
      @BeforeEach
      fun setUp() {
        testResourceDir = "./build/resources/test/okhttp3/osgi".toPath()
        workspaceDir = testResourceDir / "workspace"
    
        // Ensure we start from scratch.
        fileSystem.deleteRecursively(workspaceDir)
        fileSystem.createDirectories(workspaceDir)
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            // Assert
            assertSame(mocked, ex.getCause(), "Mocked cause should be preserved");
            verifyNoInteractions(mocked);
        }
    
        // Reflection-based check: ensure serialVersionUID remains the declared constant
        @Test
        @DisplayName("serialVersionUID matches declared constant")
        void serialVersionUID_hasExpectedValue() throws Exception {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. README.md

    ### Contributing
    
    We welcome contributions! Please:
    1. Fork the repository
    2. Create a feature branch
    3. Make your changes with appropriate tests
    4. Run `mvn clean test` to ensure all tests pass
    5. Submit a pull request
    
    ### License
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 09:24:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

            assertEquals(expected, result, "Filter should evaluate .txt suffix correctly");
            verifyNoInteractions(mockDir);
        }
    
        /**
         * Invalid/null inputs: ensure filters can handle null name and dir.
         */
        @ParameterizedTest
        @DisplayName("null and empty names are handled explicitly")
        @NullAndEmptySource
        @ValueSource(strings = { " \t\n" })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. 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)
Back to top