feat: move entity and usecase to root folder

This commit is contained in:
Elton Minetto
2020-10-12 07:35:29 -03:00
parent 2c0f46aff1
commit 3e4eb2e616
33 changed files with 109 additions and 138 deletions
+3 -4
View File
@@ -10,9 +10,8 @@ import (
"github.com/codegangsta/negroni"
"github.com/eminetto/clean-architecture-go-v2/api/presenter"
"github.com/eminetto/clean-architecture-go-v2/domain"
"github.com/eminetto/clean-architecture-go-v2/domain/entity"
"github.com/eminetto/clean-architecture-go-v2/domain/usecase/user/mock"
"github.com/eminetto/clean-architecture-go-v2/entity"
"github.com/eminetto/clean-architecture-go-v2/usecase/user/mock"
"github.com/golang/mock/gomock"
"github.com/gorilla/mux"
"github.com/stretchr/testify/assert"
@@ -49,7 +48,7 @@ func Test_listUsers_NotFound(t *testing.T) {
defer ts.Close()
m.EXPECT().
SearchUsers("dio").
Return(nil, domain.ErrNotFound)
Return(nil, entity.ErrNotFound)
res, err := http.Get(ts.URL + "?name=dio")
assert.Nil(t, err)
assert.Equal(t, http.StatusNotFound, res.StatusCode)