Package com.opensymphony.xwork2

Examples of com.opensymphony.xwork2.Foo


        // happen
        // This is a critical exception, so we better throw a
        // ValidationException
        // no need to continue
        logger.error(e);
        throw new ValidationException("Could not open inputstream for "
            + i);
      }
      imageSize = (int) i.length();
    } else {
      // it's .. uhm, something else. A football ? A hot blonde's address
      // ? Fourty Two ? We'll never know ..
      throw new ValidationException(
          "Invalid object. Expect either a String or File object. Object is "
              + image.getClass().getName());
    }
    if (!ii.check()) {
      setMessageKey(getMessageKey() + ".invalid");
View Full Code Here


    // param
    petiteContainer.defineParameter("foo.data", "data");

    // get bean
    Foo foo = (Foo) petiteContainer.getBean("foo");

    assertEquals("ctor null null", foo.result);
    assertEquals("bar", foo.bar.toString());
    assertEquals("data", foo.data);
  }
View Full Code Here

    // param
    petiteContainer.defineParameter("foo.data", "data");

    // get bean
    Foo foo = (Foo) petiteContainer.getBean("foo");

    assertEquals("ctor bar null", foo.result);
    assertEquals("bar", foo.bar.toString());
    assertEquals("data", foo.data);
  }
View Full Code Here

    // param
    petiteContainer.defineParameter("foo.data", "data");

    // get bean
    Foo foo = (Foo) petiteContainer.getBean("foo");

    assertEquals("ctor bar data", foo.result);
    assertEquals("bar", foo.bar.toString());
    assertEquals("data", foo.data);
  }
View Full Code Here

package specialiseReturnType3;
import lib.specialiseReturnType3.Foo;
import java.util.*;
public class Main extends Foo {
  public static void main(String[] args) {
    Foo f = new Main();
    Collection c = f.getColl();
    System.out.println(c);
 
View Full Code Here

package static2;
import lib.static2.Foo;
public class Main {
  public static void main(String[] args) {
    new Foo().foo();
  }
View Full Code Here

        super(testName);
    }

    public void testThis() throws Exception {
        Asserter asserter = new Asserter(JEXL);
        asserter.setVariable("this", new Foo());
       
        asserter.assertExpression("this.get('abc')", "Repeat : abc");
       
        try {
            asserter.assertExpression("this.count", "Wrong Value");
View Full Code Here

    public void testVariable() throws Exception {
        JexlEngine jexl = new JexlEngine();
        jexl.setSilent(true);
        Asserter asserter = new Asserter(jexl);
        asserter.setVariable("foo", new Foo());
        asserter.setVariable("person", "James");

        asserter.assertExpression("person", "James");
        asserter.assertExpression("size(person)", new Integer(5));
       
View Full Code Here

        super(testName);
    }

    public void testThis() throws Exception {
        Asserter asserter = new Asserter(JEXL);
        asserter.setVariable("this", new Foo());
       
        asserter.assertExpression("this.get('abc')", "Repeat : abc");
       
        try {
            asserter.assertExpression("this.count", "Wrong Value");
View Full Code Here

    public void testVariable() throws Exception {
        JexlEngine jexl = new JexlEngine();
        jexl.setSilent(true);
        Asserter asserter = new Asserter(jexl);
        asserter.setVariable("foo", new Foo());
        asserter.setVariable("person", "James");

        asserter.assertExpression("person", "James");
        asserter.assertExpression("size(person)", new Integer(5));
       
View Full Code Here

TOP

Related Classes of com.opensymphony.xwork2.Foo

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.