Skip to content

Commit

Permalink
package-refactor: move formProfiders to profile package
Browse files Browse the repository at this point in the history
  • Loading branch information
kenneth-rayner committed Nov 6, 2024
1 parent 7f26024 commit 0cb1e89
Show file tree
Hide file tree
Showing 34 changed files with 48 additions and 45 deletions.
2 changes: 1 addition & 1 deletion app/controllers/profile/HasNiphlController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.BaseController
import controllers.actions._
import forms.HasNiphlFormProvider
import forms.profile.HasNiphlFormProvider
import models.Mode
import navigation.ProfileNavigator
import pages.profile.{HasNiphlPage, HasNiphlUpdatePage}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/HasNirmsController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.BaseController
import controllers.actions._
import forms.HasNirmsFormProvider
import forms.profile.HasNirmsFormProvider
import models.Mode
import navigation.ProfileNavigator
import pages.profile.{HasNirmsPage, HasNirmsUpdatePage}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/NewUkimsNumberController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.BaseController
import controllers.actions._
import forms.UkimsNumberFormProvider
import forms.profile.UkimsNumberFormProvider
import models.Mode
import navigation.Navigator
import pages.NewUkimsNumberPage
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/NiphlNumberController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.BaseController
import controllers.actions._
import forms.NiphlNumberFormProvider
import forms.profile.NiphlNumberFormProvider
import models.Mode
import navigation.ProfileNavigator
import pages.profile.{HasNiphlUpdatePage, NiphlNumberPage, NiphlNumberUpdatePage}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/NirmsNumberController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.BaseController
import controllers.actions._
import forms.NirmsNumberFormProvider
import forms.profile.NirmsNumberFormProvider
import models.Mode
import navigation.ProfileNavigator
import pages.profile.{HasNirmsUpdatePage, NirmsNumberPage, NirmsNumberUpdatePage}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/RemoveNiphlController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.actions._
import controllers.{BaseController, routes}
import forms.RemoveNiphlFormProvider
import forms.profile.RemoveNiphlFormProvider
import models.NormalMode
import navigation.ProfileNavigator
import pages.profile.{NiphlNumberUpdatePage, RemoveNiphlPage}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/RemoveNirmsController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.actions._
import controllers.{BaseController, routes}
import forms.RemoveNirmsFormProvider
import forms.profile.RemoveNirmsFormProvider
import models.NormalMode
import navigation.ProfileNavigator
import pages.profile.{NirmsNumberUpdatePage, RemoveNirmsPage}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/profile/UkimsNumberController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controllers.profile
import connectors.TraderProfileConnector
import controllers.BaseController
import controllers.actions._
import forms.UkimsNumberFormProvider
import forms.profile.UkimsNumberFormProvider
import models.Mode
import navigation.ProfileNavigator
import pages.profile.{UkimsNumberPage, UkimsNumberUpdatePage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package controllers.profile

import controllers.BaseController
import controllers.actions._
import forms.UseExistingUkimsNumberFormProvider
import forms.profile.UseExistingUkimsNumberFormProvider
import models.NormalMode
import navigation.ProfileNavigator
import pages.profile.{UkimsNumberPage, UseExistingUkimsNumberPage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package forms

import javax.inject.Inject
package forms.profile

import forms.mappings.Mappings
import play.api.data.Form

import javax.inject.Inject

class HasNiphlFormProvider @Inject() extends Mappings {

def apply(): Form[Boolean] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package forms

import javax.inject.Inject
package forms.profile

import forms.mappings.Mappings
import play.api.data.Form

import javax.inject.Inject

class HasNirmsFormProvider @Inject() extends Mappings {

def apply(): Form[Boolean] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* limitations under the License.
*/

package forms
package forms.profile

import javax.inject.Inject
import forms.mappings.Mappings
import forms.mappings.helpers.FormatAnswers.toUppercaseAndRemoveSpacesAndHyphens
import models.StringFieldRegex
import play.api.data.Form

import javax.inject.Inject

class NiphlNumberFormProvider @Inject() extends Mappings {

def apply(): Form[String] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* limitations under the License.
*/

package forms
package forms.profile

import javax.inject.Inject
import forms.mappings.Mappings
import forms.mappings.helpers.FormatAnswers.{addHyphensToNirms, toUppercaseAndRemoveSpacesAndHyphens}
import models.StringFieldRegex
import play.api.data.Form

import javax.inject.Inject

class NirmsNumberFormProvider @Inject() extends Mappings {

def apply(): Form[String] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package forms

import javax.inject.Inject
package forms.profile

import forms.mappings.Mappings
import play.api.data.Form

import javax.inject.Inject

class RemoveNiphlFormProvider @Inject() extends Mappings {

def apply(): Form[Boolean] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package forms

import javax.inject.Inject
package forms.profile

import forms.mappings.Mappings
import play.api.data.Form

import javax.inject.Inject

class RemoveNirmsFormProvider @Inject() extends Mappings {

def apply(): Form[Boolean] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* limitations under the License.
*/

package forms
package forms.profile

import javax.inject.Inject
import forms.mappings.Mappings
import forms.mappings.helpers.FormatAnswers.toUppercaseAndRemoveSpacesAndHyphens
import models.StringFieldRegex
import play.api.data.Form

import javax.inject.Inject

class UkimsNumberFormProvider @Inject() extends Mappings {

def apply(): Form[String] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.mappings.Mappings
import play.api.data.Form
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/HasNiphlControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.HasNiphlFormProvider
import forms.profile.HasNiphlFormProvider
import models.{NormalMode, TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentMatchers.{any, eq => eqTo}
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/HasNirmsControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.HasNirmsFormProvider
import forms.profile.HasNirmsFormProvider
import models.{NormalMode, TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentMatchers.{any, eq => eqTo}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.UkimsNumberFormProvider
import forms.profile.UkimsNumberFormProvider
import models.{NormalMode, TraderProfile, UserAnswers}
import navigation.{FakeNavigator, Navigator}
import org.mockito.ArgumentMatchers.{any, eq => eqTo}
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/NiphlNumberControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.NiphlNumberFormProvider
import forms.profile.NiphlNumberFormProvider
import models.{NormalMode, TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.apache.pekko.Done
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/NirmsNumberControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.NirmsNumberFormProvider
import forms.profile.NirmsNumberFormProvider
import models.{NormalMode, TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentMatchers.{any, eq => eqTo}
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/RemoveNiphlControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.RemoveNiphlFormProvider
import forms.profile.RemoveNiphlFormProvider
import models.{TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentCaptor
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/RemoveNirmsControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.RemoveNirmsFormProvider
import forms.profile.RemoveNirmsFormProvider
import models.{TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentCaptor
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/profile/UkimsNumberControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.{testEori, userAnswersId}
import connectors.TraderProfileConnector
import controllers.routes
import forms.UkimsNumberFormProvider
import forms.profile.UkimsNumberFormProvider
import models.{CheckMode, NormalMode, TraderProfile, UserAnswers}
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentMatchers.{any, eq => eqTo}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import base.SpecBase
import base.TestConstants.userAnswersId
import connectors.TraderProfileConnector
import controllers.routes
import forms.UseExistingUkimsNumberFormProvider
import forms.profile.UseExistingUkimsNumberFormProvider
import models.UserAnswers
import navigation.{FakeProfileNavigator, ProfileNavigator}
import org.mockito.ArgumentMatchers.any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.BooleanFieldBehaviours
import play.api.data.FormError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.BooleanFieldBehaviours
import play.api.data.FormError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.StringFieldBehaviours
import generators.NiphlNumberGenerator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.StringFieldBehaviours
import org.scalacheck.Gen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.BooleanFieldBehaviours
import play.api.data.FormError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.BooleanFieldBehaviours
import play.api.data.FormError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.StringFieldBehaviours
import org.scalacheck.Gen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package forms
package forms.profile

import forms.behaviours.BooleanFieldBehaviours
import play.api.data.FormError
Expand Down

0 comments on commit 0cb1e89

Please sign in to comment.