func (rest *TestTrackerREST) TestTrackerListItemsNotNil() {
	t := rest.T()
	resource.Require(t, resource.Database)

	svc, ctrl := rest.SecuredController()
	payload := app.CreateTrackerAlternatePayload{
		URL:  "http://issues.jboss.com",
		Type: "jira",
	}
	test.CreateTrackerCreated(t, svc.Context, svc, ctrl, &payload)

	test.CreateTrackerCreated(t, svc.Context, svc, ctrl, &payload)

	_, list := test.ListTrackerOK(t, svc.Context, svc, ctrl, nil, nil)

	for _, tracker := range list {
		if tracker == nil {
			t.Error("Returned Tracker found nil")
		}
	}
}
// This test ensures that List does not return NIL items.
// refer : https://github.com/almighty/almighty-core/issues/191
This test ensures that List does not return NIL items.
// This test ensures that List does not return NIL items . // refer : https : // github . com / almighty / almighty - core / issues / 191
func (rest *TestTrackerREST) TestTrackerListItemsNotNil() {
	t := rest.T()
	resource.Require(t, resource.Database)
	svc, ctrl := rest.SecuredController()
	payload := app.CreateTrackerAlternatePayload{
		URL:  "http://issues.jboss.com",
		Type: "jira",
	}
	test.CreateTrackerCreated(t, svc.Context, svc, ctrl, &payload)
	test.CreateTrackerCreated(t, svc.Context, svc, ctrl, &payload)
	_, list := test.ListTrackerOK(t, svc.Context, svc, ctrl, nil, nil)
	for _, tracker := range list {
		if tracker == nil {
			t.Error("Returned Tracker found nil")
		}
	}
}
func ( rest * TestTrackerREST ) TestTrackerListItemsNotNil ( ) { t := rest . T ( ) resource . Require ( t , resource . Database ) svc , ctrl := rest . SecuredController ( ) payload := app . CreateTrackerAlternatePayload { URL : " " , Type : " " , } test . CreateTrackerCreated ( t , svc . Context , svc , ctrl , & payload ) test . CreateTrackerCreated ( t , svc . Context , svc , ctrl , & payload ) _ , list := test . ListTrackerOK ( t , svc . Context , svc , ctrl , nil , nil ) for _ , tracker := range list { if tracker == nil { t . Error ( " " ) } } }
This test ensures that List does not return NIL items.
This test ensures that List does not return NIL items .