/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

  1. package org.fusesource.scalate.console
  2. //import _root_.org.junit.runner.RunWith
  3. //import _root_.org.scalatest.junit.JUnitRunner
  4. //import org.scalatest.{ ConfigMap, FunSuite }
  5. //import _root_.org.fusesource.scalate.test._
  6. //import java.io.File
  7. //
  8. ///**
  9. // * @version $Revision : 1.1 $
  10. // */
  11. //@RunWith(classOf[JUnitRunner])
  12. //class ConsoleTest extends FunSuite with WebServerMixin with WebDriverMixin {
  13. // test("home page") {
  14. // webDriver.get(rootUrl)
  15. // pageContains("Scalate")
  16. // }
  17. //
  18. // test("create Simple Resource") {
  19. // webDriver.get(rootUrl)
  20. //
  21. // // lets find the console link
  22. // xpath("//a[@class = 'consoleLink']").click
  23. //
  24. // xpath("//a[@title = 'Create Simple Resource']").click
  25. //
  26. // xpath("//form[@class='createArchetype']").submit
  27. //
  28. // // TODO use a trim in an xpath
  29. // pageContains("Try the New Resource")
  30. //
  31. // // Note we now need to test the generated resource after we restart the web app
  32. // // which requires rebuilding the genreated scala files
  33. // // so see the TestGeneratedConsoleFiles.scala for the rest of this test
  34. // // which we run on the generated archetypes
  35. // }
  36. //
  37. // override protected def beforeAll(configMap: ConfigMap) = {
  38. // System.setProperty("scalate.mode", "development")
  39. // super.beforeAll(configMap)
  40. //
  41. // // lets force generated files into a new temporary directory
  42. // if (System.getProperty("scalate.generate.src", "").length == 0) {
  43. // val file = File.createTempFile("scalate-gen-src-", ".dir")
  44. // file.delete
  45. // file.mkdirs
  46. // val genSrcDir = file.getPath
  47. // info("setting source generation directory to: " + genSrcDir)
  48. // System.setProperty("scalate.generate.src", genSrcDir)
  49. // }
  50. // }
  51. //}