You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oltu.apache.org by si...@apache.org on 2014/12/05 19:23:39 UTC

svn commit: r1643378 - /oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java

Author: simonetripodi
Date: Fri Dec  5 18:23:38 2014
New Revision: 1643378

URL: http://svn.apache.org/r1643378
Log:
trivial: static Assert.assertEquals import rather than static method invocation

Modified:
    oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java

Modified: oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java?rev=1643378&r1=1643377&r2=1643378&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java (original)
+++ oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java Fri Dec  5 18:23:38 2014
@@ -18,11 +18,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.oltu.oauth2.common.message;
 
+import static org.junit.Assert.assertEquals;
+
 import org.apache.oltu.oauth2.common.message.OAuthResponse;
-import org.junit.Assert;
 import org.junit.Test;
 
 /**
@@ -44,7 +44,7 @@ public class OAuthResponseTest {
             .buildJSONMessage();
 
         String body = oAuthResponse.getBody();
-        Assert.assertEquals(
+        assertEquals(
             "{\"error_uri\":\"http://example-uri\",\"error\":\"error\",\"param\":\"value\",\"realm\":\"album\",\"state\":\"ok\",\"error_description\":\"error_description\"}",
             body);
     }