Package net.sourceforge.marathon.providers

Examples of net.sourceforge.marathon.providers.ResolversProvider


    private static final Logger logger = Logger.getLogger(MarathonJava.class.getName());
    private static final int FAIL_TEST = 1;
    private static final int ABORT_TEST = 2;

    public MarathonJava() {
        this(JavaRuntime.getInstance().getNamingStrategy(), JavaRuntime.getInstance().getScriptModel(), new ResolversProvider(),
                JavaRuntime.getInstance().getWindowMonitor());
    }
View Full Code Here


    public ComponentFinder getResolver() {
        if (finder == null) {
            WindowMonitor windowMonitor = WindowMonitor.getInstance();
            finder = new ComponentFinder(Boolean.FALSE, windowMonitor.getNamingStrategy(),
                    new ResolversProvider(), ScriptModelServerPart.getModelServerPart(), windowMonitor);
            finder.push(this);
        }
        return finder;
    }
View Full Code Here

    public ComponentFinder getResolver(final Class<? extends ComponentResolver> class1) {
        if (finder == null) {
            WindowMonitor windowMonitor = WindowMonitor.getInstance();
            finder = new ComponentFinder(Boolean.FALSE, windowMonitor.getNamingStrategy(),
                    new ResolversProvider() {
                        public List<ComponentResolver> get() {
                            ArrayList<ComponentResolver> l = new ArrayList<ComponentResolver>();
                            try {
                                Constructor<? extends ComponentResolver> cr = class1.getConstructor(new Class[] {
                                        ComponentFinder.class, boolean.class, WindowMonitor.class });
View Full Code Here

            }
        });
        record = "";
        dialog.pack();
        dialog.show();
        finder = new ComponentFinder(Boolean.FALSE, WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(),
                ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance());
    }
View Full Code Here

public class DummyResolver extends ComponentFinder {
    private MComponent component;

    public DummyResolver(MComponent component) {
        super(Boolean.FALSE, WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(), ScriptModelServerPart
                .getModelServerPart(), WindowMonitor.getInstance());
        this.component = component;
    }
View Full Code Here

        return finder;
    }

    private ComponentFinder createResolver(boolean isRecording) {
        try {
            return new ComponentFinder(isRecording, windowMonitor.getNamingStrategy(), new ResolversProvider(), scriptModel,
                    windowMonitor);
        } catch (Exception e) {
            throw new MarathonException("instantiating component resolver: " + e.getMessage(), e);
        }
    }
View Full Code Here

    }

    @Test public void testResultsLoaded() throws Throwable {
        try {
            RubyScript script = new RubyScript(out, err, converToCode(SCRIPT_CONTENTS_ERROR_FROM_RUBY), new File(System.getProperty(Constants.PROP_PROJECT_DIR), "dummyfile.rb").getAbsolutePath(),
                    new ComponentFinder(Boolean.FALSE, WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(),
                            ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), false,
                    WindowMonitor.getInstance(), MarathonAppType.JAVA);
            Ruby interpreter = script.getInterpreter();
            assertTrue("Collector not defined", interpreter.isClassDefined("Collector"));
            RubyClass collectorClass = interpreter.getClass("Collector");
View Full Code Here

        }
    }

    @Test @Ignore public void testResultsCapturesJavaError() throws Exception {
        RubyScript script = new RubyScript(out, err, converToCode(SCRIPT_CONTENTS_ERROR_FROM_JAVA), new File(System.getProperty(Constants.PROP_PROJECT_DIR), "dummyfile.rb").getAbsolutePath(),
                new ComponentFinder(Boolean.FALSE, WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(),
                        ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()), false,
                WindowMonitor.getInstance(), MarathonAppType.JAVA);
        Ruby interpreter = script.getInterpreter();
        assertTrue("Collector not defined", interpreter.isClassDefined("Collector"));
        RubyClass collectorClass = interpreter.getClass("Collector");
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.providers.ResolversProvider

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.