Repository: qpid-jms
Updated Branches:
  refs/heads/master b4ce4fd40 -> 78915455a


QPIDJMS-150: Add missing throws tags to remove errors on strict checks.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/78915455
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/78915455
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/78915455

Branch: refs/heads/master
Commit: 78915455a42fb6cc8174f50aa673dd88116ae1ed
Parents: b4ce4fd
Author: Timothy Bish <[email protected]>
Authored: Mon Feb 22 12:54:58 2016 -0500
Committer: Timothy Bish <[email protected]>
Committed: Mon Feb 22 12:54:58 2016 -0500

----------------------------------------------------------------------
 .../jms/sasl/AbstractScramSHAMechanismTestBase.java     | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/78915455/qpid-jms-client/src/test/java/org/apache/qpid/jms/sasl/AbstractScramSHAMechanismTestBase.java
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/sasl/AbstractScramSHAMechanismTestBase.java
 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/sasl/AbstractScramSHAMechanismTestBase.java
index 691d50c..878a8ab 100644
--- 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/sasl/AbstractScramSHAMechanismTestBase.java
+++ 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/sasl/AbstractScramSHAMechanismTestBase.java
@@ -16,12 +16,12 @@
  */
 package org.apache.qpid.jms.sasl;
 
-import org.junit.Test;
+import static org.junit.Assert.assertArrayEquals;
+import static org.junit.Assert.fail;
 
 import javax.security.sasl.SaslException;
 
-import static org.junit.Assert.assertArrayEquals;
-import static org.junit.Assert.fail;
+import org.junit.Test;
 
 /**
  * The quoted text in the test method javadoc is taken from RFC 5802.
@@ -77,6 +77,8 @@ abstract class AbstractScramSHAMechanismTestBase {
      * version of SCRAM, its presence in a client or a server message
      * MUST cause authentication failure when the attribute is parsed by
      * the other end."
+     *
+     * @throws Exception if an unexpected exception is thrown.
      */
     @Test
     public void testServerFirstMessageMandatoryExtensionRejected() throws 
Exception {
@@ -96,6 +98,8 @@ abstract class AbstractScramSHAMechanismTestBase {
      * "In [the server first] response, the server sends a 
"server-first-message" containing the
      * user's iteration count i and the user's salt, and appends its own
      * nonce to the client-specified one."
+     *
+     * @throws Exception if an unexpected exception is thrown.
      */
     @Test
     public void testServerFirstMessageInvalidNonceRejected() throws Exception {
@@ -117,6 +121,8 @@ abstract class AbstractScramSHAMechanismTestBase {
      * the two are different, the client MUST consider the authentication
      * exchange to be unsuccessful, and it might have to drop the
      * connection."
+     *
+     * @throws Exception if an unexpected exception is thrown.
      */
     @Test
     public void testServerSignatureDiffer() throws Exception {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to