Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 160 for contract (0.06 sec)

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

    package jcifs.smb1.smb1;
    
    /**
     * Unit tests for {@link FileEntry}. The interface itself has no
     * implementation, so the tests exercise the contract via Mockito mocks.
     * Each method is exercised for normal inputs, extreme or edge cases, and
     * interaction verification.
     */
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.mockito.Mockito.mock;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

     */
    @ExtendWith(MockitoExtension.class)
    public class SmbRenewableCredentialsTest {
    
        // Simple base class to satisfy the extended CredentialsInternal contract
        static abstract class BaseCreds implements SmbRenewableCredentials {
            @Override
            public CredentialsInternal clone() {
                // For testing purposes, return this instance (allowed by return type)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashCode.java

       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
       * array or else you will break the immutability contract of {@code HashCode}.
       */
      byte[] getBytesInternal() {
        return asBytes();
      }
    
      /**
       * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SmbFilenameFilter interface behaviors via simple implementations.
     * Each test creates a concrete filter to validate expected contract semantics
     * including normal operation, null handling, edge cases, and exception flow.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbFilenameFilterTest {
    
        @Mock
        SmbFile mockDir;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbSessionTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    
    @DisplayName("SmbSession Interface Contract Tests")
    class SmbSessionTest {
    
        @Nested
        @DisplayName("AutoCloseable Contract Tests")
        class AutoCloseableContractTest {
    
            @Test
            @DisplayName("Should implement AutoCloseable interface")
            void shouldImplementAutoCloseable() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbPipeHandleTest.java

    import jcifs.smb.SmbPipeHandleInternal;
    
    /**
     * Unit tests for a class that implements the {@link SmbPipeHandle} interface.
     * This test class uses a mock implementation to ensure any class adhering to the
     * SmbPipeHandle contract is tested for correctness.
     */
    public class SmbPipeHandleTest {
    
        private SmbPipeHandle smbPipeHandle;
        private SmbPipeResource mockPipeResource;
        private SmbPipeHandleInternal mockSmbPipeHandleInternal;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            assertEquals("nested_value", ((Map<String, Object>) result.get("nested")).get("nested_key"));
        }
    
        // Test interface contract consistency
        public void test_interfaceContract() {
            TestSearchLogEvent event = new TestSearchLogEvent("contract-id", 5L, "contract-type");
    
            // Test consistency of returned values
            String id1 = event.getId();
            String id2 = event.getId();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/create/CreateContextRequest.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.smb2.create;
    
    import jcifs.Encodable;
    
    /**
     * SMB2 Create Context request interface. This interface defines the contract for
     * context data included in SMB2 Create requests.
     *
     * @author mbechler
     *
     */
    public interface CreateContextRequest extends Encodable {
    
        /**
         * Get the name of this create context.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for the NdrObject abstract class.
     * This test uses a concrete implementation to verify the abstract contract.
     */
    @ExtendWith(MockitoExtension.class)
    class NdrObjectTest {
    
        @Mock
        private NdrBuffer mockBuffer;
    
        private ConcreteNdrObject ndrObject;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/entity/SearchLogEvent.java

     */
    package org.codelibs.fess.entity;
    
    import java.util.Map;
    
    /**
     * Interface for search log events in the Fess search system.
     *
     * This interface defines the contract for search log event objects that can be
     * written to log files or stored in the search index. Implementations include
     * search logs, click logs, favorite logs, and user information logs.
     */
    public interface SearchLogEvent {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top