loginRequirement requirements.Requirement targetedSpaceRequirement requirements.Requirement applicationRequirement *requirementsfakes.FakeApplicationRequirement ) BeforeEach(func() { cmd = &application.ShowApp{} flagContext = flags.NewFlagContext(cmd.MetaData().Flags) ui = &testterm.FakeUI{} getAppModel = &plugin_models.GetAppModel{} repoLocator := api.RepositoryLocator{} appSummaryRepo = new(apifakes.FakeAppSummaryRepository) repoLocator = repoLocator.SetAppSummaryRepository(appSummaryRepo) appInstancesRepo = new(appinstancesfakes.FakeAppInstancesRepository) repoLocator = repoLocator.SetAppInstancesRepository(appInstancesRepo) deps = commandregistry.Dependency{ UI: ui, Config: testconfig.NewRepositoryWithDefaults(), PluginModels: &commandregistry.PluginModels{ Application: getAppModel, }, RepoLocator: repoLocator, } cmd.SetDependency(deps, false) factory = new(requirementsfakes.FakeFactory)