Examples of FixturePropertyHelper


Examples of net.sourceforge.marathon.script.FixturePropertyHelper

    private static final Pattern FIXTURE_IMPORT_MATCHER = Pattern.compile("\\s*from\\s\\s*(.*)\\s\\s*import \\*");
    private static final String MARATHON_RT_PYTHON = locateRTJar();

    public Map<String, Object> getFixtureProperties(String script) {
        return new FixturePropertyHelper(this).getFixtureProperties(script, FIXTURE_IMPORT_MATCHER);
    }
View Full Code Here

Examples of net.sourceforge.marathon.script.FixturePropertyHelper

    public void setup() {
        rubyScriptModel = new RubyScriptModel();
    }
   
    @Test public void testFindFixture() {
        FixturePropertyHelper model = new FixturePropertyHelper(rubyScriptModel) {
            @Override protected BufferedReader getFixtureReader(String fixture) {
                return new BufferedReader(new StringReader(fixtureProperties));
            }
        };
        assertEquals("default", model.findFixture(typicalTestScript, FIXTURE_IMPORT_MATCHER));
    }
View Full Code Here

Examples of net.sourceforge.marathon.script.FixturePropertyHelper

        };
        assertEquals("default", model.findFixture(typicalTestScript, FIXTURE_IMPORT_MATCHER));
    }
   
    @Test public void testFindFixtureProperties() {
        FixturePropertyHelper model = new FixturePropertyHelper(rubyScriptModel) {
            @Override protected String getFixturePropertiesPart(String fixture) {
                return fixtureProperties ;
            }
        };
        model.findFixtureProperties("default");
    }
View Full Code Here

Examples of net.sourceforge.marathon.script.FixturePropertyHelper

        };
        model.findFixtureProperties("default");
    }

    @Test public void testFindFixtureProperties2() {
        FixturePropertyHelper model = new FixturePropertyHelper(rubyScriptModel) {
            @Override protected BufferedReader getFixtureReader(String fixture) {
                return new BufferedReader(new StringReader(fixtureProperties));
            }
        };
        model.findFixtureProperties("default");
    }
View Full Code Here

Examples of net.sourceforge.marathon.script.FixturePropertyHelper

    }

    private static final Pattern FIXTURE_IMPORT_MATCHER = Pattern.compile("\\s*require_fixture\\s\\s*['\"](.*)['\"].*");

    public Map<String, Object> getFixtureProperties(String script) {
        return new FixturePropertyHelper(this).getFixtureProperties(script, FIXTURE_IMPORT_MATCHER);
    }
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.