iris/mvc2/mvc_test.go
kataras 7043f352d9 made it work but looking for another approach
Former-commit-id: e61c4573543c57b8d6d4ef2583e40f52c391402f
2017-12-04 05:06:03 +02:00

22 lines
432 B
Go

package mvc2_test
// black-box in combination with the handler_test
import (
"testing"
. "github.com/kataras/iris/mvc2"
)
func TestMvcInAndHandler(t *testing.T) {
m := New().Bind(testBinderFuncUserStruct, testBinderService, testBinderFuncParam)
var (
h1 = m.Handler(testConsumeUserHandler)
h2 = m.Handler(testConsumeServiceHandler)
h3 = m.Handler(testConsumeParamHandler)
)
testAppWithMvcHandlers(t, h1, h2, h3)
}