Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 737 for helper (1.22 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    @ExtendWith(MockitoExtension.class)
    class Smb2LogoffResponseTest {
    
        // Helper to create an instance with a mocked Configuration
        private Smb2LogoffResponse newResponse() {
            Configuration cfg = Mockito.mock(Configuration.class);
            return new Smb2LogoffResponse(cfg);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

                int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
    
                assertTrue(bytesRead > 0);
                // readDataWireFormat returns bytes consumed from header, not full buffer
                assertEquals(28, bytesRead); // Header + one referral structure
                assertNotNull(response.getDfsResponse());
            }
    
            @Test
            @DisplayName("Should handle readDataWireFormat with offset")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DosErrorTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.ArgumentCaptor;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    @ExtendWith(MockitoExtension.class)
    class DosErrorTest {
    
        // Helper that performs a lookup over the constants exposed by DosError.
        // Returns -1 if the DOS code is not mapped.
        private static int findNtStatusOrMinusOne(int dosCode) {
            for (int[] pair : DosError.DOS_ERROR_CODES) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/PluginHelper.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.helper;
    
    import static org.codelibs.core.stream.StreamUtil.split;
    
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

    import org.codelibs.fess.crawler.entity.ResponseData;
    import org.codelibs.fess.crawler.exception.CrawlingAccessException;
    import org.codelibs.fess.exception.ThumbnailGenerationException;
    import org.codelibs.fess.helper.CrawlingConfigHelper;
    import org.codelibs.fess.helper.IndexingHelper;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.opensearch.client.SearchEngineClient;
    import org.codelibs.fess.opensearch.config.exentity.CrawlingConfig;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SystemHelper.java

    import jakarta.annotation.PreDestroy;
    
    /**
     * Helper class for system-level operations and utilities.
     * This class provides methods for managing system properties, handling JSP files,
     * normalizing configurations, and other system-related tasks.
     */
    public class SystemHelper {
    
        /**
         * Constructs a new system helper.
         */
        public SystemHelper() {
            // do nothing
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/SerializeUtilTest.java

            assertEquals(3, result.size());
            assertEquals("first", result.get(0));
            assertNull(result.get(1));
            assertEquals("third", result.get(2));
        }
    
        /**
         * Test helper class for serialization tests
         */
        public static class TestSerializableClass implements Serializable {
            private static final long serialVersionUID = 1L;
    
            public String name;
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/SingletonContextTest.java

            SingletonContext.registerSmbURLHandler();
            assertEquals("com.example|jcifs|org.test", System.getProperty("java.protocol.handler.pkgs"));
        }
    
        // Helper method to get the singleton instance via reflection for assertion
        private Object getSingletonInstanceViaReflection() {
            try {
                Field instance = SingletonContext.class.getDeclaredField("INSTANCE");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtlmPasswordAuthenticator;
    import jcifs.smb.SmbException;
    
    /**
     * Unit tests exercising {@link SmbComSessionSetupAndX}.  The class under test
     * contains several protected helper methods and a complex constructor
     * that branches on credential type.  These tests use reflection to call
     * protected methods and Mockito to stub collaborators.
     */
    @ExtendWith(MockitoExtension.class)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/sereq/AdminSereqAction.java

         * Creates a CURL request from the provided header string.
         *
         * @param header the header string containing HTTP method and path
         * @return CURL request object or null if header is invalid
         */
        private CurlRequest getCurlRequest(final String header) {
            if (StringUtil.isBlank(header)) {
                return null;
            }
    
            final String[] values = header.split(" ");
            if (values.length != 2) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top