Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testGettersHappyPath (1.92 sec)

  1. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

        /**
         * Happy path – verifies that getters return the values supplied by the
         * implementation.
         */
        @Test
        @DisplayName("verify getters return stubbed values")
        void testGettersHappyPath() {
            when(mockAllocInfo.getCapacity()).thenReturn(1000L);
            when(mockAllocInfo.getFree()).thenReturn(400L);
    
            assertEquals(1000L, mockAllocInfo.getCapacity(), "capacity should match stubbed value");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top