Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 337 for Given (2.95 sec)

  1. src/test/java/jcifs/CredentialsTest.java

                mockCredentials.isAnonymous();
                mockCredentials.isGuest();
            });
        }
    
        @Test
        @DisplayName("Should unwrap to correct type")
        void testUnwrap() {
            // Given
            when(mockCredentials.unwrap(Credentials.class)).thenReturn(mockCredentials);
    
            // When
            Credentials unwrapped = mockCredentials.unwrap(Credentials.class);
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        }
    
        @Test
        @DisplayName("Should create new connections when reuse conditions are not met")
        void testNoConnectionReuse() throws Exception {
            // Given: Create a new pool for this test to ensure isolation
            SmbTransportPoolImpl testPool = new SmbTransportPoolImpl();
            when(ctx.getTransportPool()).thenReturn(testPool);
    
            // Create an existing connection
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

            }
    
            @Test
            @DisplayName("Package constructor should initialize with binding and handle")
            void testPackageConstructor() throws Exception {
                // Given
                int maxXmit = 4096;
                int maxRecv = 4096;
                when(mockHandle.getMaxXmit()).thenReturn(maxXmit);
                when(mockHandle.getMaxRecv()).thenReturn(maxRecv);
    
                // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/NameServiceClient.java

         *
         * @return the unknown name
         */
        NetbiosName getUnknownName();
    
        /**
         * Retrieve all addresses of a host by it's address. NetBIOS hosts can
         * have many names for a given IP address. The name and IP address make the
         * NetBIOS address. This provides a way to retrieve the other names for a
         * host with the same IP address.
         *
         * @param addr
         *            the address to query
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/fe.tld

        <description>
          Returns Date from a given value.
        </description>
        <name>date</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>java.util.Date date(java.lang.Long)</function-signature>
        <example>
          ${fe:date(doc.tstamp)}
        </example>
      </function>
    
      <function>
        <description>
          Returns Date from a given value.
        </description>
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Jan 18 11:38:54 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

        protected LongConversionUtil() {
        }
    
        /**
         * Converts the given object to a {@link Long}.
         *
         * @param o
         *            the object to convert
         * @return the converted {@link Long}
         */
        public static Long toLong(final Object o) {
            return toLong(o, null);
        }
    
        /**
         * Converts the given object to a {@link Long}.
         *
         * @param o
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            assertTrue(exception instanceof RuntimeException);
        }
    
        @Test
        @DisplayName("Should create RuntimeCIFSException with message")
        void testConstructorWithMessage() {
            // Given
            String message = "CIFS runtime error occurred";
    
            // When
            RuntimeCIFSException exception = new RuntimeCIFSException(message);
    
            // Then
            assertNotNull(exception);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

        }
    
        /**
         * Test that releaseBuffer validates buffer before accepting it.
         */
        @Test
        public void testReleaseBufferValidation() {
            // Given - Various invalid buffers
            byte[] nullBuffer = null;
            byte[] wrongSizeBuffer = new byte[100]; // Wrong size
            byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/FieldUtil.java

     */
    public abstract class FieldUtil {
    
        /**
         * Do not instantiate.
         */
        protected FieldUtil() {
        }
    
        /**
         * Returns the value of a {@code static} field represented by the given {@link Field}.
         *
         * @param <T> the type of the field
         * @param field the field (must not be {@literal null})
         * @return the value represented by the {@code static} field
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/CIFSContextTest.java

                mockContext.renewCredentials("hint", new Exception());
            });
        }
    
        @Test
        @DisplayName("Should get SmbResource")
        void testGet() throws CIFSException {
            // Given
            String url = "smb://server/share/file";
            SmbResource mockResource = mock(SmbResource.class);
            when(mockContext.get(url)).thenReturn(mockResource);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top