mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
5a3be2ab58
Former-commit-id: 81ae99390c683a61e1b0bac58725a04b9a3eebbb
23 lines
433 B
Go
23 lines
433 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()
|
|
m.In(testBinderFuncUserStruct, testBinderService, testBinderFuncParam)
|
|
|
|
var (
|
|
h1 = m.Handler(testConsumeUserHandler)
|
|
h2 = m.Handler(testConsumeServiceHandler)
|
|
h3 = m.Handler(testConsumeParamHandler)
|
|
)
|
|
|
|
testAppWithMvcHandlers(t, h1, h2, h3)
|
|
}
|