- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for test_get (0.05 sec)
-
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) -
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) -
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) -
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) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 8.3K bytes - Viewed (0) -
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) -
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) -
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) -
src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java
assertEquals("Mozilla/5.0 (compatible; Fess/98.76; +http://fess.codelibs.org/bot.html)", fessConfig.getUserAgentName()); systemPropMap.put(Constants.CRAWLING_USER_AGENT_PROPERTY, "TestAgent"); assertEquals("TestAgent", fessConfig.getUserAgentName()); } private void assertArrays(final String[] expected, final String[] actual) { Arrays.sort(expected); Arrays.sort(actual);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13K bytes - Viewed (0) -
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)