Search in sources :

Example 1 with DirectoryRosterStore

use of org.jivesoftware.smack.roster.rosterstore.DirectoryRosterStore 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();
}
Also used : DirectoryRosterStore(org.jivesoftware.smack.roster.rosterstore.DirectoryRosterStore) DummyConnection(org.jivesoftware.smack.DummyConnection) TestRosterListener(org.jivesoftware.smack.roster.RosterTest.TestRosterListener) Before(org.junit.Before)

Aggregations

DummyConnection (org.jivesoftware.smack.DummyConnection)1 TestRosterListener (org.jivesoftware.smack.roster.RosterTest.TestRosterListener)1 DirectoryRosterStore (org.jivesoftware.smack.roster.rosterstore.DirectoryRosterStore)1 Before (org.junit.Before)1