Package run.acceptance.support

Examples of run.acceptance.support.State


//        runAcceptance( ReaderUtils.readFile( fileName ), System.out );
        }

    public static void runAcceptance( String content, PrintStream out )
        {
        State state = new State();
        for (ScriptElement e: new ScriptParser().parse( content ))
            {
            String c = e.getCommand(), b = e.getBody();
            if (c.equals( "ruleset" ))
                state.setRulesFromString( b );
            else if (c.equals( "rdf" ))
                state.setModelfromString( b );
            else if (c.equals( "expect" ))
                state.expectModel( b );
            else if (c.equals( "title" ))
                state.addTitle( collapse( e.getArguments() ) );
            else if (c.equals( "comment" ))
                state.addComment( b );
            else throw new RuntimeException( "don't understand command: " + c );
            }
        state.displayResults( out );
        }
View Full Code Here

TOP

Related Classes of run.acceptance.support.State

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.