Package org.apache.struts.taglib

Examples of org.apache.struts.taglib.SimpleBeanForTesting





    public void testMessageTagNoArgNamePropertyNoScopeDefaultBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertyNoScopeDefaultBundle", new Locale("fr","fr"));
  }
View Full Code Here


  public void endMessageTagNoArgNamePropertyNoScopeDefaultBundle(WebResponse response){
    formatAndTest(TEST_VAL_FR, response.getText());
  }

    public void testMessageTagNoArgNamePropertyApplicationScopeDefaultBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message"), PageContext.APPLICATION_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertyApplicationScopeDefaultBundle", new Locale("fr","fr"));
  }
View Full Code Here

  public void endMessageTagNoArgNamePropertyApplicationScopeDefaultBundle(WebResponse response){
    formatAndTest(TEST_VAL_FR, response.getText());
  }

    public void testMessageTagNoArgNamePropertySessionScopeDefaultBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message"), PageContext.SESSION_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertySessionScopeDefaultBundle", new Locale("fr","fr"));
  }
View Full Code Here

  public void endMessageTagNoArgNamePropertySessionScopeDefaultBundle(WebResponse response){
    formatAndTest(TEST_VAL_FR, response.getText());
  }

    public void testMessageTagNoArgNamePropertyRequestScopeDefaultBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertyRequestScopeDefaultBundle", new Locale("fr","fr"));
  }
View Full Code Here

    formatAndTest(TEST_VAL_FR, response.getText());
  }


    public void testMessageTagNoArgNamePropertyNoScopeAlternateBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertyNoScopeAlternateBundle", new Locale("fr","fr"));
  }
View Full Code Here

  public void endMessageTagNoArgNamePropertyNoScopeAlternateBundle(WebResponse response){
    formatAndTest(TEST_VAL_FR, response.getText());
  }

    public void testMessageTagNoArgNamePropertyApplicationScopeAlternateBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message"), PageContext.APPLICATION_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertyApplicationScopeAlternateBundle", new Locale("fr","fr"));
  }
View Full Code Here

  public void endMessageTagNoArgNamePropertyApplicationScopeAlternateBundle(WebResponse response){
    formatAndTest(TEST_VAL_FR, response.getText());
  }

    public void testMessageTagNoArgNamePropertySessionScopeAlternateBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message"), PageContext.SESSION_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertySessionScopeAlternateBundle", new Locale("fr","fr"));
  }
View Full Code Here

  public void endMessageTagNoArgNamePropertySessionScopeAlternateBundle(WebResponse response){
    formatAndTest(TEST_VAL_FR, response.getText());
  }

    public void testMessageTagNoArgNamePropertyRequestScopeAlternateBundle_fr(){
      pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTagNoArgNamePropertyRequestScopeAlternateBundle", new Locale("fr","fr"));
  }
View Full Code Here

        return new TestSuite(TestImageTag3.class);
    }

    private void runMyTest(String whichTest, String locale) throws Exception {
        pageContext.setAttribute(Globals.LOCALE_KEY, new Locale(locale, locale), PageContext.SESSION_SCOPE);
        pageContext.setAttribute(Constants.BEAN_KEY, new SimpleBeanForTesting("Test Value"), PageContext.REQUEST_SCOPE);
        request.setAttribute("runTest", whichTest);
        pageContext.forward("/test/org/apache/struts/taglib/html/TestImageTag3.jsp");
    }
View Full Code Here

                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                SimpleBeanForTesting sbft = new SimpleBeanForTesting(map);
                pageContext.setAttribute("paramPropertyMap", sbft, PageContext.REQUEST_SCOPE);
       runMyTest("testFramePageNamePropertyNoScope", "");
    }
View Full Code Here

TOP

Related Classes of org.apache.struts.taglib.SimpleBeanForTesting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.