Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 139 for 012345 (0.03 sec)

  1. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertEquals(string.substring(5), readFully(reader));
        assertFullyRead(reader);
      }
    
      public void testIllegalArguments() throws IOException {
        CharSequenceReader reader = new CharSequenceReader("12345");
    
        char[] buf = new char[10];
        assertThrows(IndexOutOfBoundsException.class, () -> reader.read(buf, 0, 11));
    
        assertThrows(IndexOutOfBoundsException.class, () -> reader.read(buf, 10, 1));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        void setUp() {
            smb = new TestServerMessageBlock();
        }
    
        @Test
        void testInt2ReadWrite() {
            byte[] buffer = new byte[2];
            ServerMessageBlock.writeInt2(0x1234, buffer, 0);
            assertEquals(0x1234, ServerMessageBlock.readInt2(buffer, 0));
        }
    
        @Test
        void testInt4ReadWrite() {
            byte[] buffer = new byte[4];
            ServerMessageBlock.writeInt4(0x12345678, buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

        }
    
        @Test
        @DisplayName("Test createCancel method returns SmbComNtCancel")
        void testCreateCancel() {
            // Set a MID for the transaction
            transaction.setMid(12345);
    
            // Create cancel request
            CommonServerMessageBlockRequest cancelRequest = transaction.createCancel();
    
            // Verify it returns an SmbComNtCancel instance
            assertNotNull(cancelRequest);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            // Test case: close() with non-zero retval from MsrpcSamrCloseHandle, should throw SmbException
            String server = "testServer";
            int access = 123;
            int errorRetval = 12345; // Simulate an error code
    
            // Setup for successful constructor
            doNothing().when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class));
    
            // Setup for close to return an error
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/ConverterTest.java

            @Override
            public String toString() {
              return "string2long";
            }
          };
    
      private static final Long LONG_VAL = 12345L;
      private static final String STR_VAL = "12345";
    
      private static final ImmutableList<String> STRINGS = ImmutableList.of("123", "456");
      private static final ImmutableList<Long> LONGS = ImmutableList.of(123L, 456L);
    
      public void testConverter() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        private Configuration mockConfig;
    
        private SmbComSeekResponse response;
    
        @BeforeEach
        void setUp() {
            // Setup mock configuration to avoid NPE
            when(mockConfig.getPid()).thenReturn(12345);
            response = new SmbComSeekResponse(mockConfig);
        }
    
        /* ------------------------------------------------------------------ */
        /* 1. Construction and basic getters                                    */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

        }
    
        @Test
        void constructor_shouldThrowSmbExceptionOnRpcError() throws IOException {
            // Arrange
            String server = "testServer";
            int access = 123;
            int errorCode = 12345;
    
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = errorCode; // Simulate RPC error
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      }
    
      public void testDecodeLong() {
        assertThat(UnsignedLongs.decode("0xffffffffffffffff")).isEqualTo(0xffffffffffffffffL);
        assertThat(UnsignedLongs.decode("01234567")).isEqualTo(01234567); // octal
        assertThat(UnsignedLongs.decode("#1234567890abcdef")).isEqualTo(0x1234567890abcdefL);
        assertThat(UnsignedLongs.decode("987654321012345678")).isEqualTo(987654321012345678L);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/InfoTest.java

            byte[] buffer = new byte[34];
            long create = 1600000000000L;
            long lastAccess = 1600000100000L;
            long lastWrite = 1600000200000L;
            long change = 1600000300000L;
            int attributes = 0x1234;
            // Convert Unix time to Windows FILETIME (100-nanosecond intervals since 1601)
            long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/transport/TransportTest.java

            void shouldIdentifyFailedStates() {
                // Failed states: 5=disconnecting, 6=disconnected/invalid
                int[] failedStates = { 5, 6 };
                int[] nonFailedStates = { 0, 1, 2, 3, 4 };
    
                for (int state : failedStates) {
                    transport.setState(state);
                    assertTrue(transport.isFailed(), "State " + state + " should be failed");
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top