diff --git a/src/test/scala/gitbucket/core/service/AccessTokenServiceSpec.scala b/src/test/scala/gitbucket/core/service/AccessTokenServiceSpec.scala index 39fca81..7951e2c 100644 --- a/src/test/scala/gitbucket/core/service/AccessTokenServiceSpec.scala +++ b/src/test/scala/gitbucket/core/service/AccessTokenServiceSpec.scala @@ -3,7 +3,6 @@ import gitbucket.core.model._ import org.scalatest.FunSuite import gitbucket.core.model.Profile._ -import gitbucket.core.model.Profile.profile._ import gitbucket.core.model.Profile.profile.blockingApi._ class AccessTokenServiceSpec extends FunSuite with ServiceSpecBase { @@ -53,6 +52,7 @@ val (id, token) = AccessTokenService.generateAccessToken("root", "note") assert(AccessTokenService.getAccountByAccessToken(token) match { case Some(user) => user.userName == "root" + case _ => fail() }) } } @@ -88,6 +88,7 @@ assert(AccessTokenService.getAccountByAccessToken(token) match { case Some(user) => user.userName == "user3" + case _ => fail() }) } }