mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
ed79f0c3cd
Former-commit-id: 552095d29256a1116849cc6054c82001e790e705
22 lines
438 B
Go
22 lines
438 B
Go
package mvc2_test
|
|
|
|
// black-box in combination with the handler_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/kataras/iris/mvc2"
|
|
)
|
|
|
|
func TestMvcEngineInAndHandler(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)
|
|
}
|