From 0de84e704b241d67f7dcfc20f017ff3ffb69a55b Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 11 Jul 2019 18:34:27 +0100 Subject: [PATCH] hello webui --- .../controllers/webui/HelloController.groovy | 8 ++++++++ .../groovy/webui/HelloControllerSpec.groovy | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 webui/grails-app/controllers/webui/HelloController.groovy create mode 100644 webui/src/test/groovy/webui/HelloControllerSpec.groovy diff --git a/webui/grails-app/controllers/webui/HelloController.groovy b/webui/grails-app/controllers/webui/HelloController.groovy new file mode 100644 index 00000000..e1f8ee52 --- /dev/null +++ b/webui/grails-app/controllers/webui/HelloController.groovy @@ -0,0 +1,8 @@ +package webui + +class HelloController { + + def index() { + render "Hello from MuWire" + } +} diff --git a/webui/src/test/groovy/webui/HelloControllerSpec.groovy b/webui/src/test/groovy/webui/HelloControllerSpec.groovy new file mode 100644 index 00000000..48837983 --- /dev/null +++ b/webui/src/test/groovy/webui/HelloControllerSpec.groovy @@ -0,0 +1,18 @@ +package webui + +import grails.testing.web.controllers.ControllerUnitTest +import spock.lang.Specification + +class HelloControllerSpec extends Specification implements ControllerUnitTest { + + def setup() { + } + + def cleanup() { + } + + void "test something"() { + expect:"fix me" + true == false + } +}