Examples of FunctionContext


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

    @Test
   
    public void EmptyOperator_ElementProperty()
    {
        final TestElement element = TestElement.TYPE.instantiate();
        final FunctionContext context = new ModelElementFunctionContext( element );
       
        final FunctionResult fr = ExpressionLanguageParser.parse( "${ empty ChildElement }" ).evaluate( context );
       
        try
        {
View Full Code Here

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

            for( int i = 0, n = inputOperands.size(); i < n; i++ )
            {
                assertSame( inputOperands.get( i ), function.operand( i ) );
            }
           
            testForExpectedValue( new FunctionContext(), function, expectedResult );
        }
View Full Code Here

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

{
    @Test
   
    public void testLiteral2()
    {
        final FunctionContext context = new FunctionContext();
        testForExpectedValue( context, "${ InstanceOf( 12345, 'java.math.BigInteger' ) }", true );
    }
View Full Code Here

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

    @Test
   
    public void testLiteral3()
    {
        final FunctionContext context = new FunctionContext();
        testForExpectedValue( context, "${ InstanceOf( 12345, 'java.lang.Number' ) }", true );
    }
View Full Code Here

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

    @Test

    public void testValueProperty()
    {
        final TestModelRoot root = TestModelRoot.TYPE.instantiate();
        final FunctionContext context = new ModelElementFunctionContext( root );

        root.setInteger( 123 );
       
        testForExpectedValue( context, "${ InstanceOf( Integer, 'java.lang.Integer' ) }", true );
    }
View Full Code Here

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

    @Test
   
    public void testElementProperty()
    {
        final TestModelRoot root = TestModelRoot.TYPE.instantiate();
        final FunctionContext context = new ModelElementFunctionContext( root );

        root.getElement().content( true, TestModelElementA.TYPE );
       
        testForExpectedValue( context, "${ InstanceOf( Element, 'org.eclipse.sapphire.tests.modeling.el.t0008.TestModelElementA' ) }", true );
View Full Code Here

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

   
    @Test

    public void testNull1()
    {
        final FunctionContext context = new FunctionContext();
        testForExpectedValue( context, "${ InstanceOf( null, null ) }", false );
    }
View Full Code Here

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

   
    @Test
   
    public void testNull2()
    {
        final FunctionContext context = new FunctionContext();
        testForExpectedValue( context, "${ InstanceOf( 'x', null ) }", false );
    }
View Full Code Here

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

   
    @Test

    public void testNull3()
    {
        final FunctionContext context = new FunctionContext();
        testForExpectedValue( context, "${ InstanceOf( null, 'java.lang.String' ) }", false );
    }
View Full Code Here

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

   
    @Test

    public void testLiteral1()
    {
        final FunctionContext context = new FunctionContext();
        testForExpectedValue( context, "${ InstanceOf( 'x', 'java.lang.String' ) }", true );
    }
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.