}
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();
}