Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 604 for Ensure (0.05 sec)

  1. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        @Mock
        SmbResourceLocatorInternal locator;
    
        @Mock
        SmbResourceLocator other;
    
        @Mock
        DfsReferralData referral;
    
        // Reflection-based API checks ensure the interface contract is as expected
        @Test
        @DisplayName("Type hierarchy and method signatures are correct")
        void typeAndSignatures() throws Exception {
            Class<?> clazz = SmbResourceLocatorInternal.class;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.Mockito;
    
    /**
     * Tests for {@link SmbFilenameFilter}. Since the interface only defines
     * a single method, the tests simply ensure that the lambda expression
     * correctly implements the method and that any exception is propagated.
     */
    class SmbFilenameFilterTest {
    
        @Test
        void acceptReturnsTrueWhenNameMatches() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosConstantsTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the KerberosConstants interface.
     */
    class KerberosConstantsTest {
    
        /**
         * This test primarily exists to ensure the constants interface can be loaded
         * and to provide a basic check of its values.
         * Since it's an interface with only static final fields, there is no complex logic to test.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  4. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    import android.content.Context
    import androidx.startup.Initializer
    
    /**
     * Androidx Startup initializer to ensure that the AndroidPlatform has access to the application context.
     */
    class PlatformInitializer : Initializer<Platform> {
      override fun create(context: Context): Platform {
        PlatformRegistry.applicationContext = context
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Dec 31 14:50:53 UTC 2024
    - 1K bytes
    - Viewed (1)
  5. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

         */
        public int read(final byte b[], final int off, int len) throws SmbException {
            if (len <= 0) {
                return 0;
            }
            final long start = fp;
    
            // ensure file is open
            if (!file.isOpen()) {
                file.open(openFlags, 0, SmbFile.ATTR_NORMAL, options);
            }
    
            int r, n;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/NetbiosAddressTest.java

            assertNotNull(NbtAddress.UNKNOWN_MAC_ADDRESS);
            assertEquals(6, NbtAddress.UNKNOWN_MAC_ADDRESS.length);
        }
    
        @Test
        void testConstantsAreImmutable() {
            // Ensure constants are properly defined as final
            // This test just verifies the constants exist and are accessible
            String anyHosts = NbtAddress.ANY_HOSTS_NAME;
            String masterBrowser = NbtAddress.MASTER_BROWSER_NAME;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NbtExceptionTest.java

            assertTrue(exception instanceof CIFSException, "NbtException should be an instance of CIFSException");
        }
    
        /**
         * Test the getErrorString method with various error classes and codes to ensure all branches are covered.
         */
        @ParameterizedTest
        @MethodSource("provideErrorClassAndCodeForGetErrorString")
        @DisplayName("getErrorString should return correct messages for all defined error classes and codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/DuplicateHostService.java

            return duplicateHostBhv.selectByPK(id);
        }
    
        /**
         * Stores (inserts or updates) a duplicate host configuration.
         *
         * <p>This method immediately refreshes the index to ensure the change is visible.
         * If the configuration already exists (based on ID), it will be updated;
         * otherwise, a new configuration will be created.</p>
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. docs/contribute/code_of_conduct.md

    of releasing and managing open source software. We’ve seen incredible support and enthusiasm from
    thousands of people who have already contributed to our projects — and we want to ensure our community
    continues to be truly open for everyone.
    
    This code of conduct outlines our expectations for participants, as well as steps to reporting
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/BaseTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Base test class providing common test infrastructure and utilities.
     * All test classes should extend this to ensure consistent test setup.
     */
    @ExtendWith(MockitoExtension.class)
    public abstract class BaseTest {
    
        protected final Logger logger = LoggerFactory.getLogger(getClass());
    
        @BeforeEach
        void baseSetUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.2K bytes
    - Viewed (0)
Back to top