func (s *workItemTypeSuite) TestListWorkItemType200UsingExpiredIfNoneMatchHeader() {
	// given
	// Create the work item type first and try to read it back in
	_, witAnimal := s.createWorkItemTypeAnimal()
	require.NotNil(s.T(), witAnimal)
	_, witPerson := s.createWorkItemTypePerson()
	require.NotNil(s.T(), witPerson)
	// when
	// Fetch a single work item type
	// Paging in the format <start>,<limit>"
	etag := "foo"
	page := "0,-1"
	res, witCollection := test.ListWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), &page, nil, &etag)
	// then
	require.NotNil(s.T(), witCollection)
	require.Nil(s.T(), witCollection.Validate())
	assert.Condition(s.T(), lookupWorkItemTypes(*witCollection, *witAnimal, *witPerson),
		"Not all required work item types (animal and person) where found.")
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemTypeUpdatedAt(*witPerson)), 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(), generateWorkItemTypesTag(*witCollection), res.Header()[app.ETag][0])
}
// TestListWorkItemType200UsingExpiredIfNoneMatchHeader tests if we can find the work item types
// "person" and "animal" in the list of work item types with an expired "If-None-Match" HTTP request header
TestListWorkItemType200UsingExpiredIfNoneMatchHeader tests if we can find the work item types
"person" and "animal" in the list of work item types with an expired "If-None-Match" HTTP request header
// TestListWorkItemType200UsingExpiredIfNoneMatchHeader tests if we can find the work item types // " person " and " animal " in the list of work item types with an expired " If - None - Match " HTTP request header
func (s *workItemTypeSuite) TestListWorkItemType200UsingExpiredIfNoneMatchHeader() {
	_, witAnimal := s.createWorkItemTypeAnimal()
	require.NotNil(s.T(), witAnimal)
	_, witPerson := s.createWorkItemTypePerson()
	require.NotNil(s.T(), witPerson)
	etag := "foo"
	page := "0,-1"
	res, witCollection := test.ListWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), &page, nil, &etag)
	require.NotNil(s.T(), witCollection)
	require.Nil(s.T(), witCollection.Validate())
	assert.Condition(s.T(), lookupWorkItemTypes(*witCollection, *witAnimal, *witPerson),
		"Not all required work item types (animal and person) where found.")
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemTypeUpdatedAt(*witPerson)), 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(), generateWorkItemTypesTag(*witCollection), res.Header()[app.ETag][0])
}
func ( s * workItemTypeSuite ) TestListWorkItemType200UsingExpiredIfNoneMatchHeader ( ) { _ , witAnimal := s . createWorkItemTypeAnimal ( ) require . NotNil ( s . T ( ) , witAnimal ) _ , witPerson := s . createWorkItemTypePerson ( ) require . NotNil ( s . T ( ) , witPerson ) etag := " " page := " " res , witCollection := test . ListWorkitemtypeOK ( s . T ( ) , nil , nil , s . typeCtrl , space . SystemSpace . String ( ) , & page , nil , & etag ) require . NotNil ( s . T ( ) , witCollection ) require . Nil ( s . T ( ) , witCollection . Validate ( ) ) assert . Condition ( s . T ( ) , lookupWorkItemTypes ( * witCollection , * witAnimal , * witPerson ) , " " ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . LastModified ] ) assert . Equal ( s . T ( ) , app . ToHTTPTime ( getWorkItemTypeUpdatedAt ( * witPerson ) ) , 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 ( ) , generateWorkItemTypesTag ( * witCollection ) , res . Header ( ) [ app . ETag ] [ 0 ] ) }
TestListWorkItemType200UsingExpiredIfNoneMatchHeader tests if we can find the work item types
"person" and "animal" in the list of work item types with an expired "If-None-Match" HTTP request header
TestListWorkItemType200UsingExpiredIfNoneMatchHeader tests if we can find the work item types " person " and " animal " in the list of work item types with an expired " If - None - Match " HTTP request header
// given // Create the work item type first and try to read it back in // when // Fetch a single work item type // Paging in the format <start>,<limit>" // then