Examples of FunctionContext


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

public final class MiscTests extends SapphireTestCase
{
    private void test( final String expr,
                       final Object expected )
    {
        test( expr, expected, new FunctionContext() );
    }
View Full Code Here

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

        child.setIntegerProp( 2 );
        child.setStringProp( "DEF" );
        grandchild.setIntegerProp( 3 );
        grandchild.setStringProp( "GHI" );
       
        final FunctionContext context = new ModelElementFunctionContext( root );
       
        test( expr, expected, context );
    }
View Full Code Here

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

public abstract class TestExpr extends SapphireTestCase
{
    protected static void testForExpectedValue( final String expr,
                                                final Object expected )
    {
        testForExpectedValue( new FunctionContext(), expr, expected );
    }
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, "${ Avg( 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, "${ Avg( Collection ) }", new BigDecimal( "0" ) );

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

Examples of org.jaxen.FunctionContext

    }
    public void testSerializeFunctionContext() throws JaxenException, IOException {
       
        DOMXPath xpath = new DOMXPath("/root/child");
        FunctionContext context = xpath.getFunctionContext();
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ObjectOutputStream oout = new ObjectOutputStream(out);
        try {
            oout.writeObject(context);
            fail("serialized function context");
View Full Code Here

Examples of org.jboss.as.console.client.shared.flow.FunctionContext

                }
            }
        };

        new Async<FunctionContext>(Footer.PROGRESS_ELEMENT)
                .waterfall(new FunctionContext(), resetOutcome, new LoadDataSourcesFunction(dataSourceStore),
                        new LoadXADataSourcesFunction(dataSourceStore), new LoadDriversFunction(driverRegistry));
    }
View Full Code Here

Examples of org.jboss.as.console.client.shared.flow.FunctionContext

                    callback.onSuccess(context.<VerifyResult>pop());
                }
            };

            new Async<FunctionContext>(Footer.PROGRESS_ELEMENT)
                    .waterfall(new FunctionContext(), outcome, functions.toArray(new Function[functions.size()]));
        }
    }
View Full Code Here

Examples of org.jboss.as.console.client.shared.flow.FunctionContext

                public void onSuccess(final FunctionContext context) {
                    List<HostInfo> hosts = context.pop();
                    getView().updateHosts(deriveGroups(hosts), hostIndex);
                }
            };
            new Async<FunctionContext>(Footer.PROGRESS_ELEMENT).waterfall(new FunctionContext(), outcome,
                    new TopologyFunctions.HostsAndGroups(dispatcher),
                    new TopologyFunctions.ServerConfigs(dispatcher, beanFactory),
                    new TopologyFunctions.RunningServerInstances(dispatcher));
        }
    }
View Full Code Here

Examples of org.jboss.as.console.client.shared.flow.FunctionContext

                });
            }
        };

        // load subsystems for selected server
        new Async<FunctionContext>(Footer.PROGRESS_ELEMENT).waterfall(new FunctionContext(), outcome, f1, f2, f3);
    }
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.