Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 750 for ensures (0.05 seconds)

  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}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 18.3K bytes
    - Click Count (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.";
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/RepositoryAwareRequest.java

        List<RemoteRepository> getRepositories();
    
        /**
         * Validates a list of remote repositories to ensure data integrity.
         *
         * <p>This method performs the following validations:
         * <ul>
         *   <li>Allows null input (returns null)</li>
         *   <li>Ensures no duplicate repositories exist in the list</li>
         *   <li>Ensures no null repository entries exist in the list</li>
         * </ul>
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 5K bytes
    - Click Count (0)
  4. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

        /**
         * Returns a monotonically increasing instant.
         * <p>
         * The returned instant is calculated by adding the elapsed nanoseconds
         * since clock creation to the initial wall clock time. This ensures that
         * the time never goes backwards and maintains a consistent relationship
         * with the wall clock time.
         *
         * @return the current instant using monotonic timing
         */
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  6. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.1K bytes
    - Click Count (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();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  8. .github/workflows/upgrade-ci-cd.yaml

    name: Upgrade old version tests
    
    on:
      pull_request:
        branches:
          - master
    
    # This ensures that previous jobs for the PR are canceled when the PR is
    # updated.
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref }}
      cancel-in-progress: true
    
    permissions:
      contents: read
    
    jobs:
      build:
        name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
        runs-on: ${{ matrix.os }}
        strategy:
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 729 bytes
    - Click Count (0)
  9. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. .github/workflows/go-lint.yml

    name: Linters and Tests
    
    on:
      pull_request:
        branches:
          - master
    
    # This ensures that previous jobs for the PR are canceled when the PR is
    # updated.
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref }}
      cancel-in-progress: true
    
    permissions:
      contents: read
    
    jobs:
      build:
        name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
        runs-on: ${{ matrix.os }}
        strategy:
          matrix:
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 1010 bytes
    - Click Count (0)
Back to Top