/scalate-war/src/test/scala/org/fusesource/scalate/console/ConsoleTest.scala
http://github.com/scalate/scalate · Scala · 52 lines · 1 code · 1 blank · 50 comment · 0 complexity · 49d8979bf809a195217f13c148437528 MD5 · raw file
- package org.fusesource.scalate.console
- //import _root_.org.junit.runner.RunWith
- //import _root_.org.scalatest.junit.JUnitRunner
- //import org.scalatest.{ ConfigMap, FunSuite }
- //import _root_.org.fusesource.scalate.test._
- //import java.io.File
- //
- ///**
- // * @version $Revision : 1.1 $
- // */
- //@RunWith(classOf[JUnitRunner])
- //class ConsoleTest extends FunSuite with WebServerMixin with WebDriverMixin {
- // test("home page") {
- // webDriver.get(rootUrl)
- // pageContains("Scalate")
- // }
- //
- // test("create Simple Resource") {
- // webDriver.get(rootUrl)
- //
- // // lets find the console link
- // xpath("//a[@class = 'consoleLink']").click
- //
- // xpath("//a[@title = 'Create Simple Resource']").click
- //
- // xpath("//form[@class='createArchetype']").submit
- //
- // // TODO use a trim in an xpath
- // pageContains("Try the New Resource")
- //
- // // Note we now need to test the generated resource after we restart the web app
- // // which requires rebuilding the genreated scala files
- // // so see the TestGeneratedConsoleFiles.scala for the rest of this test
- // // which we run on the generated archetypes
- // }
- //
- // override protected def beforeAll(configMap: ConfigMap) = {
- // System.setProperty("scalate.mode", "development")
- // super.beforeAll(configMap)
- //
- // // lets force generated files into a new temporary directory
- // if (System.getProperty("scalate.generate.src", "").length == 0) {
- // val file = File.createTempFile("scalate-gen-src-", ".dir")
- // file.delete
- // file.mkdirs
- // val genSrcDir = file.getPath
- // info("setting source generation directory to: " + genSrcDir)
- // System.setProperty("scalate.generate.src", genSrcDir)
- // }
- // }
- //}