Examples of FunctionContext


Examples of org.eclipse.sapphire.modeling.el.FunctionContext

    @Test
    @SuppressWarnings( "unchecked" )
   
    public void testVaried()
    {
        testForExpectedValue( new FunctionContext(), "${ List( 'x', 123, 123.456 ) }", list( "x", new BigInteger( "123" ), new BigDecimal( "123.456" ) ) );
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

    public void testWithModelElementList()
    {
        final TestModelRoot root = TestModelRoot.TYPE.instantiate();
        final ElementList<TestModelElementA> list = root.getList1();
        final FunctionContext context = new ModelElementFunctionContext( root );
       
        TestModelElementA a;
       
        testForExpectedValue( context, "${ Max( List1 ) }", null );
        testForExpectedValue( context, "${ Max( List1, 'Value1' ) }", null );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

{
    @Test
   
    public void testWithArray()
    {
        FunctionContext context;
       
        context = new TestFunctionContext( new Object[] {} );
        testForExpectedValue( context, "${ Sum( Collection ) }", new BigDecimal( "0" ) );

        context = new TestFunctionContext( new Object[] { "1" } );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

   
    @Test
   
    public void testWithList()
    {
        FunctionContext context;
       
        context = new TestFunctionContext( list() );
        testForExpectedValue( context, "${ Sum( Collection ) }", new BigDecimal( "0" ) );

        context = new TestFunctionContext( list( "1" ) );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

{
    @Test
   
    public void testWithArray()
    {
        FunctionContext context;
       
        context = new TestFunctionContext( new Object[] {} );
        testForExpectedValue( context, "${ Min( Collection ) }", null );

        context = new TestFunctionContext( new Object[] { "1" } );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

   
    @Test
   
    public void testWithSet()
    {
        FunctionContext context;
       
        context = new TestFunctionContext( set() );
        testForExpectedValue( context, "${ Sum( Collection ) }", new BigDecimal( "0" ) );

        context = new TestFunctionContext( set( "1" ) );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

   
    @Test
   
    public void testWithList()
    {
        FunctionContext context;
       
        context = new TestFunctionContext( list() );
        testForExpectedValue( context, "${ Min( Collection ) }", null );

        context = new TestFunctionContext( list( "1" ) );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

    public void testWithModelElementList()
    {
        final TestModelRoot root = TestModelRoot.TYPE.instantiate();
        final ElementList<TestModelElementA> list = root.getList1();
        final FunctionContext context = new ModelElementFunctionContext( root );
       
        TestModelElementA a;
       
        testForExpectedValue( context, "${ Sum( List1 ) }", new BigDecimal( "0" ) );
        testForExpectedValue( context, "${ Sum( List1, 'Value1' ) }", new BigDecimal( "0" ) );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

   
    @Test
   
    public void testWithSet()
    {
        FunctionContext context;
       
        context = new TestFunctionContext( set() );
        testForExpectedValue( context, "${ Min( Collection ) }", null );

        context = new TestFunctionContext( set( "1" ) );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionContext

    public void testWithModelElementList()
    {
        final TestModelRoot root = TestModelRoot.TYPE.instantiate();
        final ElementList<TestModelElementA> list = root.getList1();
        final FunctionContext context = new ModelElementFunctionContext( root );
       
        TestModelElementA a;
       
        testForExpectedValue( context, "${ Min( List1 ) }", null );
        testForExpectedValue( context, "${ Min( List1, 'Value1' ) }", null );
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.