mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-16 07:51:08 +01:00
Add smack-websocket-java11
This also lifts a bunch of logic from smack-websocket-okhttp into smack-websocket. Furthermore, the following subprojects require now Java 11: - smack-integration-test - smack-omemo-signal-integration-test - smack-repl - smack-websocket-java11 Related tracking issue: SMACK-835
This commit is contained in:
parent
cd40455b62
commit
4aacdc5154
24 changed files with 442 additions and 162 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2020 Aditya Borikar
|
||||
* Copyright 2021 Florian Schmaus, 2020 Aditya Borikar
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -16,28 +16,31 @@
|
|||
*/
|
||||
package org.jivesoftware.smack.c2s;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
import org.jivesoftware.smack.AbstractXMPPConnection;
|
||||
import org.jivesoftware.smack.StanzaListener;
|
||||
import org.jivesoftware.smack.filter.MessageWithBodiesFilter;
|
||||
import org.jivesoftware.smack.packet.Message;
|
||||
import org.jivesoftware.smack.packet.Stanza;
|
||||
|
||||
import org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest;
|
||||
import org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest;
|
||||
import org.igniterealtime.smack.inttest.SmackIntegrationTestEnvironment;
|
||||
import org.igniterealtime.smack.inttest.annotations.SmackIntegrationTest;
|
||||
import org.igniterealtime.smack.inttest.util.SimpleResultSyncPoint;
|
||||
|
||||
import org.jxmpp.jid.EntityFullJid;
|
||||
|
||||
public class SimpleXmppConnectionIntegrationTest extends AbstractSmackIntegrationTest {
|
||||
public class SimpleXmppConnectionIntegrationTest extends AbstractSmackLowLevelIntegrationTest {
|
||||
|
||||
public SimpleXmppConnectionIntegrationTest(SmackIntegrationTestEnvironment environment) {
|
||||
super(environment);
|
||||
}
|
||||
|
||||
@SmackIntegrationTest
|
||||
public void createConnectionTest() throws TimeoutException, Exception {
|
||||
@SmackIntegrationTest(connectionCount = 2)
|
||||
public void createConnectionTest(List<AbstractXMPPConnection> connections) throws TimeoutException, Exception {
|
||||
final AbstractXMPPConnection conOne = connections.get(0), conTwo = connections.get(1);
|
||||
EntityFullJid userTwo = conTwo.getUser();
|
||||
|
||||
final String messageBody = testRunId + ": Hello from the other side!";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue