func (s *workItemTypeSuite) TestShowWorkItemType200OK() {
	// given
	// Create the work item type first and try to read it back in
	_, wit := s.createWorkItemTypeAnimal()
	require.NotNil(s.T(), wit)
	require.NotNil(s.T(), wit.Data)
	require.NotNil(s.T(), wit.Data.ID)
	// when
	res, wit2 := test.ShowWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, wit.Data.Relationships.Space.Data.ID.String(), *wit.Data.ID, nil, nil)
	// then
	require.NotNil(s.T(), wit2)
	assert.EqualValues(s.T(), wit, wit2)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemTypeUpdatedAt(*wit)), res.Header()[app.LastModified][0])
	require.NotNil(s.T(), res.Header()[app.CacheControl])
	assert.Equal(s.T(), app.MaxAge+"=86400", res.Header()[app.CacheControl][0])
	require.NotNil(s.T(), res.Header()[app.ETag])
	assert.Equal(s.T(), generateWorkItemTypeTag(*wit), res.Header()[app.ETag][0])
}
// TestShowWorkItemType200OK tests if we can fetch the work item type "animal".
TestShowWorkItemType200OK tests if we can fetch the work item type "animal".
// TestShowWorkItemType200OK tests if we can fetch the work item type " animal " .
func (s *workItemTypeSuite) TestShowWorkItemType200OK() {
	_, wit := s.createWorkItemTypeAnimal()
	require.NotNil(s.T(), wit)
	require.NotNil(s.T(), wit.Data)
	require.NotNil(s.T(), wit.Data.ID)
	res, wit2 := test.ShowWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, wit.Data.Relationships.Space.Data.ID.String(), *wit.Data.ID, nil, nil)
	require.NotNil(s.T(), wit2)
	assert.EqualValues(s.T(), wit, wit2)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemTypeUpdatedAt(*wit)), res.Header()[app.LastModified][0])
	require.NotNil(s.T(), res.Header()[app.CacheControl])
	assert.Equal(s.T(), app.MaxAge+"=86400", res.Header()[app.CacheControl][0])
	require.NotNil(s.T(), res.Header()[app.ETag])
	assert.Equal(s.T(), generateWorkItemTypeTag(*wit), res.Header()[app.ETag][0])
}
func ( s * workItemTypeSuite ) TestShowWorkItemType200OK ( ) { _ , wit := s . createWorkItemTypeAnimal ( ) require . NotNil ( s . T ( ) , wit ) require . NotNil ( s . T ( ) , wit . Data ) require . NotNil ( s . T ( ) , wit . Data . ID ) res , wit2 := test . ShowWorkitemtypeOK ( s . T ( ) , nil , nil , s . typeCtrl , wit . Data . Relationships . Space . Data . ID . String ( ) , * wit . Data . ID , nil , nil ) require . NotNil ( s . T ( ) , wit2 ) assert . EqualValues ( s . T ( ) , wit , wit2 ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . LastModified ] ) assert . Equal ( s . T ( ) , app . ToHTTPTime ( getWorkItemTypeUpdatedAt ( * wit ) ) , res . Header ( ) [ app . LastModified ] [ 0 ] ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . CacheControl ] ) assert . Equal ( s . T ( ) , app . MaxAge + " " , res . Header ( ) [ app . CacheControl ] [ 0 ] ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . ETag ] ) assert . Equal ( s . T ( ) , generateWorkItemTypeTag ( * wit ) , res . Header ( ) [ app . ETag ] [ 0 ] ) }
TestShowWorkItemType200OK tests if we can fetch the work item type "animal".
TestShowWorkItemType200OK tests if we can fetch the work item type " animal " .
// given // Create the work item type first and try to read it back in // when // then