Package net.sourceforge.marathon.api

Examples of net.sourceforge.marathon.api.PlaybackResult


        String[] codeTest = { "def test():", "    from java.lang import Boolean",
                "    from net.sourceforge.marathon.python import TestPythonPlayer", "", "    TestPythonPlayer.ran = Boolean.TRUE", };
        script = getScriptInstance(new StringWriter(), new StringWriter(), TrivialFixture.convertCode(TrivialFixture.codeFixture,
                codeTest), "bloob.py", new ComponentFinder(Boolean.FALSE, WindowMonitor.getInstance().getNamingStrategy(),
                new ResolversProvider(), ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()));
        expectedResult = new PlaybackResult();
        player = script.getPlayer(this, expectedResult);
    }
View Full Code Here


    @Test public void testUncaughtThrowableInsideJava() throws Exception {
    }

    private synchronized void createScriptAndExecute(String content) throws Exception {
        IScript script = createScript(content, DEFAULT_SCRIPT_NAME);
        result = new PlaybackResult();
        player = script.getPlayer(this, result);
        player.play(true);
        wait();
    }
View Full Code Here

    ResultPane dialog;
    private PlaybackResult result;

    @Before
    public void setUp() throws Exception {
        result = new PlaybackResult();
        result.addFailure("poobag", createTraceback("poobag"));
        result.addFailure("dudebag", createTraceback("dudebag"));
        result.addFailure("handbag", createTraceback("handbag"));
        result.addFailure("dimebag", createTraceback("dimebag"));
        dialog = new ResultPane();
View Full Code Here

     * the user know what's up
     */
    @Test
    public void testResultDialogWithNoEvents() throws Exception {
        dialog = new ResultPane();
        dialog.addResult(new PlaybackResult());
        assertEquals("successful playback message", "No Errors", dialog.getMessageText());
    }
View Full Code Here

        checkSelectionChange(1);
    }

    @Test
    public void testSetResult() throws Exception {
        result = new PlaybackResult();
        result.addFailure("poobag_new", createTraceback("poobag_new"));
        dialog.clear();
        dialog.addResult(result);
        assertEquals("event summary size", 1, dialog.getEventSize());
        assertEquals("error playback message", "1 error", dialog.getMessageText());
View Full Code Here

        editor.setData("filename", "dummy");
        display.play(new StdOutConsole());
        Thread.sleep(500);
        aboutToExecute("foo", "dummy", 5);
        assertEquals(5, editor.getCaretLine() + 1);
        display.showResult(new PlaybackResult());
        assertEquals(1, editor.getCaretLine() + 1);
    }
View Full Code Here

        SwingUtilities.invokeAndWait(new Runnable() {
            public void run() {
            }
        });
        display.showResult(new PlaybackResult());
        assertEquals("fire 1fire 2", view.getOutputPane().getText());
        display.play(new StdOutConsole());
        assertEquals("", view.getOutputPane().getText());
        agentOutput("fire 3");
        SwingUtilities.invokeAndWait(new Runnable() {
View Full Code Here

import com.google.inject.Provider;

public class PlaybackResultProvider implements Provider<PlaybackResult> {

    public PlaybackResult get() {
        return new PlaybackResult();
    }
View Full Code Here

                }
            }
            script = runtime.createScript(scriptText, file.getAbsolutePath(), false, true);
            if (dataVariables != null)
                script.setDataVariables(dataVariables);
            IPlayer player = script.getPlayer(MarathonTestCase.this, new PlaybackResult());
            player.setAcceptCheckList(acceptChecklist);
            synchronized (waitLock) {
                player.play(shouldRunFixture);
                waitLock.wait();
            }
View Full Code Here

    }

    @Before public void setUp() throws Exception {
        out = new StringWriter();
        err = new StringWriter();
        result = new PlaybackResult();
        createDir("./testDir");
        System.setProperty(Constants.PROP_PROJECT_DIR, new File("./testDir").getCanonicalPath());
        System.setProperty(Constants.PROP_FIXTURE_DIR, new File("./testDir").getCanonicalPath());
        System.setProperty(Constants.PROP_TEST_DIR, new File("./testDir").getCanonicalPath());
        System.setProperty(Constants.PROP_MODULE_DIRS, new File(".").getCanonicalPath());
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.api.PlaybackResult

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.