Examples of AsyncLogPing


Examples of org.python.pydev.logging.ping.AsyncLogPing

    }

    public void testAsync() throws Exception {
        sentOk = true;
        AsyncLogPing asyncLogPing = new AsyncLogPing(logPing);
        asyncLogPing.addPingOpenEditor();
        asyncLogPing.addPingOpenEditor();
        asyncLogPing.addPingOpenEditor();
        asyncLogPing.send();
        asyncLogPing.addPingOpenEditor();
        asyncLogPing.addPingStartPlugin();
        asyncLogPing.send();

        assertEquals(null, sent);
        synchronized (this) {
            wait(AsyncLogPing.SCHEDULE_TIME * 5);
        }
        assertEquals("id=00000000-0000-0000-0000-000000000000&"
                + "editor.opened%5B%5D=1%3APydevEditor_REPLACE_VERSION&"
                + "editor.opened%5B%5D=2%3APydevEditor_REPLACE_VERSION&"
                + "editor.opened%5B%5D=3%3APydevEditor_REPLACE_VERSION&"
                + "editor.opened%5B%5D=4%3APydevEditor_REPLACE_VERSION&"
                + "plugin.started%5B%5D=5%3APydev_REPLACE_VERSION", sent);
        asyncLogPing.stop();
    }
View Full Code Here

Examples of org.python.pydev.logging.ping.AsyncLogPing

                Log.logInfo("Error getting persisting folder", e);
                base = new File(".");
            }
            File file = new File(base, "ping.log");

            asyncLogPing = new AsyncLogPing(FileUtils.getFileAbsolutePath(file));
        } catch (Exception e) {
            Log.log(e);

            //Cannot fail: create empty stub!
            asyncLogPing = new ILogPing() {
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.