oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1643378 - /oltu/trunk/oauth-2.0/common/src/test/java/org/apache/oltu/oauth2/common/message/OAuthResponseTest.java
Date Fri, 05 Dec 2014 18:23:39 GMT
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);
     }



Mime
View raw message