- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getMockRequest (0.21 sec)
-
src/test/java/org/codelibs/fess/helper/UserAgentHelperTest.java
} public void test_getUserAgentType_IE9() { getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)"); assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType()); } public void test_getUserAgentType_IE10() { getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java
}; Set<String> roleSet; roleSet = buildByParameter(roleQueryHelperImpl, getMockRequest()); assertEquals(0, roleSet.size()); roleQueryHelperImpl.parameterKey = "fess1"; getMockRequest().setParameter("aaa", "bbb"); roleSet = buildByParameter(roleQueryHelperImpl, getMockRequest()); assertEquals(0, roleSet.size()); roleQueryHelperImpl.encryptedParameterValue = false;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 14.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/entity/GeoInfoTest.java
import org.dbflute.utflute.mocklet.MockletHttpServletRequest; public class GeoInfoTest extends UnitFessTestCase { public void test_34_150_10() { MockletHttpServletRequest request = getMockRequest(); request.setParameter("geo.location.point", "34,150"); request.setParameter("geo.location.distance", "10km"); final GeoInfo geoInfo = new GeoInfo(request); String result =
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java
MockletHttpServletRequest req = getMockRequest(); req.addHeader("Authorization", "Bearer " + token); assertEquals(token, accessTokenHelper.getAccessTokenFromRequest(req)); } public void test_getAccessTokenFromRequest_ok1() { final String token = accessTokenHelper.generateAccessToken(); MockletHttpServletRequest req = getMockRequest(); req.addHeader("Authorization", token);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
} } public void test_getForumLink() { getMockRequest().setLocale(Locale.ENGLISH); assertEquals("https://discuss.codelibs.org/c/FessEN/", systemHelper.getForumLink()); getMockRequest().setLocale(Locale.JAPANESE); assertEquals("https://discuss.codelibs.org/c/FessJA/", systemHelper.getForumLink()); getMockRequest().setLocale(Locale.ITALIAN);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 18.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/UserInfoHelperTest.java
public class UserInfoHelperTest extends UnitFessTestCase { public void test_getUserCodeFromRequest() { UserInfoHelper userInfoHelper = new UserInfoHelper(); MockletHttpServletRequest request = getMockRequest(); assertNull(userInfoHelper.getUserCodeFromRequest(request)); request.setParameter("userCode", ""); assertNull(userInfoHelper.getUserCodeFromRequest(request));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/QueryHelperTest.java
} } private void assertHighlightedQueries(Set<String> highlightedQuerySet) { @SuppressWarnings("unchecked") Set<String> set = (Set<String>) getMockRequest().getAttribute(Constants.HIGHLIGHT_QUERIES); if (highlightedQuerySet != null) { assertEquals(highlightedQuerySet.stream().sorted().collect(Collectors.joining("\n")),
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Jul 11 08:26:36 UTC 2024 - 39.8K bytes - Viewed (0)