Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 878 for Verify (0.06 sec)

  1. src/test/java/jcifs/ACETest.java

                ace.getAccessMask();
    
                // Different methods called
                ace.isAllow();
                ace.getFlags();
    
                verify(ace, times(2)).getAccessMask();
                verify(ace, times(1)).isAllow();
                verify(ace, times(1)).getFlags();
            }
        }
    
        @Nested
        @DisplayName("Real-world Usage Scenarios")
        class RealWorldUsageTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

                assertEquals("fuzzy", fuzzyQueryBuilder.value());
                assertEquals(1.8f, fuzzyQueryBuilder.boost());
            } else {
                // For DefaultQueryBuilder or DisMaxQueryBuilder, we just verify it was created
                assertTrue(result instanceof DefaultQueryBuilder || result instanceof DisMaxQueryBuilder);
            }
        }
    
        public void test_execute_withNestedBoostQuery() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    
    import java.lang.reflect.Method;
    import java.util.stream.Stream;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java

            UnsupportedSearchException exception = new UnsupportedSearchException("test message");
    
            assertNotNull(exception.getStackTrace());
            assertTrue(exception.getStackTrace().length > 0);
    
            // Verify the stack trace contains this test method
            boolean foundTestMethod = false;
            for (StackTraceElement element : exception.getStackTrace()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbTreeHandleTest.java

         * @throws CIFSException
         */
        @Test
        void testClose() throws CIFSException {
            smbTreeHandle.close();
            // Verify that close() was called on the mock
            verify(smbTreeHandle).close();
        }
    
        /**
         * Test for close() method throwing CIFSException.
         * Verifies that the method correctly throws a CIFSException when configured to do so.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            Assertions.assertEquals(19L, s);
    
            Mockito.verify(mock, Mockito.times(1)).getAttributes();
            Mockito.verify(mock, Mockito.times(1)).getCreateTime();
            Mockito.verify(mock, Mockito.times(1)).getLastWriteTime();
            Mockito.verify(mock, Mockito.times(1)).getLastAccessTime();
            Mockito.verify(mock, Mockito.times(1)).getSize();
            Mockito.verifyNoMoreInteractions(mock);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test constructor with Configuration")
        void testConstructor() {
            assertNotNull(response);
            // Verify configuration is set through parent constructor
            verify(mockConfig, atLeastOnce()).getPid();
        }
    
        @Test
        @DisplayName("Test readParameterWordsWireFormat with zero setup count")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            // Verify all methods were called
            verify(mockBasicFileInfo).getAttributes();
            verify(mockBasicFileInfo).getCreateTime();
            verify(mockBasicFileInfo).getLastWriteTime();
            verify(mockBasicFileInfo).getLastAccessTime();
            verify(mockBasicFileInfo).getSize();
            verify(mockBasicFileInfo).getFileInformationLevel();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            ns.encode(spy);
            // NdrShort passes its value (already masked to 0xFF) to enc_ndr_short
            verify(spy).enc_ndr_short(42);
        }
    
        /**
         * Verify that decode invokes NdrBuffer.dec_ndr_short.
         */
        @Test
        void decodeWithSpiedBufferCallsDecMethod() throws NdrException {
            NdrShort ns = new NdrShort(0); // value will be overwritten
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            // Verify lease state
            assertEquals(leaseState, SMBUtil.readInt4(buffer, 40));
    
            // Verify directory-specific data
            assertEquals(DirectoryCacheScope.RECURSIVE_TREE.ordinal(), SMBUtil.readInt4(buffer, 56)); // CacheScope
            assertEquals(45000L, SMBUtil.readInt8(buffer, 60)); // MaxCacheAge
    
            // Verify flags (RECURSIVE_TREE + NOTIFICATIONS)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top