Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for happyPath (0.08 sec)

  1. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/StartStopTest.kt

      /** This one won't start because it isn't annotated. */
      private val dispatcherC = ClosableDispatcher()
      val serverC =
        MockWebServer().apply {
          dispatcher = dispatcherC
        }
    
      @Test
      fun happyPath() {
        testInstances += this
    
        assertThat(serverA.started).isTrue()
        assertThat(serverB.started).isTrue()
        assertThat(serverC.started).isFalse()
    
        assertThat(serverD.started).isTrue()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 11:13:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                    lastPath = file.getPath();
                }
                return true;
            }
        }
    
        @Nested
        @DisplayName("Happy path – accept is called and returns true")
        class HappyPath {
            @Test
            void acceptWithMockedFile() throws Exception {
                SmbFile mockFile = mock(SmbFile.class);
                when(mockFile.getPath()).thenReturn("/share/file.txt");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceLocatorTest.java

            }
    
            @Override
            public boolean isRoot() {
                return "/".equals(path);
            }
        }
    
        @Nested
        @DisplayName("Happy path – well-formed SMB URL")
        class HappyPath {
            @Test
            void testBasicProperties() throws Exception {
                String url = "smb://server/share/path/file.txt";
                DummySmbResourceLocator loc = new DummySmbResourceLocator(url);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            when(mockTree.getTreeId()).thenReturn(1L);
    
            when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM);
        }
    
        @Nested
        @DisplayName("Happy path")
        class HappyPath {
    
            @Test
            @DisplayName("readDirect over SMB2 returns bytes read and uses current offset")
            void readDirectSmb2Happy() throws Exception {
                SmbFileInputStream in = newStream();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SSPContextTest.java

                return this.established && this.integrity;
            }
        }
    
        @Nested
        @DisplayName("Happy path behavior")
        class HappyPath {
            @Test
            @DisplayName("All getters return configured values and MIC roundtrips")
            void testAllMethodsHappyPath() throws Exception {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
Back to top