"github.com/nttlabs/cli/cf/configuration/core_config" "github.com/nttlabs/cli/cf/models" testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/nttlabs/cli/testhelpers/matchers" ) var _ = Describe("list-apps command", func() { var ( ui *testterm.FakeUI configRepo core_config.ReadWriter appSummaryRepo *testapi.FakeAppSummaryRepo requirementsFactory *testreq.FakeReqFactory ) BeforeEach(func() { ui = &testterm.FakeUI{} appSummaryRepo = &testapi.FakeAppSummaryRepo{} configRepo = testconfig.NewRepositoryWithDefaults() requirementsFactory = &testreq.FakeReqFactory{ LoginSuccess: true, TargetedSpaceSuccess: true, } }) runCommand := func() { cmd := NewListApps(ui, configRepo, appSummaryRepo)
testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" testtime "github.com/nttlabs/cli/testhelpers/time" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("app Command", func() { var ( ui *testterm.FakeUI configRepo core_config.ReadWriter appSummaryRepo *testapi.FakeAppSummaryRepo appInstancesRepo *testAppInstanaces.FakeAppInstancesRepository requirementsFactory *testreq.FakeReqFactory ) BeforeEach(func() { ui = &testterm.FakeUI{} appSummaryRepo = &testapi.FakeAppSummaryRepo{} appInstancesRepo = &testAppInstanaces.FakeAppInstancesRepository{} configRepo = testconfig.NewRepositoryWithDefaults() requirementsFactory = &testreq.FakeReqFactory{ LoginSuccess: true, TargetedSpaceSuccess: true, } })