Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 878 for Verify (0.03 sec)

  1. src/test/java/jcifs/http/NtlmServletTest.java

                // Verify that user information is stored in the session
                verify(session).setAttribute("NtlmHttpAuth", ntlmAuth);
                verify(session).setAttribute("ntlmuser", "user");
                verify(session).setAttribute("ntlmdomain", "TEST_DOMAIN");
    
                // Verify that the chain continues
                verify(response, never()).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Then - verify the body was written correctly
            int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Verify structure size (25)
            assertEquals(25, SMBUtil.readInt2(buffer, bodyOffset));
    
            // Verify session binding flag (0x1)
            assertEquals(0x1, buffer[bodyOffset + 2]);
    
            // Verify security mode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

        @Nested
        @DisplayName("Interaction – verify that file methods are invoked")
        class Interaction {
            @Test
            void verifiesPathInvocation() throws Exception {
                SmbFile mockFile = mock(SmbFile.class);
                when(mockFile.getPath()).thenReturn("/share/dir/");
                RecordingFilter filter = new RecordingFilter();
                filter.accept(mockFile);
                // Verify the filter stored the reference
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            verify(mockDeferredNdrBuffer).enc_ndr_long(0);
            verify(mockDeferredNdrBuffer).enc_ndr_long(trustInfo.name.length / 2);
            verify(mockDeferredNdrBuffer).advance(2 * (trustInfo.name.length / 2));
            // Verify the derive call
            verify(mockDeferredNdrBuffer).derive(anyInt());
            verify(mockDeferredNdrBuffer, times(5)).enc_ndr_short(0); // Writing 5 shorts with value 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

      }
    
      /**
       * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
       * returns the expected data.
       *
       * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the
       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/transport/ResponseTest.java

            assertTrue(mockResponse.isReceived());
    
            // Verify the method was called
            verify(mockResponse, times(2)).isReceived();
        }
    
        @Test
        void testReceived() {
            // Call the method
            mockResponse.received();
    
            // Verify that the method was called
            verify(mockResponse, times(1)).received();
        }
    
        @Test
        void testClearReceived() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                int result = requestWithData.encode(testBuffer, 0);
                assertTrue(result > 0);
    
                // Verify header
                for (int i = 0; i < 8; i++) {
                    assertEquals((byte) 0xFF, testBuffer[i]);
                }
    
                // Verify name was copied
                byte[] nameCheck = new byte[testName.length];
                System.arraycopy(testBuffer, 8, nameCheck, 0, testName.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NetworkExplorerTest.java

                    }
                }
            };
    
            assertDoesNotThrow(() -> networkExplorer.init(servletConfig));
    
            // Verify parameter reading
            verify(servletConfig).getInitParameter("jcifs.smb.client.domain");
            verify(servletConfig).getInitParameter("jcifs.http.enableBasic");
        }
    
        /**
         * Test doGet with no authentication - should return 401
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertArrayEquals(testKey.getKey(), encodedKey);
    
            // Verify lease state at offset 40 (24 + 16 for key)
            assertEquals(testState, SMBUtil.readInt4(buffer, 40));
    
            // Verify lease flags at offset 44 (40 + 4 for state)
            assertEquals(0, SMBUtil.readInt4(buffer, 44));
    
            // Verify lease duration at offset 48 (44 + 4 for flags) - should be 0 (reserved)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        out.write(b);
    
        verify(hashFunction).newHasher();
        verify(hasher).putByte((byte) b);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArray() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(buf);
    
        verify(hashFunction).newHasher();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top