mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 02:47:04 +00:00
ok the new mvc system works great, all tests done and almost x3 smaller LOC used plus new three awesome features:) - next commit will be commenting out and replace the mvc package with the new mvc2
Former-commit-id: 552095d29256a1116849cc6054c82001e790e705
This commit is contained in:
21
mvc2/engine_handler_test.go
Normal file
21
mvc2/engine_handler_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user