Package org.apache.struts.taglib

Examples of org.apache.struts.taglib.SimpleBeanForTesting


   
    public void testOptionsCollectionArrayItemValueInCollectionPropertyLabelProperty() throws Exception {
      pageContext.setAttribute("arrayOfLVB", createArrayOfLVB(), PageContext.REQUEST_SCOPE);
      pageContext.setAttribute(Constants.BEAN_KEY,
          new SimpleBeanForTesting("key1"), PageContext.REQUEST_SCOPE);
      runTest("testOptionsCollectionArrayItemValueInCollectionPropertyLabelProperty", "");
    }
View Full Code Here


    }
   
    public void testOptionsCollectionArrayItemValueNotInCollectionPropertyLabelProperty() throws Exception {
      pageContext.setAttribute("arrayOfLVB", createArrayOfLVB(), PageContext.REQUEST_SCOPE);
      pageContext.setAttribute(Constants.BEAN_KEY,
          new SimpleBeanForTesting("key15"), PageContext.REQUEST_SCOPE);
      runTest("testOptionsCollectionArrayItemValueNotInCollectionPropertyLabelProperty", "");
    }
View Full Code Here

   

    public void testOptionsNameArrayItemValueInCollection() throws Exception {
      pageContext.setAttribute("stringValues", createArrayofStrings(), PageContext.REQUEST_SCOPE);
      pageContext.setAttribute(Constants.BEAN_KEY,
          new SimpleBeanForTesting("val1"), PageContext.REQUEST_SCOPE);
      runTest("testOptionsNameArrayItemValueInCollection", "");
    }
View Full Code Here

    }
   
    public void testOptionsNameArrayItemValueNotInCollection() throws Exception {
      pageContext.setAttribute("stringValues", createArrayofStrings(), PageContext.REQUEST_SCOPE);
      pageContext.setAttribute(Constants.BEAN_KEY,
          new SimpleBeanForTesting("val15"), PageContext.REQUEST_SCOPE);
      runTest("testOptionsNameArrayItemValueNotInCollection", "");
    }
View Full Code Here

      runTest("testOptionsNameArrayItemValueNotInCollection", "");
    }

   
    public void testOptionsPropertyArrayItemValueInCollection() throws Exception {
      SimpleBeanForTesting sbft = new SimpleBeanForTesting("val1");
      sbft.setStringArray(createArrayofStrings());
      pageContext.setAttribute(Constants.BEAN_KEY,
          sbft, PageContext.REQUEST_SCOPE);
      runTest("testOptionsPropertyArrayItemValueInCollection", "");
    }
View Full Code Here

          sbft, PageContext.REQUEST_SCOPE);
      runTest("testOptionsPropertyArrayItemValueInCollection", "");
    }
   
    public void testOptionsPropertyArrayItemValueNotInCollection() throws Exception {
      SimpleBeanForTesting sbft = new SimpleBeanForTesting("val15");
      sbft.setStringArray(createArrayofStrings());
      pageContext.setAttribute(Constants.BEAN_KEY,
          sbft, PageContext.REQUEST_SCOPE);
      runTest("testOptionsPropertyArrayItemValueNotInCollection", "");
    }
View Full Code Here

    }
   
   
    public void testOptionsNamePropertyArrayItemValueInCollection() throws Exception {
      pageContext.setAttribute("stringValues",
        new  SimpleBeanForTesting(createArrayofStrings()), PageContext.REQUEST_SCOPE);
      pageContext.setAttribute(Constants.BEAN_KEY,
          new SimpleBeanForTesting("val1"), PageContext.REQUEST_SCOPE);
      runTest("testOptionsNamePropertyArrayItemValueInCollection", "");
    }
View Full Code Here

      runTest("testOptionsNamePropertyArrayItemValueInCollection", "");
    }
   
    public void testOptionsNamePropertyArrayItemValueNotInCollection() throws Exception {
      pageContext.setAttribute("stringValues",
          new  SimpleBeanForTesting(createArrayofStrings()), PageContext.REQUEST_SCOPE);
      pageContext.setAttribute(Constants.BEAN_KEY,
          new SimpleBeanForTesting("val15"), PageContext.REQUEST_SCOPE);
      runTest("testOptionsNamePropertyArrayItemValueNotInCollection", "");
    }
View Full Code Here

        pageContext.setAttribute("lst", lst, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkHrefIndexedArray", "");
        }

    public void testLinkHrefIndexedArrayProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        ArrayList lst = new ArrayList();
        lst.add("Test Message");
        sbft.setList(lst);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkHrefIndexedArrayProperty", "");
        }
View Full Code Here

        pageContext.setAttribute("lst", map, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkHrefIndexedMap", "");
        }

    public void testLinkHrefIndexedMapProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        HashMap map = new HashMap();
        map.put("tst1", "Test Message");
        sbft.setMap(map);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkHrefIndexedMapProperty", "");
        }
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.