Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 960 for correctly (0.05 sec)

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

            // Verify delegate.next() was only called once
            verify(mockDelegate, times(1)).next();
        }
    
        /**
         * Test constructor initializes correctly.
         */
        @Test
        void testConstructorInitialization() {
            // Given
            when(mockDelegate.hasNext()).thenReturn(false);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            byte[] buffer = new byte[100];
    
            // Execute
            int bytesEncoded = request.encode(buffer, 0);
    
            // Verify timeout value is correctly encoded
            assertEquals(timeout, SMBUtil.readInt8(buffer, 0));
    
            // Verify timeout specified flag is set
            assertEquals(0x1, buffer[12]);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/MsrpcLsarCloseTest.java

            // Assert that the object is not null
            assertNotNull(msrpcLsarClose, "MsrpcLsarClose object should not be null");
    
            // Verify that the constructor correctly sets ptype and flags
            // These values are inherited from LsarClose, but MsrpcLsarClose sets them in its constructor
            assertEquals(0, msrpcLsarClose.getPtype(), "ptype should be 0");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            assertEquals(0, sis.skip(skipBytes));
    
            // All data should still be available
            assertEquals(10, sis.read());
        }
    
        @Test
        @DisplayName("Skip correctly advances position in stream")
        void skipAdvancesPosition() throws IOException {
            // Create message with 5 bytes of data
            byte[] data = new byte[] { 10, 20, 30, 40, 50 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            assertTrue(result.contains("informationLevel=0x101"), "String should contain the correct information level.");
            assertTrue(result.contains("filename=test.txt"), "String should contain the correct filename.");
            assertTrue(result.endsWith("]"), "String should end with a closing bracket.");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

            String expected = "unknown error class: 1234";
            assertEquals(expected, NbtException.getErrorString(unknownClass, 0));
        }
    
        @Test
        @DisplayName("Constructor sets fields and message correctly")
        void testConstructor() {
            NbtException e = new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
            assertEquals(NbtException.ERR_SSN_SRVC, e.errorClass);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/StringsTest.java

            }
    
            @Test
            @DisplayName("getUNIBytes should handle Unicode characters correctly")
            void testGetUNIBytesWithUnicode() {
                // When
                byte[] result = Strings.getUNIBytes(UNICODE_STRING);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                assertEquals("Expected structureSize = 4", exception.getMessage());
            }
    
            @Test
            @DisplayName("Should correctly calculate bytes read from different starting positions")
            void testReadBytesWireFormatDifferentStartPositions() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[20];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

            response = new Trans2SetFileInformationResponse();
        }
    
        /**
         * Test for the constructor of {@link Trans2SetFileInformationResponse}.
         * It should initialize the subCommand correctly.
         */
        @Test
        void testConstructor() {
            // Verify that the subCommand is set to TRANS2_SET_FILE_INFORMATION
            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.subCommand,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Simple base class to verify that we handle generics correctly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
      public BaseComparable(String s) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top