Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getMockRequest (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top