Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 403 for ensures (0.57 sec)

  1. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            assertNull(ex.getRootCause(), "Root cause should be null by default");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
        }
    
        /**
         * Ensures the exception is thrown and captured via assertThrows with the right message.
         */
        @Test
        void assertThrowsCapturesExceptionAndMessage() {
            // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. api/maven-api-annotations/src/main/java/org/apache/maven/api/annotations/Immutable.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * The {@code Immutable} annotation indicates that the object is immutable, i.e.
     * none of its field can be changed.  This also ensures that the type is
     * {@link ThreadSafe}.
     *
     * @see ThreadSafe
     * @since 4.0.0
     */
    @Experimental
    @Documented
    @Retention(RetentionPolicy.CLASS)
    @ThreadSafe
    @Target(ElementType.TYPE)
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Dec 10 21:43:27 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/AbstractIterator.java

      }
    
      @Override
      @ParametricNullness
      public final T next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        state = State.NOT_READY;
        // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`.
        T result = uncheckedCastNullableTToT(next);
        next = null;
        return result;
      }
    
      @Override
      public final void remove() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            // informationLevel LE at offset 4..5
            assertEquals((byte) 0x04, buf[4]);
            assertEquals((byte) 0x01, buf[5]);
        }
    
        /**
         * Ensures writeSetupWireFormat writes subcommand and trailing zero, returning 2.
         */
        @Test
        void testWriteSetupWireFormat() {
            // Given
            Trans2FindNext2 next = new Trans2FindNext2(0x1111, 0, "*");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/service/FessAppService.java

         * Default constructor.
         */
        public FessAppService() {
            // Default constructor
        }
    
        /**
         * Wraps a query string with wildcard characters to enable partial matching.
         * This method ensures that the query string is surrounded by asterisks (*)
         * to support prefix and suffix matching in search operations.
         *
         * @param query the query string to wrap with wildcards
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

        }
    
        /**
         * Verify that all methods can be called with null buffers without
         * throwing exceptions. This test ensures robustness of the implementation.
         */
        @Test
        void methodsHandleNullBuffersGracefully() {
            // Arrange
            TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DosFileFilterTest.java

        @BeforeEach
        void setUp() {
            // Basic setup, specific filter attributes will be set in each test
        }
    
        /**
         * Tests the constructor of DosFileFilter.
         * This test ensures that the constructor runs without errors and correctly initializes the object.
         * The wildcard parameter is stored but its filtering logic is handled server-side,
         * so we only verify its acceptance here.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/TearDown.java

       * this is subject to change. Also, {@code junit4.TearDownTestCase} will.
       *
       * @throws Exception for any reason. {@code TearDownTestCase} ensures that any exception thrown
       *     will not interfere with other TearDown operations.
       */
      void tearDown() throws Exception;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileOutputStream.java

            } else {
                this.req = new SmbComWrite(th.getConfig());
                this.rsp = new SmbComWriteResponse(th.getConfig());
            }
        }
    
        /**
         * Ensures that the file descriptor is openend
         *
         * @throws CIFSException if an error occurs opening the file
         */
        public void open() throws CIFSException {
            try (SmbFileHandleImpl fh = ensureOpen()) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt

          payload.writeByte('0'.code)
        }
        serverWriter.writeMessageFrame(OPCODE_BINARY, payload.snapshot())
    
        // Write directly to the unbuffered sink. This ensures it will become single frame.
        assertData("827e") // 'e' == 4-byte follow-up length.
        assertData(format("%04X", payload.completeSegmentByteCount()))
        assertData(payload.readByteString())
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top