mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
OK, my dream-idea is implemented. TODO: Some examples and doc.go is not updated yet, comments on the mvc/di subpackage, the tutorial/vuejs-todo-mvc is running but not finished yet (it's using browser's localstorage and it should be replaced by the http requests that are registered via iris mvc
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
This commit is contained in:
22
mvc/engine_handler_test.go
Normal file
22
mvc/engine_handler_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user