Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1201 - 1210 of 2,907 for 2test (0.02 sec)

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

        // create a null writer
        Writer nullWriter = CharStreams.nullWriter();
        // write to the writer
        nullWriter.write('n');
        String test = "Test string for NullWriter";
        nullWriter.write(test);
        nullWriter.write(test, 2, 10);
        nullWriter.append(null);
        nullWriter.append(null, 0, 4);
    
        assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, -1, 4));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharStreamsTest.java

        // create a null writer
        Writer nullWriter = CharStreams.nullWriter();
        // write to the writer
        nullWriter.write('n');
        String test = "Test string for NullWriter";
        nullWriter.write(test);
        nullWriter.write(test, 2, 10);
        nullWriter.append(null);
        nullWriter.append(null, 0, 4);
    
        assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, -1, 4));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NtlmSspTest.java

            // Mock NameServiceClient for Type1Message test
            lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockAddress);
            lenient().when(mockAddress.getHostName()).thenReturn("WORKSTATION");
        }
    
        /**
         * Test case for when the 'Authorization' header is missing.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            }
    
            @Test
            @DisplayName("Should read file ID correctly with various patterns")
            void testReadFileIdPatterns() throws Exception {
                // Test with all zeros
                byte[] zeroFileId = new byte[16];
                testFileIdReading(zeroFileId);
    
                // Test with all ones
                byte[] onesFileId = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb.SmbException;
    
    /**
     * Test cases for AuthenticationRateLimiter
     */
    public class AuthenticationRateLimiterTest {
    
        private AuthenticationRateLimiter rateLimiter;
    
        @BeforeEach
        public void setUp() {
            // Create rate limiter with test-friendly settings
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        }
    
        @Test
        @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe")
        void testBasicAccessors() {
            when(pipe.getPipeType()).thenReturn(0x123456);
            assertSame(pipe, target.getPipe());
            assertEquals(0x123456, target.getPipeType());
            assertEquals("\\\\pipe\\\\my-pipe", target.getUncPath());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyScope.java

        /**
         * Compile, runtime and test.
         */
        COMPILE("compile", true),
    
        /**
         * Runtime and test.
         */
        RUNTIME("runtime", true),
    
        /**
         * Provided.
         */
        PROVIDED("provided", false),
    
        /**
         * Test compile only.
         */
        TEST_ONLY("test-only", false),
    
        /**
         * Test compile and test runtime.
         */
        TEST("test", false),
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 19 14:33:26 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            } catch (Exception e) {
                // May throw different exception in test environment
                assertNotNull(e);
            }
        }
    
        // Test getExecuteType method
        public void test_getExecuteType() {
            assertEquals(Constants.EXECUTE_TYPE_SUGGEST, suggestJob.getExecuteType());
        }
    
        // Test session ID generation
        public void test_sessionIdGeneration() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java

    import java.io.File;
    import java.io.InputStream;
    import java.net.URL;
    import java.util.Scanner;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class UrlSourceTest {
    
        @Test
        void testUrlSource() {
            NullPointerException e = assertThrows(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/TestMavenWorkspaceReader.java

    public class TestMavenWorkspaceReader implements MavenWorkspaceReader {
    
        static final String REPO_LAYOUT = "test";
    
        static final String REPO_URL = "https://test/me";
    
        static final String REPO_ID = "custom";
    
        static final String GROUP_ID = "org.apache.maven";
    
        static final String ARTIFACT_ID = "this.is.a.test";
    
        static final String VERSION = "99.99";
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top