github.com/arunkumar7540/cli@v6.45.0+incompatible/actor/v7action/v7action_suite_test.go (about)

     1  package v7action_test
     2  
     3  import (
     4  	. "code.cloudfoundry.org/cli/actor/v7action"
     5  	"code.cloudfoundry.org/cli/actor/v7action/v7actionfakes"
     6  	. "github.com/onsi/ginkgo"
     7  	. "github.com/onsi/gomega"
     8  	log "github.com/sirupsen/logrus"
     9  
    10  	"testing"
    11  )
    12  
    13  func TestV3Action(t *testing.T) {
    14  	RegisterFailHandler(Fail)
    15  	RunSpecs(t, "V7 Actions Suite")
    16  }
    17  
    18  var _ = BeforeEach(func() {
    19  	log.SetLevel(log.PanicLevel)
    20  })
    21  
    22  func NewTestActor() (*Actor, *v7actionfakes.FakeCloudControllerClient, *v7actionfakes.FakeConfig, *v7actionfakes.FakeSharedActor, *v7actionfakes.FakeUAAClient) {
    23  	fakeCloudControllerClient := new(v7actionfakes.FakeCloudControllerClient)
    24  	fakeConfig := new(v7actionfakes.FakeConfig)
    25  	fakeSharedActor := new(v7actionfakes.FakeSharedActor)
    26  	fakeUAAClient := new(v7actionfakes.FakeUAAClient)
    27  	actor := NewActor(fakeCloudControllerClient, fakeConfig, fakeSharedActor, fakeUAAClient)
    28  
    29  	return actor, fakeCloudControllerClient, fakeConfig, fakeSharedActor, fakeUAAClient
    30  }