/archetypes/scalate-archetype-jersey/src/main/resources/archetype-resources/src/test/scala/AppTest.scala
Scala | 40 lines | 12 code | 4 blank | 24 comment | 0 complexity | c8ef3ee1f6af7c963bdf738e4d4d758d MD5 | raw file
- /**
- * Copyright (C) 2009-2011 the original author or authors.
- * See the notice.md file distributed with this work for additional
- * information regarding copyright ownership.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- package ${package}
- import org.fusesource.scalate.test.{WebDriverMixin, WebServerMixin}
- import org.junit.runner.RunWith
- import org.scalatest.junit.JUnitRunner
- import org.scalatest.FunSuite
- /**
- * Unit test for My Ap
- */
- @RunWith(classOf[JUnitRunner])
- class AppTest extends FunSuite with WebServerMixin with WebDriverMixin {
- test("home page") {
- webDriver.get(rootUrl)
- pageContains("Scalate")
- }
- //
- // TODO here is a sample test case for a page
- //
- // testPageContains("foo.scaml", "this is some content I expect")
- }