Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for test_Get (0.04 sec)

  1. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

            assertEquals("text", fileTypeHelper.get("text/plain"));
    
            fileTypeHelper.add("image/jpeg", "image");
            assertEquals("image", fileTypeHelper.get("image/jpeg"));
        }
    
        public void test_get() {
            fileTypeHelper.add("application/pdf", "pdf");
            fileTypeHelper.add("text/plain", "text");
    
            assertEquals("pdf", fileTypeHelper.get("application/pdf"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/CurlHelperTest.java

        private CurlHelper curlHelper;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            curlHelper = new CurlHelper();
        }
    
        public void test_get() {
            // Mock FessConfig and ResourceUtil
            setupMockConfig("localhost:9200", "", "");
    
            curlHelper.init();
            CurlRequest request = curlHelper.get("/test");
    
            assertNotNull(request);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlTest.java

    import org.codelibs.curl.Curl.Method;
    import org.junit.Test;
    
    public class CurlTest {
        private static final Logger logger = Logger.getLogger(CurlTest.class.getName());
    
        @Test
        public void test_Get() {
            Curl.get("https://www.codelibs.org/").execute(response -> {
                final String content = response.getContentAsString();
                logger.info(content);
                assertTrue(content.length() > 0);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

        /** */
        public static final int INT_DATA = 987654321;
    
        /** */
        public static final String STRING_DATA = "Hello World!";
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            final Field field = getClass().getField("objectField");
            final Integer testData = Integer.valueOf(123);
            FieldUtil.set(field, this, testData);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/HMACT64Test.java

    import org.mockito.Mock;
    import org.mockito.MockedStatic;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    @ExtendWith(MockitoExtension.class)
    class HMACT64Test {
    
        private static final byte[] TEST_KEY = "testkey".getBytes();
        private static final byte[] LONG_TEST_KEY = "thisisalongtestkeythatislongerthan64bytesandshouldbetruncated".getBytes();
        private static final byte[] SHORT_TEST_KEY = "short".getBytes();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/util/HMACT64Test.java

            // Test engineUpdate(byte b)
            HMACT64 hmac = new HMACT64(TEST_KEY);
            hmac.engineUpdate((byte) 0x01);
            // No exception means success
        }
    
        @Test
        void testEngineUpdateByteArray() {
            // Test engineUpdate(byte[] input, int offset, int len)
            HMACT64 hmac = new HMACT64(TEST_KEY);
            hmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length);
            // No exception means success
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            } catch (final ClIndexOutOfBoundsException ex) {
                System.out.println(ex);
            }
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            assertThat(list.get(0), is("1"));
            assertThat(list.get(1), is("2"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java

            nested.put("NestedKey", "nestedValue");
            source.put("NestedMap", nested);
    
            Map<String, Object> result = searchLogHelper.toLowerHyphen(source);
    
            assertEquals("value1", result.get("test_key"));
            assertEquals("value2", result.get("another_test_key"));
    
            @SuppressWarnings("unchecked")
            Map<String, Object> nestedResult = (Map<String, Object>) result.get("nested_map");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/util/BeanMapTest.java

         * @see org.junit.rules.ExpectedException
         */
        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            final BeanMap map = new BeanMap();
            map.put("aaa", 1);
            map.put("bbb", 2);
            assertThat(map.get("aaa"), is((Object) 1));
        }
    
        /**
         * @throws Exception
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/CIFSContextTest.java

                mockContext.withCredentials(mock(Credentials.class));
                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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top