-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
81 changed files
with
2,127 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
test/spec/fixtures/repos/* | ||
logs | ||
project/project | ||
project/target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
--- | ||
- - test/spec/fixtures/repos/play/play-2.2.x-scala-sample | ||
- c78f3ad89aacb87b97ad7d41bdcdafffe35e6089 | ||
- - test/spec/fixtures/repos/play/play-2.3.x-scala-sample | ||
- b6e861a555c880f3acf3995b6c12170634c365b2 | ||
- - test/spec/fixtures/repos/play/play-2.4.x-scala | ||
- 032f37504617baea4a06c523f596f2defae50ff0 | ||
- - test/spec/fixtures/repos/play/scala-getting-started | ||
- 9ccbc79d6e7c2f0abf152d5daf696daae87b3790 | ||
- - test/spec/fixtures/repos/sbt/sbt-minimal-scala-sample | ||
- 92b704164a806e7a70a2237f07c5519664c7def3 | ||
- - test/spec/fixtures/repos/sbt/sbt-one-example | ||
- 32291b4dc3219e72af320f0387706f223de864db | ||
- - test/spec/fixtures/repos/sbt/sbt-start-script-sample | ||
- 0e5668e7b096c62af1d54ddadc2aecaf30592840 | ||
- 7a570f070c49db6c95cb6a63f1e38aaf87a93516 |
15 changes: 15 additions & 0 deletions
15
test/spec/fixtures/repos/play-2.2.x-scala-sample/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
logs | ||
project/project | ||
project/target | ||
target | ||
tmp | ||
.history | ||
dist | ||
/.idea | ||
/*.iml | ||
/out | ||
/.idea_modules | ||
/.classpath | ||
/.project | ||
/RUNNING_PID | ||
/.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is your new Play application | ||
===================================== | ||
|
||
This file will be packaged with your application, when using `play dist`. |
12 changes: 12 additions & 0 deletions
12
test/spec/fixtures/repos/play-2.2.x-scala-sample/app/controllers/Application.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package controllers | ||
|
||
import play.api._ | ||
import play.api.mvc._ | ||
|
||
object Application extends Controller { | ||
|
||
def index = Action { | ||
Ok(views.html.index("Your new application is ready.")) | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
test/spec/fixtures/repos/play-2.2.x-scala-sample/app/views/index.scala.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@(message: String) | ||
|
||
@main("Welcome to Play") { | ||
|
||
@play20.welcome(message) | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
test/spec/fixtures/repos/play-2.2.x-scala-sample/app/views/main.scala.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@(title: String)(content: Html) | ||
|
||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title>@title</title> | ||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"> | ||
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"> | ||
<script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")" type="text/javascript"></script> | ||
</head> | ||
<body> | ||
@content | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
test/spec/fixtures/repos/play-2.2.x-scala-sample/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name := "sample-app" | ||
|
||
version := "1.0-SNAPSHOT" | ||
|
||
libraryDependencies ++= Seq( | ||
jdbc, | ||
anorm, | ||
cache | ||
) | ||
|
||
play.Project.playScalaSettings |
59 changes: 59 additions & 0 deletions
59
test/spec/fixtures/repos/play-2.2.x-scala-sample/conf/application.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# This is the main configuration file for the application. | ||
# ~~~~~ | ||
|
||
# Secret key | ||
# ~~~~~ | ||
# The secret key is used to secure cryptographics functions. | ||
# If you deploy your application to several instances be sure to use the same key! | ||
application.secret="slC[HlwWKt/H?2_pcVqY<ls1uy66^25C7AH7IxuGq2TTA/qu?g4/E1bnZDd@0dYL" | ||
|
||
# The application languages | ||
# ~~~~~ | ||
application.langs="en" | ||
|
||
# Global object class | ||
# ~~~~~ | ||
# Define the Global object class for this application. | ||
# Default to Global in the root package. | ||
# application.global=Global | ||
|
||
# Router | ||
# ~~~~~ | ||
# Define the Router object to use for this application. | ||
# This router will be looked up first when the application is starting up, | ||
# so make sure this is the entry point. | ||
# Furthermore, it's assumed your route file is named properly. | ||
# So for an application router like `my.application.Router`, | ||
# you may need to define a router file `conf/my.application.routes`. | ||
# Default to Routes in the root package (and conf/routes) | ||
# application.router=my.application.Routes | ||
|
||
# Database configuration | ||
# ~~~~~ | ||
# You can declare as many datasources as you want. | ||
# By convention, the default datasource is named `default` | ||
# | ||
# db.default.driver=org.h2.Driver | ||
# db.default.url="jdbc:h2:mem:play" | ||
# db.default.user=sa | ||
# db.default.password="" | ||
|
||
# Evolutions | ||
# ~~~~~ | ||
# You can disable evolutions if needed | ||
# evolutionplugin=disabled | ||
|
||
# Logger | ||
# ~~~~~ | ||
# You can also configure logback (http://logback.qos.ch/), | ||
# by providing an application-logger.xml file in the conf directory. | ||
|
||
# Root logger: | ||
logger.root=ERROR | ||
|
||
# Logger used by the framework: | ||
logger.play=INFO | ||
|
||
# Logger provided to your application: | ||
logger.application=DEBUG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Routes | ||
# This file defines all application routes (Higher priority routes first) | ||
# ~~~~ | ||
|
||
# Home page | ||
GET / controllers.Application.index | ||
|
||
# Map static resources from the /public folder to the /assets URL path | ||
GET /assets/*file controllers.Assets.at(path="/public", file) |
1 change: 1 addition & 0 deletions
1
test/spec/fixtures/repos/play-2.2.x-scala-sample/project/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.0 |
8 changes: 8 additions & 0 deletions
8
test/spec/fixtures/repos/play-2.2.x-scala-sample/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Comment to get more information during initialization | ||
logLevel := Level.Warn | ||
|
||
// The Typesafe repository | ||
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | ||
|
||
// Use the Play sbt plugin for Play projects | ||
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.4") |
Binary file added
BIN
+687 Bytes
test/spec/fixtures/repos/play-2.2.x-scala-sample/public/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
test/spec/fixtures/repos/play-2.2.x-scala-sample/public/javascripts/jquery-1.9.0.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
30 changes: 30 additions & 0 deletions
30
test/spec/fixtures/repos/play-2.2.x-scala-sample/test/ApplicationSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import org.specs2.mutable._ | ||
import org.specs2.runner._ | ||
import org.junit.runner._ | ||
|
||
import play.api.test._ | ||
import play.api.test.Helpers._ | ||
|
||
/** | ||
* Add your spec here. | ||
* You can mock out a whole application including requests, plugins etc. | ||
* For more information, consult the wiki. | ||
*/ | ||
@RunWith(classOf[JUnitRunner]) | ||
class ApplicationSpec extends Specification { | ||
|
||
"Application" should { | ||
|
||
"send 404 on a bad request" in new WithApplication{ | ||
route(FakeRequest(GET, "/boum")) must beNone | ||
} | ||
|
||
"render the index page" in new WithApplication{ | ||
val home = route(FakeRequest(GET, "/")).get | ||
|
||
status(home) must equalTo(OK) | ||
contentType(home) must beSome.which(_ == "text/html") | ||
contentAsString(home) must contain ("Your new application is ready.") | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
test/spec/fixtures/repos/play-2.2.x-scala-sample/test/IntegrationSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import org.specs2.mutable._ | ||
import org.specs2.runner._ | ||
import org.junit.runner._ | ||
|
||
import play.api.test._ | ||
import play.api.test.Helpers._ | ||
|
||
/** | ||
* add your integration spec here. | ||
* An integration test will fire up a whole play application in a real (or headless) browser | ||
*/ | ||
@RunWith(classOf[JUnitRunner]) | ||
class IntegrationSpec extends Specification { | ||
|
||
"Application" should { | ||
|
||
"work from within a browser" in new WithBrowser { | ||
|
||
browser.goTo("http://localhost:" + port) | ||
|
||
browser.pageSource must contain("Your new application is ready.") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://codon-buildpacks.s3.amazonaws.com/buildpacks/jkutner/scala.tgz?foo=bar |
16 changes: 16 additions & 0 deletions
16
test/spec/fixtures/repos/play-2.3.x-scala-sample/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
logs | ||
project/project | ||
project/target | ||
target | ||
tmp | ||
.history | ||
dist | ||
/.idea | ||
/*.iml | ||
/out | ||
/.idea_modules | ||
/.classpath | ||
/.project | ||
/RUNNING_PID | ||
/.settings | ||
hk-debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This software is licensed under the Apache 2 license, quoted below. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is your new Play application | ||
================================= | ||
|
||
This file will be packaged with your application, when using `activator dist`. |
Oops, something went wrong.