forked from pschneider-manzell/grails-spock-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored unit tests to use build in spock support Refactored domain class constraint tests to reflect new grails binding logic of empty strings Refactored geb tests to use phantomJS and the Page pattern Changed travis config to use grails wrapper
- Loading branch information
1 parent
a8990b7
commit caa342e
Showing
44 changed files
with
4,192 additions
and
12,329 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
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,6 +1,6 @@ | ||
#Grails Metadata file | ||
#Mon Mar 25 08:57:44 CET 2013 | ||
app.grails.version=2.2.0 | ||
#Mon Feb 03 19:44:19 CET 2014 | ||
app.grails.version=2.3.5 | ||
app.name=grails-spock-examples | ||
app.servlet.version=2.4 | ||
app.servlet.version=2.5 | ||
app.version=0.1 |
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,5 @@ | ||
modules = { | ||
application { | ||
resource url:'js/application.js' | ||
} | ||
} |
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
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,54 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Grails Runtime Exception</title> | ||
<style type="text/css"> | ||
.message { | ||
border: 1px solid black; | ||
padding: 5px; | ||
background-color:#E9E9E9; | ||
} | ||
.stack { | ||
border: 1px solid black; | ||
padding: 5px; | ||
overflow:auto; | ||
height: 300px; | ||
} | ||
.snippet { | ||
padding: 5px; | ||
background-color:white; | ||
border:1px solid black; | ||
margin:3px; | ||
font-family:courier; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<h1>Grails Runtime Exception</h1> | ||
<h2>Error Details</h2> | ||
|
||
<div class="message"> | ||
<strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/> | ||
<strong>Servlet:</strong> ${request.'javax.servlet.error.servlet_name'}<br/> | ||
<strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/> | ||
<g:if test="${exception}"> | ||
<strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br /> | ||
<strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br /> | ||
<strong>Class:</strong> ${exception.className} <br /> | ||
<strong>At Line:</strong> [${exception.lineNumber}] <br /> | ||
<strong>Code Snippet:</strong><br /> | ||
<div class="snippet"> | ||
<g:each var="cs" in="${exception.codeSnippet}"> | ||
${cs?.encodeAsHTML()}<br /> | ||
</g:each> | ||
</div> | ||
<head> | ||
<title><g:if env="development">Grails Runtime Exception</g:if><g:else>Error</g:else></title> | ||
<meta name="layout" content="main"> | ||
<g:if env="development"><link rel="stylesheet" href="${resource(dir: 'css', file: 'errors.css')}" type="text/css"></g:if> | ||
</head> | ||
<body> | ||
<g:if env="development"> | ||
<g:renderException exception="${exception}" /> | ||
</g:if> | ||
</div> | ||
<g:if test="${exception}"> | ||
<h2>Stack Trace</h2> | ||
<div class="stack"> | ||
<pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre> | ||
</div> | ||
</g:if> | ||
</body> | ||
</html> | ||
<g:else> | ||
<ul class="errors"> | ||
<li>An error has occurred</li> | ||
</ul> | ||
</g:else> | ||
</body> | ||
</html> |
Oops, something went wrong.