Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 228 for behaviors (0.8 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            // This test assumes that the AvPair constructor does NOT make a defensive copy of the raw array.
            // If a defensive copy were made, this test would fail, and the behavior would be more robust.
            // Given the current implementation, direct modification of the passed array affects the AvPair.
            // If this is not desired, a defensive copy should be added in the AvPair constructor.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

    class SmbComCreateDirectoryTest {
    
        private Configuration mockConfig;
    
        @BeforeEach
        void setUp() {
            // Mock the Configuration object
            mockConfig = mock(Configuration.class);
            // Define behavior for the OEM encoding, which is used by writeString
            when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name());
        }
    
        @Test
        void testConstructor() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/AddressTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Comprehensive test suite for Address interface.
     * Tests the contract and behavior of Address implementations.
     */
    @DisplayName("Address Interface Tests")
    class AddressTest extends BaseTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Address mockAddress;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

    import java.io.ObjectOutputStream;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import jcifs.BaseTest;
    import jcifs.CIFSException;
    
    /**
     * Tests for SpnegoException constructors and behavior.
     */
    @DisplayName("SpnegoException Tests")
    class SpnegoExceptionTest extends BaseTest {
    
        @Test
        @DisplayName("Should create SpnegoException with default constructor")
        void testDefaultConstructor() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/AbstractIntervalController.java

     * Provides a common structure for handling delays at different stages of the crawling process.
     * It encapsulates the delay logic and exception handling, allowing subclasses to focus on
     * defining the specific delay behavior for each stage.
     *
     * <p>
     * This class defines the contract for delaying the crawling process at various points, such as:
     * </p>
     * <ul>
     *   <li>Before processing a URL ({@link #delayBeforeProcessing()})</li>
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

    import org.mockito.Mock;
    import org.mockito.Mockito;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SmbAuthException covering all constructors and inherited behavior.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbAuthExceptionTest {
    
        /**
         * Provide representative error codes for the int constructor.
         * - NT status code (high bits set)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/RoleTypeService.java

    /**
     * Service class for managing role types.
     */
    public class RoleTypeService {
    
        /**
         * Constructor.
         */
        public RoleTypeService() {
            super();
        }
    
        /**
         * The behavior for role types.
         */
        @Resource
        protected RoleTypeBhv roleTypeBhv;
    
        /**
         * The Fess configuration.
         */
        @Resource
        protected FessConfig fessConfig;
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/BufferCacheTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Comprehensive test suite for BufferCache interface.
     * Tests the contract and behavior of BufferCache implementations.
     */
    @DisplayName("BufferCache Interface Tests")
    class BufferCacheTest extends BaseTest {
    
        @Mock
        private BufferCache mockBufferCache;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            }
    
            // Session should be automatically released
            assertFalse(session.isInUse(), "Session should be released after try-with-resources");
        }
    
        /**
         * Test resource cleanup behavior
         */
        @Test
        @Timeout(5)
        public void testResourceCleanup() throws Exception {
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeInternalTest.java

    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.SmbTree;
    import jcifs.internal.CommonServerMessageBlockResponse;
    import jcifs.internal.Request;
    
    /**
     * Tests for SmbTreeInternal interface behavior via mocks.
     * Since this is an interface, we validate its public API contract
     * through interaction testing and generic type usage.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbTreeInternalTest {
    
        @Mock
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top