Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 3,060 for _shouldn (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        @Test
        @DisplayName("Construct with a valid configuration - should not throw")
        void testConstructionWithValidConfiguration() {
            assertDoesNotThrow(() -> new SmbComSeekResponse(mockConfig));
        }
    
        @Test
        @DisplayName("getOffset before any read - should return zero")
        void testOffsetInitiallyZero() {
            assertEquals(0L, response.getOffset(), "Offset should be initialized to 0");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

            assertNotNull(appType);
            // appType should be either empty string or the actual env value
            assertTrue(appType.isEmpty() || appType.length() > 0);
        }
    
        public void test_getOverrideConfPath() {
            // Test when app type is not docker
            OptionalEntity<String> confPath = ResourceUtil.getOverrideConfPath();
            assertNotNull(confPath);
            // Should be empty when not docker app type
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            // Should pass without exception
        }
    
        @Test
        public void testValidPath() throws Exception {
            validator.validatePath("\\share\\folder\\file.txt");
            validator.validatePath("C:\\Windows\\System32");
            validator.validatePath(null); // Null should be allowed
            validator.validatePath(""); // Empty should be allowed
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

            // 2. Should have exactly one private constructor
            Constructor<?>[] constructors = WebApiUtil.class.getDeclaredConstructors();
            assertEquals("Should have exactly one constructor", 1, constructors.length);
            assertTrue("Constructor should be private", java.lang.reflect.Modifier.isPrivate(constructors[0].getModifiers()));
    
            // 3. All public methods should be static
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

    class Smb2LeaseKeyTest {
    
        @Test
        @DisplayName("Should generate random lease key with correct size")
        void testRandomLeaseKeyGeneration() {
            Smb2LeaseKey key = new Smb2LeaseKey();
    
            assertNotNull(key.getKey());
            assertEquals(16, key.getKey().length);
            assertFalse(key.isZero());
        }
    
        @Test
        @DisplayName("Should create lease key from byte array")
        void testLeaseKeyFromBytes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbFileHandleTest.java

            assertEquals(smbTreeHandle, result, "getTree should return the mocked SmbTreeHandle.");
            verify(smbFileHandle, times(1)).getTree();
        }
    
        /**
         * Test isValid() when the handle is valid.
         */
        @Test
        void testIsValid_whenValid() {
            when(smbFileHandle.isValid()).thenReturn(true);
            assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

                caughtSpecific = true;
            } catch (RuntimeException e) {
                caughtRuntime = true;
            }
    
            assertTrue("Should have caught DictionaryExpiredException", caughtSpecific);
            assertFalse("Should not have caught as RuntimeException", caughtRuntime);
        }
    
        public void test_rethrow() {
            // Test rethrowing the exception
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

      public void testAbsent() {
        assertEquals(
            "Map.merge(absent, value, function) should return value",
            v3(),
            getMap()
                .merge(
                    k3(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
                          "Should not call merge function if key was absent");
                    }));
        expectAdded(e3());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/UniAddressTest.java

            assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called");
        }
    
        @Test
        void nextCalledNameWithInetAddressReturnsSMBSERVERFirstIfNotDefault() {
            // Arrange
            InetAddress addr = mock(InetAddress.class);
            when(addr.getHostName()).thenReturn("mycomputer.foo.com");
            UniAddress ua = new UniAddress(addr);
            // Act: first call should set to SMBSERVER_NAME
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/tomcat/valve/SuppressErrorReportValveTest.java

            valve1.setShowReport(true);
            valve1.setShowServerInfo(true);
    
            // valve2 should still have default values
            assertFalse("valve2 should have independent ShowReport setting", valve2.isShowReport());
            assertFalse("valve2 should have independent ShowServerInfo setting", valve2.isShowServerInfo());
        }
    
        public void test_toggleSettingsMultipleTimes() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top