Search Options

Results per page
Sort
Preferred Languages
Advance

Results 781 - 790 of 3,016 for jest (0.03 sec)

  1. src/test/java/jcifs/util/transport/TransportExceptionTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import jcifs.CIFSException;
    
    /**
     * Test class for TransportException
     */
    public class TransportExceptionTest {
    
        @Test
        @DisplayName("Test default constructor creates exception with null message")
        public void testDefaultConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/EmptyIteratorTest.java

    import java.util.Iterator;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.RepeatedTest;
    import org.junit.jupiter.api.Test;
    
    /**
     * Comprehensive test suite for EmptyIterator class.
     * Tests the implementation of CloseableIterator for empty collections.
     */
    @DisplayName("EmptyIterator Tests")
    class EmptyIteratorTest extends BaseTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

    import okio.Buffer
    import okio.BufferedSink
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    @Tag("Slowish")
    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
          """
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: abc
          |
          |abcd
          |efgh
          |--simple boundary
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

                assertNotNull(type3.getNTResponse());
            });
        }
    
        @Test
        @DisplayName("Should handle special characters in credentials")
        void testSpecialCharacters() throws Exception {
            // Given
            Type2Message type2 = createMockType2Message();
            String specialDomain = "TEST-DOMAIN_123";
            String specialUser = "test******@****.***";
            String specialPassword = "P@ssw0rd!#$%";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/LogStreamTest.java

            instanceField.set(null, null);
        }
    
        @Test
        void testConstructor() {
            // Test constructor creates a LogStream that extends PrintStream
            LogStream logStream = new LogStream(testStream);
            assertNotNull(logStream);
            assertTrue(logStream instanceof PrintStream);
        }
    
        @Test
        void testSetLevel() {
            // Test setting log level
            LogStream.setLevel(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the Trans2QueryFSInformationResponse class.
     */
    class Trans2QueryFSInformationResponseTest {
    
        /**
         * Tests the constructor to ensure it sets up the command and subcommand correctly.
         */
        @Test
        void testConstructor() {
            Trans2QueryFSInformationResponse response =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect4Test.java

        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        /**
         * Test method for
         * {@link jcifs.dcerpc.msrpc.MsrpcSamrConnect4#MsrpcSamrConnect4(java.lang.String, int, jcifs.dcerpc.msrpc.SamrPolicyHandle)}.
         */
        @Test
        void testMsrpcSamrConnect4() {
            // Given
            final String server = "test-server";
            final int access = 1;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java

        }
    
        public void test_getQueryClassName() {
            // Test that getQueryClassName returns the correct class name
            String className = matchAllQueryCommand.getQueryClassName();
            assertEquals("MatchAllDocsQuery", className);
            assertEquals(MatchAllDocsQuery.class.getSimpleName(), className);
        }
    
        public void test_execute() {
            // Test execute method with normal parameters
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SpnegoContextTest.java

        }
    
        @Test
        @DisplayName("getFlags delegates to underlying mechanism context")
        void testGetFlagsDelegates() {
            SpnegoContext ctx = newContext();
            when(this.mechContext.getFlags()).thenReturn(0xCAFE);
            assertEquals(0xCAFE, ctx.getFlags());
            verify(this.mechContext, times(1)).getFlags();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

        }
    
        /**
         * Test constructor with O_CREAT flag.
         */
        @Test
        void testConstructor_CreateAndOpen() {
            int flags = SmbFile.O_CREAT;
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, flags, andx);
            assertEquals(0x11, smbComOpenAndX.openFunction); // OPEN_FN_CREATE | OPEN_FN_OPEN
        }
    
        /**
         * Test constructor with no special flags.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top