mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
34664aa311
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
23 lines
457 B
Go
23 lines
457 B
Go
package mvc_test
|
|
|
|
// black-box in combination with the handler_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/kataras/iris/mvc"
|
|
)
|
|
|
|
func TestMvcEngineInAndHandler(t *testing.T) {
|
|
m := NewEngine()
|
|
m.Dependencies.Add(testBinderFuncUserStruct, testBinderService, testBinderFuncParam)
|
|
|
|
var (
|
|
h1 = m.Handler(testConsumeUserHandler)
|
|
h2 = m.Handler(testConsumeServiceHandler)
|
|
h3 = m.Handler(testConsumeParamHandler)
|
|
)
|
|
|
|
testAppWithMvcHandlers(t, h1, h2, h3)
|
|
}
|