Examples of CurrentDateFunction


Examples of com.consol.citrus.functions.core.CurrentDateFunction

                Assert.assertEquals(context.getVariables().get(CitrusConstants.TEST_PACKAGE_VARIABLE), TestCase.class.getPackage().getName());
                Assert.assertEquals(context.getVariable("${name}"), "Citrus");
                Assert.assertEquals(context.getVariable("${framework}"), "Citrus");
                Assert.assertEquals(context.getVariable("${hello}"), "Hello Citrus!");
                Assert.assertEquals(context.getVariable("${goodbye}"), "Goodbye Citrus!");
                Assert.assertEquals(context.getVariable("${welcome}"), "Welcome Citrus, today is " + new CurrentDateFunction().execute(new ArrayList<String>(), context) + "!");
            }
        });
       
        testcase.execute(context);
    }
View Full Code Here

Examples of com.consol.citrus.functions.core.CurrentDateFunction

        Assert.assertEquals(FunctionUtils.resolveFunction("citrus:concat(${greeting}, ' ', ${text})", context), "Hello TestFramework!");
    }
   
    @Test
    public void testWithNestedFunctions() {
        Assert.assertEquals(FunctionUtils.resolveFunction("citrus:concat(citrus:currentDate('yyyy-mm-dd'))", context), new CurrentDateFunction().execute(Collections.singletonList("yyyy-mm-dd"), context));
        Assert.assertEquals(FunctionUtils.resolveFunction("citrus:concat('Now is: ', citrus:currentDate('yyyy-mm-dd'))", context), "Now is: " + new CurrentDateFunction().execute(Collections.singletonList("yyyy-mm-dd"), context));
        Assert.assertEquals(FunctionUtils.resolveFunction("citrus:concat(citrus:currentDate('yyyy-mm-dd'), ' ', citrus:concat('Hello', ' TestFramework!'))", context), new CurrentDateFunction().execute(Collections.singletonList("yyyy-mm-dd"), context) + " Hello TestFramework!");
    }
View Full Code Here

Examples of com.consol.citrus.functions.core.CurrentDateFunction

    @Test
    public void testWithNestedFunctionsAndVariables() {
        context.setVariable("greeting", "Hello");
        context.setVariable("dateFormat", "yyyy-mm-dd");
       
        Assert.assertEquals(FunctionUtils.resolveFunction("citrus:concat(citrus:currentDate('${dateFormat}'), ' ', citrus:concat(${greeting}, ' TestFramework!'))", context), new CurrentDateFunction().execute(Collections.singletonList("yyyy-mm-dd"), context) + " Hello TestFramework!");
    }
View Full Code Here

Examples of com.salesforce.phoenix.expression.function.CurrentDateFunction

        super(name, children, info);
    }

    @Override
    public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException {
        return new CurrentDateFunction(context.getCurrentTime());
    }
View Full Code Here

Examples of org.apache.phoenix.expression.function.CurrentDateFunction

        super(name, children, info);
    }

    @Override
    public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException {
        return new CurrentDateFunction(context.getCurrentTime());
    }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.CurrentDateFunction

  public Expression<Double> sqrt(Expression<? extends Number> expression) {
    return new SqrtFunction( this, expression );
  }

  public Expression<java.sql.Date> currentDate() {
    return new CurrentDateFunction( this );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.CurrentDateFunction

  public Expression<Double> sqrt(Expression<? extends Number> expression) {
    return new SqrtFunction( this, expression );
  }

  public Expression<java.sql.Date> currentDate() {
    return new CurrentDateFunction( this );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.CurrentDateFunction

  public Expression<Double> sqrt(Expression<? extends Number> expression) {
    return new SqrtFunction( this, expression );
  }

  public Expression<java.sql.Date> currentDate() {
    return new CurrentDateFunction( this );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.CurrentDateFunction

  public Expression<Double> sqrt(Expression<? extends Number> expression) {
    return new SqrtFunction( this, expression );
  }

  public Expression<java.sql.Date> currentDate() {
    return new CurrentDateFunction( this );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.CurrentDateFunction

  public Expression<Double> sqrt(Expression<? extends Number> expression) {
    return new SqrtFunction( this, expression );
  }

  public Expression<java.sql.Date> currentDate() {
    return new CurrentDateFunction( this );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.