Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 383 for ensures (0.04 sec)

  1. android/guava/src/com/google/common/base/Verify.java

     * failures explained</a> in the Guava User Guide for advice on when this class should be used.
     *
     * @since 17.0
     */
    @GwtCompatible
    public final class Verify {
      /**
       * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with no
       * message otherwise.
       *
       * @throws VerifyException if {@code expression} is {@code false}
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    import org.junit.jupiter.api.Test;
    
    class NdrExceptionTest {
    
        /**
         * Test the constructor with a message.
         * Ensures that the exception is created with the correct message.
         */
        @Test
        void testConstructorWithMessage() {
            String testMessage = "This is a test message for NdrException.";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ResolverTypeTest.java

        @Test
        void testNumberOfEnumConstants() {
            // Ensure there are exactly 4 resolver types
            assertEquals(4, ResolverType.values().length, "There should be exactly 4 resolver types.");
        }
    
        /**
         * Tests the names of the enum constants.
         */
        @Test
        void testEnumNames() {
            // Verify the names of the enum constants to ensure they are not accidentally changed
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        }
    
        @Test
        @DisplayName("Constructor acquires tree connection; getConfig/isConnected delegate")
        void constructorAndSimpleDelegations() {
            // Ensures constructor acquires tree connection and simple delegate methods forward correctly
            // Verify constructor invoked acquire once
            verify(treeConnection, times(1)).acquire();
    
            // getConfig delegates
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SecurityBlobTest.java

            // Act
            String actual = blob.toString();
    
            // Assert
            assertEquals(expected, actual, "Hex string should match expected format");
        }
    
        // Ensures a default-constructed blob starts empty and stable across APIs
        @Test
        @DisplayName("Default constructor yields empty state")
        void defaultConstructor_initialState() {
            // Arrange & Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

        SmbPipeOutputStream getOutput() throws CIFSException;
    
        /**
         * Ensures that the tree connection is established and returns it.
         *
         * @return tree connection
         * @throws CIFSException if an error occurs connecting to the tree
         */
        SmbTreeHandleInternal ensureTreeConnected() throws CIFSException;
    
        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return file handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/HandlerTest.java

        }
    
        @Test
        void testOpenConnection_HttpProtocol_ReturnsNtlmHttpURLConnection() throws Exception {
            // This test ensures that for a standard HTTP URL, openConnection wraps the connection
            // in an NtlmHttpURLConnection, using mock handlers to avoid dependency on system handlers.
            setupMockProtocolHandlers();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Lockable.kt

    /**
     * Marker interface for objects that use the JVM's `synchronized` mechanism and the related
     * `wait()` and `notify()` functions.
     *
     * The Lockable interface is particularly handy because it ensures we lock the right `this` when
     * there are multiple `this` objects in scope.
     */
    interface Lockable
    
    internal inline fun Lockable.wait() = (this as Object).wait()
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/storage/StorageClient.java

         *
         * @param objectName the name/path of the object
         * @param tags the tags to set
         */
        void setObjectTags(String objectName, Map<String, String> tags);
    
        /**
         * Ensures the bucket exists, creating it if necessary.
         */
        void ensureBucketExists();
    
        /**
         * Checks if storage is properly configured and accessible.
         *
         * @return true if storage is available
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

        } catch (SecurityException e) {
          throw new RuntimeException(e);
        } catch (NoSuchMethodException e) {
          throw new AssertionError(e);
        }
      }
    
      /**
       * Ensures that all interface methods of {@code forwarderClass} are forwarded to the {@link
       * ForwardingObject#delegate}. {@code forwarderClass} is assumed to only implement one interface.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top