mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Enable werror for javadoc and fix javadoc issues
This commit is contained in:
parent
4249c1a845
commit
1a3067c89b
323 changed files with 2929 additions and 2704 deletions
|
@ -689,7 +689,7 @@ public class SmackIntegrationTestFramework<DC extends AbstractXMPPConnection> {
|
|||
* Execute the test.
|
||||
*
|
||||
* @throws IllegalAccessException
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws InvocationTargetException if the reflective invoked test throws an exception.
|
||||
* @throws XMPPException in case an XMPPException happens when <em>preparing</em> the test.
|
||||
* @throws IOException in case an IOException happens when <em>preparing</em> the test.
|
||||
|
|
|
@ -41,12 +41,12 @@ public class LoginIntegrationTest extends AbstractSmackLowLevelIntegrationTest {
|
|||
* Check that the server is returning the correct error when trying to login using an invalid
|
||||
* (i.e. non-existent) user.
|
||||
*
|
||||
* @throws InterruptedException
|
||||
* @throws XMPPException
|
||||
* @throws IOException
|
||||
* @throws SmackException
|
||||
* @throws NoSuchAlgorithmException
|
||||
* @throws KeyManagementException
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws XMPPException if an XMPP protocol error was received.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws SmackException if Smack detected an exceptional situation.
|
||||
* @throws NoSuchAlgorithmException if no such algorithm is available.
|
||||
* @throws KeyManagementException if there was a key mangement error.
|
||||
*/
|
||||
@SmackIntegrationTest
|
||||
public void testInvalidLogin() throws SmackException, IOException, XMPPException,
|
||||
|
|
|
@ -124,10 +124,10 @@ public class EntityCapsTest extends AbstractSmackIntegrationTest {
|
|||
/**
|
||||
* Test if entity caps actually prevent a disco info request and reply.
|
||||
*
|
||||
* @throws XMPPException
|
||||
* @throws InterruptedException
|
||||
* @throws NotConnectedException
|
||||
* @throws NoResponseException
|
||||
* @throws XMPPException if an XMPP protocol error was received.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws NoResponseException if there was no response from the remote entity.
|
||||
*
|
||||
*/
|
||||
@SmackIntegrationTest
|
||||
|
|
|
@ -52,8 +52,8 @@ public class IoTControlIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
/**
|
||||
* Connection one provides a thing, which is controlled by connection two.
|
||||
*
|
||||
* @throws Exception
|
||||
* @throws TimeoutException
|
||||
* @throws Exception if an exception occurs.
|
||||
* @throws TimeoutException if there was a timeout.
|
||||
*/
|
||||
@SmackIntegrationTest
|
||||
// @SmackSerialIntegrationTest
|
||||
|
|
|
@ -54,8 +54,8 @@ public class IoTDataIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
/**
|
||||
* Connection one provides a thing, which momentary value is read out by connection two.
|
||||
*
|
||||
* @throws Exception
|
||||
* @throws TimeoutException
|
||||
* @throws Exception if an exception occurs.
|
||||
* @throws TimeoutException if there was a timeout.
|
||||
*/
|
||||
@SmackIntegrationTest
|
||||
public void dataTest() throws Exception {
|
||||
|
|
|
@ -53,7 +53,7 @@ public class MessageEncryptionIntegrationTest extends AbstractTwoUsersOmemoInteg
|
|||
* Bob responds to Alice (normal message)
|
||||
* Alice still has A1
|
||||
* Bob still has B2
|
||||
* @throws Exception
|
||||
* @throws Exception if an exception occurs.
|
||||
*/
|
||||
@SuppressWarnings("SynchronizeOnNonFinalField")
|
||||
@SmackIntegrationTest
|
||||
|
|
|
@ -90,12 +90,12 @@ public class OXSecretKeyBackupIntegrationTest extends AbstractOpenPgpIntegration
|
|||
*
|
||||
* @see <a href="https://xmpp.org/extensions/xep-0373.html#synchro-pep">
|
||||
* XEP-0373 §5: Synchronizing the Secret Key with a Private PEP Node</a>
|
||||
* @param environment
|
||||
* @throws XMPPException.XMPPErrorException
|
||||
* @throws TestNotPossibleException
|
||||
* @throws SmackException.NotConnectedException
|
||||
* @throws InterruptedException
|
||||
* @throws SmackException.NoResponseException
|
||||
* @param environment TODO javadoc me please
|
||||
* @throws XMPPException.XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws TestNotPossibleException if the test is not possible.
|
||||
* @throws SmackException.NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws SmackException.NoResponseException if there was no response from the remote entity.
|
||||
*/
|
||||
public OXSecretKeyBackupIntegrationTest(SmackIntegrationTestEnvironment<?> environment)
|
||||
throws XMPPException.XMPPErrorException, TestNotPossibleException, SmackException.NotConnectedException,
|
||||
|
|
|
@ -81,11 +81,11 @@ public class OXInstantMessagingIntegrationTest extends AbstractOpenPgpIntegratio
|
|||
*
|
||||
* @param environment test environment
|
||||
*
|
||||
* @throws XMPPException.XMPPErrorException
|
||||
* @throws InterruptedException
|
||||
* @throws SmackException.NotConnectedException
|
||||
* @throws XMPPException.XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws SmackException.NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws TestNotPossibleException if the test is not possible due to lacking server support for PEP.
|
||||
* @throws SmackException.NoResponseException
|
||||
* @throws SmackException.NoResponseException if there was no response from the remote entity.
|
||||
*/
|
||||
public OXInstantMessagingIntegrationTest(SmackIntegrationTestEnvironment<?> environment)
|
||||
throws XMPPException.XMPPErrorException, InterruptedException, SmackException.NotConnectedException,
|
||||
|
|
|
@ -54,6 +54,11 @@ public class PubSubIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
/**
|
||||
* Asserts that an event notification (publication without item) can be published to
|
||||
* a node that is both 'notification-only' as well as 'transient'.
|
||||
*
|
||||
* @throws NoResponseException if there was no response from the remote entity.
|
||||
* @throws XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
*/
|
||||
@SmackIntegrationTest
|
||||
public void transientNotificationOnlyNodeWithoutItemTest() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
|
@ -74,6 +79,10 @@ public class PubSubIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* Asserts that an error is returned when a publish request to a node that is both
|
||||
* 'notification-only' as well as 'transient' contains an item element.
|
||||
|
@ -85,6 +94,10 @@ public class PubSubIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
* and a pubsub-specific error condition of <item-forbidden/>.
|
||||
* </blockquote>
|
||||
*
|
||||
* @throws NoResponseException if there was no response from the remote entity.
|
||||
* @throws XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @see <a href="https://xmpp.org/extensions/xep-0060.html#publisher-publish-error-badrequest">
|
||||
* 7.1.3.6 Request Does Not Match Configuration</a>
|
||||
*/
|
||||
|
|
|
@ -48,8 +48,8 @@ public class FormTest extends AbstractSmackIntegrationTest {
|
|||
* 2. Retrieve the form to fill out, complete it and return it to the requestor
|
||||
* 3. Retrieve the completed form and check that everything is OK
|
||||
*
|
||||
* @throws InterruptedException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@SmackIntegrationTest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue