func (s *workItemLinkTypeSuite) SetupTest() {
	s.cleanup()
	svc := goa.New("workItemLinkTypeSuite-Service")
	require.NotNil(s.T(), svc)
	s.linkTypeCtrl = NewWorkItemLinkTypeController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkTypeCtrl)
	s.linkCatCtrl = NewWorkItemLinkCategoryController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkCatCtrl)
	s.typeCtrl = NewWorkitemtypeController(svc, gormapplication.NewGormDB(s.DB), s.Configuration)
	require.NotNil(s.T(), s.typeCtrl)
	priv, _ := almtoken.ParsePrivateKey([]byte(almtoken.RSAPrivateKey))
	s.svc = testsupport.ServiceAsUser("workItemLinkSpace-Service", almtoken.NewManagerWithPrivateKey(priv), testsupport.TestIdentity)
	s.spaceCtrl = NewSpaceController(svc, gormapplication.NewGormDB(s.DB), s.Configuration, &DummyResourceManager{})
	require.NotNil(s.T(), s.spaceCtrl)
	s.spaceName = "test-space" + uuid.NewV4().String()
	s.categoryName = "test-workitem-category" + uuid.NewV4().String()
	s.linkTypeName = "test-workitem-link-type" + uuid.NewV4().String()
	s.linkName = "test-workitem-link" + uuid.NewV4().String()
}
// The SetupTest method will be run before every test in the suite.
// SetupTest ensures that none of the work item link types that we will create already exist.
The SetupTest method will be run before every test in the suite.
SetupTest ensures that none of the work item link types that we will create already exist.
// The SetupTest method will be run before every test in the suite . // SetupTest ensures that none of the work item link types that we will create already exist .
func (s *workItemLinkTypeSuite) SetupTest() {
	s.cleanup()
	svc := goa.New("workItemLinkTypeSuite-Service")
	require.NotNil(s.T(), svc)
	s.linkTypeCtrl = NewWorkItemLinkTypeController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkTypeCtrl)
	s.linkCatCtrl = NewWorkItemLinkCategoryController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkCatCtrl)
	s.typeCtrl = NewWorkitemtypeController(svc, gormapplication.NewGormDB(s.DB), s.Configuration)
	require.NotNil(s.T(), s.typeCtrl)
	priv, _ := almtoken.ParsePrivateKey([]byte(almtoken.RSAPrivateKey))
	s.svc = testsupport.ServiceAsUser("workItemLinkSpace-Service", almtoken.NewManagerWithPrivateKey(priv), testsupport.TestIdentity)
	s.spaceCtrl = NewSpaceController(svc, gormapplication.NewGormDB(s.DB), s.Configuration, &DummyResourceManager{})
	require.NotNil(s.T(), s.spaceCtrl)
	s.spaceName = "test-space" + uuid.NewV4().String()
	s.categoryName = "test-workitem-category" + uuid.NewV4().String()
	s.linkTypeName = "test-workitem-link-type" + uuid.NewV4().String()
	s.linkName = "test-workitem-link" + uuid.NewV4().String()
}
func ( s * workItemLinkTypeSuite ) SetupTest ( ) { s . cleanup ( ) svc := goa . New ( " " ) require . NotNil ( s . T ( ) , svc ) s . linkTypeCtrl = NewWorkItemLinkTypeController ( svc , gormapplication . NewGormDB ( s . DB ) ) require . NotNil ( s . T ( ) , s . linkTypeCtrl ) s . linkCatCtrl = NewWorkItemLinkCategoryController ( svc , gormapplication . NewGormDB ( s . DB ) ) require . NotNil ( s . T ( ) , s . linkCatCtrl ) s . typeCtrl = NewWorkitemtypeController ( svc , gormapplication . NewGormDB ( s . DB ) , s . Configuration ) require . NotNil ( s . T ( ) , s . typeCtrl ) priv , _ := almtoken . ParsePrivateKey ( [ ] byte ( almtoken . RSAPrivateKey ) ) s . svc = testsupport . ServiceAsUser ( " " , almtoken . NewManagerWithPrivateKey ( priv ) , testsupport . TestIdentity ) s . spaceCtrl = NewSpaceController ( svc , gormapplication . NewGormDB ( s . DB ) , s . Configuration , & DummyResourceManager { } ) require . NotNil ( s . T ( ) , s . spaceCtrl ) s . spaceName = " " + uuid . NewV4 ( ) . String ( ) s . categoryName = " " + uuid . NewV4 ( ) . String ( ) s . linkTypeName = " " + uuid . NewV4 ( ) . String ( ) s . linkName = " " + uuid . NewV4 ( ) . String ( ) }
The SetupTest method will be run before every test in the suite.
The SetupTest method will be run before every test in the suite .