Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,933 for Same (0.06 sec)

  1. src/test/java/jcifs/internal/SmbNegotiationTest.java

        }
    
        @Test
        @DisplayName("getRequest should return the same request instance")
        void testGetRequest() {
            // Verify getRequest returns the exact same instance
            SmbNegotiationRequest request = negotiation.getRequest();
            assertSame(mockRequest, request);
    
            // Verify multiple calls return the same instance
            assertSame(request, negotiation.getRequest());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

        for (int i = 0; i < keyBits; i++) {
          int same = 0x0; // bitset for output bits with same values
          int diff = 0x0; // bitset for output bits with different values
          int count = 0;
          // originally was 2 * Math.log(...), making it try more times to avoid flakiness issues
          int maxCount = (int) (4 * Math.log(2 * keyBits * hashBits) + 1);
          while (same != 0xffffffff || diff != 0xffffffff) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SecurityBlobTest.java

        @DisplayName("Constructor stores and exposes same array reference")
        void constructor_and_get_referenceSemantics() {
            // Arrange
            byte[] data = new byte[] { (byte) 0xDE, (byte) 0xAD, (byte) 0xBE, (byte) 0xEF };
    
            // Act
            SecurityBlob blob = new SecurityBlob(data);
    
            // Assert
            assertSame(data, blob.get(), "get() should expose the same array reference passed in");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/BaseContextTest.java

            assertSame(dfs, context.getDfs(), "Should return same instance on multiple calls");
        }
    
        @Test
        @DisplayName("getNameServiceClient should return initialized name service client")
        void testGetNameServiceClient() {
            // When
            NameServiceClient nameServiceClient = context.getNameServiceClient();
    
            // Then
            assertNotNull(nameServiceClient, "Name service client should not be null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            assertEquals(0L, info.length());
        }
    
        @Test
        @DisplayName("Test equals method with same netName")
        void testEqualsWithSameNetName() {
            SmbShareInfo info1 = new SmbShareInfo("Share1", 0, "Remark1");
            SmbShareInfo info2 = new SmbShareInfo("Share1", 1, "Remark2");
    
            // Same netName, different type and remark
            assertTrue(info1.equals(info2));
            assertTrue(info2.equals(info1));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            SmbTreeHandleImpl t2 = h.getTree();
    
            assertSame(tree, t1, "Expected same mocked tree");
            assertSame(tree, t2, "Expected same mocked tree");
    
            // acquire is called once in ctor + once per getTree() call
            verify(tree, times(3)).acquire();
        }
    
        @Test
        @DisplayName("isValid() true when open, same tree id, connected")
        void isValid_true_whenOpenSameTreeConnected() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            // Second call should return cached value (same as first)
            Subject second = auth.getSubject();
            if (first == null && second == null) {
                // Both null - caching is working
                assertNull(second, "Second getSubject should return same result as first (both null)");
            } else if (first != null && second != null) {
                // Both non-null - should be same instance
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

                // Expected
            }
        }
    
        /**
         * Test name method
         */
        public void test_name() {
            assertEquals("INITIALIZING", CrawlerStatus.INITIALIZING.name());
            assertEquals("RUNNING", CrawlerStatus.RUNNING.name());
            assertEquals("DONE", CrawlerStatus.DONE.name());
        }
    
        /**
         * Test ordinal method
         */
        public void test_ordinal() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

      }
    
      @Test
      fun testNoUncompress() {
        val response = response("https://httpbin.org/brotli", "XXXX".encodeUtf8())
    
        val same = brotliInterceptor.decompress(response)
    
        val responseString = same.body.string()
        assertThat(responseString).isEqualTo("XXXX")
      }
    
      @Test
      fun testFailsUncompress() {
        val response =
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 22 08:12:58 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Assert
            assertArrayEquals(h2, h1, "nTOWFv1 should return NT hash");
            assertEquals(16, h1.length, "NT hash length is 16 bytes");
        }
    
        @Test
        @DisplayName("nTOWFv2: overloads produce same result and domain affects key")
        void testNTOWFv2_overloadsAndDomainSensitivity() {
            // Arrange
            String domain = "Domain";
            String user = "User";
            String password = "password";
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (1)
Back to top