From 0470754278d690df65c6d2a1afd58f642b696a9f Mon Sep 17 00:00:00 2001 From: "siva.isikella" <7499500+sivaprakashiv@users.noreply.github.com> Date: Thu, 13 Oct 2022 10:37:10 +0100 Subject: [PATCH] APID-520 - clean up --- .../repository/ApiFieldDefinitionsRepositorySpec.scala | 2 -- .../repository/SubscriptionFieldsRepositorySpec.scala | 4 ---- 2 files changed, 6 deletions(-) diff --git a/test/uk/gov/hmrc/apisubscriptionfields/repository/ApiFieldDefinitionsRepositorySpec.scala b/test/uk/gov/hmrc/apisubscriptionfields/repository/ApiFieldDefinitionsRepositorySpec.scala index f1d5c94..b19c949 100644 --- a/test/uk/gov/hmrc/apisubscriptionfields/repository/ApiFieldDefinitionsRepositorySpec.scala +++ b/test/uk/gov/hmrc/apisubscriptionfields/repository/ApiFieldDefinitionsRepositorySpec.scala @@ -38,8 +38,6 @@ class ApiFieldDefinitionsRepositorySpec extends AnyWordSpec private val repository = app.injector.instanceOf[ApiFieldDefinitionsMongoRepository] -// private val repository = new ApiFieldDefinitionsMongoRepository(mongoDbProvider) - override protected def beforeEach() { super.beforeEach() await(repository.collection.drop.toFuture()) diff --git a/test/uk/gov/hmrc/apisubscriptionfields/repository/SubscriptionFieldsRepositorySpec.scala b/test/uk/gov/hmrc/apisubscriptionfields/repository/SubscriptionFieldsRepositorySpec.scala index 3a996b9..ac5d748 100644 --- a/test/uk/gov/hmrc/apisubscriptionfields/repository/SubscriptionFieldsRepositorySpec.scala +++ b/test/uk/gov/hmrc/apisubscriptionfields/repository/SubscriptionFieldsRepositorySpec.scala @@ -25,7 +25,6 @@ import org.mongodb.scala.model.{Filters, FindOneAndUpdateOptions, ReturnDocument import org.scalatest.matchers.should.Matchers import org.scalatestplus.play.guice.GuiceOneAppPerSuite import play.api.test.{DefaultAwaitTimeout, FutureAwaits} -import uk.gov.hmrc.apisubscriptionfields.SubscriptionFieldsTestData import uk.gov.hmrc.apisubscriptionfields.AsyncHmrcSpec import uk.gov.hmrc.apisubscriptionfields.SubscriptionFieldsTestData.{FakeClientId, FakeClientId2, FakeContext, FakeContext2, FakeVersion, createSubscriptionFieldsWithApiContext, fakeRawContext2, fieldN, uniqueClientId} import uk.gov.hmrc.mongo.play.json.Codecs @@ -41,9 +40,6 @@ class SubscriptionFieldsRepositorySpec extends AsyncHmrcSpec with FutureAwaits with BeforeAndAfterEach { -// private val mongoDbProvider = new MongoDbProvider { -// override val mongo: () => DB = self.mongo -// } private val repository = app.injector.instanceOf[SubscriptionFieldsMongoRepository]