Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 279 for assertSame (0.05 sec)

  1. src/test/java/jcifs/smb1/util/LogStreamTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.io.ByteArrayOutputStream;
    import java.io.PrintStream;
    import java.lang.reflect.Field;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeInternalTest.java

    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.ArgumentMatchers.eq;
    import static org.mockito.ArgumentMatchers.isNull;
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.never;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            // Act: call twice
            try (SmbTreeHandleImpl t1 = target.ensureTreeConnected(); SmbTreeHandleImpl t2 = target.ensureTreeConnected()) {
                assertSame(tree, t1);
                assertSame(tree, t2);
            }
    
            // Assert: pipe.ensureTreeConnected invoked once, acquire twice
            verify(pipe, times(1)).ensureTreeConnected();
            verify(tree, times(2)).acquire();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SIDTest.java

            void testUnwrap() throws Exception {
                SID sid = new SID("S-1-5-21-1");
                // Happy path
                assertSame(sid, sid.unwrap(SID.class));
                assertSame(sid, sid.unwrap(Object.class));
                // Invalid unwrap
                assertThrows(ClassCastException.class, () -> sid.unwrap(String.class));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/CurlRequestTest.java

            assertSame(request, result); // Fluent API
            assertSame(proxy, request.proxy());
        }
    
        @Test
        public void testEncodingMethod() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
            String encoding = "ISO-8859-1";
    
            CurlRequest result = request.encoding(encoding);
    
            assertSame(request, result); // Fluent API
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

                    chainCalled.set(true);
                    assertSame(request, req);
                    assertSame(response, res);
                }
            };
    
            // Setup WebApiManagerFactory that returns null
            WebApiManagerFactory factory = new WebApiManagerFactory() {
                @Override
                public WebApiManager get(HttpServletRequest req) {
                    assertSame(request, req);
                    return null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SecurityBlobTest.java

    import static org.junit.jupiter.api.Assertions.assertNotEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    
    import java.lang.reflect.Field;
    import java.util.stream.Stream;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

                }
            } catch (DictionaryExpiredException e) {
                rethrownException = e;
            }
    
            assertNotNull(originalException);
            assertNotNull(rethrownException);
            assertSame(originalException, rethrownException);
        }
    
        public void test_equals() {
            // Test that different instances are not equal
            DictionaryExpiredException exception1 = new DictionaryExpiredException();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java

            TimeZone tz1 = provider1.getRequestedTimeZone(requestManager);
            TimeZone tz2 = provider2.getRequestedTimeZone(requestManager);
    
            assertSame(tz1, tz2);
            assertSame(FessUserTimeZoneProcessProvider.centralTimeZone, tz1);
        }
    
        // Test with null RequestManager (edge case)
        public void test_getRequestedTimeZone_withNullRequestManager() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.io.IOException;
    import java.util.stream.Stream;
    
    import org.junit.jupiter.api.DisplayName;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top