use of org.jivesoftware.smack.roster.RosterTest.TestRosterListener in project Smack by igniterealtime.
the class SubscriptionPreApprovalTest method setUp.
@Before
public void setUp() throws Exception {
connection = new DummyConnection();
connection.connect();
connection.login();
rosterListener = new TestRosterListener();
roster = Roster.getInstanceFor(connection);
roster.addRosterListener(rosterListener);
connection.setReplyTimeout(1000 * 60 * 5);
}
use of org.jivesoftware.smack.roster.RosterTest.TestRosterListener in project Smack by igniterealtime.
the class RosterVersioningTest method setUp.
@Before
public void setUp() throws Exception {
DirectoryRosterStore store = DirectoryRosterStore.init(tmpFolder.newFolder("store"));
populateStore(store);
connection = new DummyConnection();
connection.connect();
connection.login();
rosterListener = new TestRosterListener();
roster = Roster.getInstanceFor(connection);
roster.setRosterStore(store);
roster.addRosterListener(rosterListener);
roster.reload();
}
Aggregations