mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
[openpgp] Use default constructor of DummyConnection in unit tests
This commit is contained in:
parent
ccc785062e
commit
10c6e5d121
1 changed files with 2 additions and 9 deletions
|
@ -56,7 +56,6 @@ import org.junit.AfterClass;
|
|||
import org.junit.BeforeClass;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.jxmpp.jid.EntityBareJid;
|
||||
import org.jxmpp.jid.JidTestUtil;
|
||||
import org.pgpainless.decryption_verification.OpenPgpMetadata;
|
||||
|
||||
public class OXInstantMessagingManagerTest extends SmackTestSuite {
|
||||
|
@ -71,16 +70,10 @@ public class OXInstantMessagingManagerTest extends SmackTestSuite {
|
|||
public void test() throws IOException, PGPException, InvalidAlgorithmParameterException, NoSuchAlgorithmException,
|
||||
NoSuchProviderException, SmackException, MissingUserIdOnKeyException, InterruptedException, XMPPException,
|
||||
XmlPullParserException {
|
||||
DummyConnection aliceCon = new DummyConnection(
|
||||
DummyConnection.DummyConnectionConfiguration.builder()
|
||||
.setXmppDomain(JidTestUtil.EXAMPLE_ORG)
|
||||
.setUsernameAndPassword("alice", "dummypass").build());
|
||||
DummyConnection aliceCon = new DummyConnection();
|
||||
aliceCon.connect().login();
|
||||
|
||||
DummyConnection bobCon = new DummyConnection(
|
||||
DummyConnection.DummyConnectionConfiguration.builder()
|
||||
.setXmppDomain(JidTestUtil.EXAMPLE_ORG)
|
||||
.setUsernameAndPassword("bob", "dummypass").build());
|
||||
DummyConnection bobCon = new DummyConnection();
|
||||
bobCon.connect().login();
|
||||
|
||||
FileBasedOpenPgpStore aliceStore = new FileBasedOpenPgpStore(new File(basePath, "alice"));
|
||||
|
|
Loading…
Reference in a new issue