Initial Commit to Add RestAPI Server to IEC
[iec.git] / src / foundation / api / apiserver / tests / apptest.go
diff --git a/src/foundation/api/apiserver/tests/apptest.go b/src/foundation/api/apiserver/tests/apptest.go
new file mode 100644 (file)
index 0000000..dfefeb4
--- /dev/null
@@ -0,0 +1,23 @@
+package tests
+
+import (
+       "github.com/revel/revel/testing"
+)
+
+type AppTest struct {
+       testing.TestSuite
+}
+
+func (t *AppTest) Before() {
+       println("Set up")
+}
+
+func (t *AppTest) TestThatIndexPageWorks() {
+       t.Get("/")
+       t.AssertOk()
+       t.AssertContentType("text/html; charset=utf-8")
+}
+
+func (t *AppTest) After() {
+       println("Tear down")
+}