From 3f886ddf095ead205284af423868b767d418d7a6 Mon Sep 17 00:00:00 2001 From: akkie Date: Sat, 1 Mar 2014 12:12:09 +0100 Subject: [PATCH] Fix typo in oauth2 test namespace and use named logger for FoursquareProvider --- .../core/providers/oauth2/FoursquareProvider.scala | 5 ++--- .../providers/{oauh2 => oauth2}/FacebookProviderSpec.scala | 3 +-- .../providers/{oauh2 => oauth2}/FoursquareProviderSpec.scala | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) rename test/com/mohiva/play/silhouette/core/providers/{oauh2 => oauth2}/FacebookProviderSpec.scala (98%) rename test/com/mohiva/play/silhouette/core/providers/{oauh2 => oauth2}/FoursquareProviderSpec.scala (98%) diff --git a/app/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProvider.scala b/app/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProvider.scala index f8e0c21b6..c0b7495b5 100644 --- a/app/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProvider.scala +++ b/app/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProvider.scala @@ -19,7 +19,6 @@ */ package com.mohiva.play.silhouette.core.providers.oauth2 -import play.api.Logger import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global import com.mohiva.play.silhouette.core._ @@ -71,10 +70,10 @@ class FoursquareProvider( throw new AuthenticationException(SpecifiedProfileError.format(id, code, errorType, errorDetail)) case _ => - // Status code 200 and a existing errorType can only be a deprecated error + // Status code 200 and an existing errorType can only be a deprecated error // https://developer.foursquare.com/overview/responses if (errorType.isDefined) { - Logger.info("This implementation may be deprecated! Please contact the Silhouette team for a fix!") + logger.info("This implementation may be deprecated! Please contact the Silhouette team for a fix!") } val userID = (json \ Response \ User \ ID).asOpt[String] diff --git a/test/com/mohiva/play/silhouette/core/providers/oauh2/FacebookProviderSpec.scala b/test/com/mohiva/play/silhouette/core/providers/oauth2/FacebookProviderSpec.scala similarity index 98% rename from test/com/mohiva/play/silhouette/core/providers/oauh2/FacebookProviderSpec.scala rename to test/com/mohiva/play/silhouette/core/providers/oauth2/FacebookProviderSpec.scala index aa8ea6d42..1c20c7908 100644 --- a/test/com/mohiva/play/silhouette/core/providers/oauh2/FacebookProviderSpec.scala +++ b/test/com/mohiva/play/silhouette/core/providers/oauth2/FacebookProviderSpec.scala @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.mohiva.play.silhouette.core.providers.oauh2 +package com.mohiva.play.silhouette.core.providers.oauth2 import test.Helper import java.util.UUID @@ -21,7 +21,6 @@ import play.api.libs.ws.{ Response, WS } import play.api.test.{ FakeRequest, WithApplication } import scala.concurrent.Future import com.mohiva.play.silhouette.core.providers._ -import com.mohiva.play.silhouette.core.providers.oauth2.FacebookProvider import com.mohiva.play.silhouette.core.{ LoginInfo, AuthenticationException } import FacebookProvider._ import OAuth2Provider._ diff --git a/test/com/mohiva/play/silhouette/core/providers/oauh2/FoursquareProviderSpec.scala b/test/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProviderSpec.scala similarity index 98% rename from test/com/mohiva/play/silhouette/core/providers/oauh2/FoursquareProviderSpec.scala rename to test/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProviderSpec.scala index 24adef297..2b65f3f06 100644 --- a/test/com/mohiva/play/silhouette/core/providers/oauh2/FoursquareProviderSpec.scala +++ b/test/com/mohiva/play/silhouette/core/providers/oauth2/FoursquareProviderSpec.scala @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.mohiva.play.silhouette.core.providers.oauh2 +package com.mohiva.play.silhouette.core.providers.oauth2 import test.Helper import java.util.UUID @@ -22,7 +22,6 @@ import play.api.libs.ws.{ Response, WS } import play.api.test.{ FakeRequest, WithApplication } import scala.concurrent.Future import com.mohiva.play.silhouette.core.providers._ -import com.mohiva.play.silhouette.core.providers.oauth2.FoursquareProvider import com.mohiva.play.silhouette.core.{ LoginInfo, AuthenticationException } import FoursquareProvider._ import OAuth2Provider._