You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2013/02/04 11:14:36 UTC
svn commit: r849318 - in /websites/staging/tomee/trunk: cgi-bin/ content/
content/examples-trunk/groovy-cdi/ content/examples-trunk/groovy-jpa/
content/examples-trunk/groovy-spock/
content/examples-trunk/groovy-spock/src/main/java/org/superbiz/groovy/ ...
Author: buildbot
Date: Mon Feb 4 10:14:36 2013
New Revision: 849318
Log:
Staging update by buildbot for tomee
Modified:
websites/staging/tomee/trunk/cgi-bin/ (props changed)
websites/staging/tomee/trunk/content/ (props changed)
websites/staging/tomee/trunk/content/examples-trunk/groovy-cdi/pom.xml
websites/staging/tomee/trunk/content/examples-trunk/groovy-jpa/pom.xml
websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/pom.xml
websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/main/java/org/superbiz/groovy/Hello.groovy
websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/test/java/org/superbiz/groovy/HelloSpecification.groovy
Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb 4 10:14:36 2013
@@ -1 +1 @@
-1442045
+1442065
Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb 4 10:14:36 2013
@@ -1 +1 @@
-1442045
+1442065
Modified: websites/staging/tomee/trunk/content/examples-trunk/groovy-cdi/pom.xml
==============================================================================
Binary files - no diff available.
Modified: websites/staging/tomee/trunk/content/examples-trunk/groovy-jpa/pom.xml
==============================================================================
Binary files - no diff available.
Modified: websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/pom.xml
==============================================================================
Binary files - no diff available.
Modified: websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/main/java/org/superbiz/groovy/Hello.groovy
==============================================================================
--- websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/main/java/org/superbiz/groovy/Hello.groovy (original)
+++ websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/main/java/org/superbiz/groovy/Hello.groovy Mon Feb 4 10:14:36 2013
@@ -20,4 +20,9 @@ class Hello {
def hi() {
"hi"
}
+
+ @Override
+ String toString() {
+ "This is the Hello instance";
+ }
}
Modified: websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/test/java/org/superbiz/groovy/HelloSpecification.groovy
==============================================================================
--- websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/test/java/org/superbiz/groovy/HelloSpecification.groovy (original)
+++ websites/staging/tomee/trunk/content/examples-trunk/groovy-spock/src/test/java/org/superbiz/groovy/HelloSpecification.groovy Mon Feb 4 10:14:36 2013
@@ -29,23 +29,25 @@ import static org.junit.Assert.assertEqu
import static org.junit.Assert.assertNotNull
class HelloSpecification extends spock.lang.Specification {
+
@Inject
- private Hello hello
+ private org.superbiz.groovy.Hello hello
@Deployment
def static WebArchive "create archive"() {
ShrinkWrap.create(WebArchive.class)
- .addAsLibraries(JarLocation.jarLocation(GroovyObject.class))
- .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
- .addClasses(Hello.class)
+ .addAsLibraries(JarLocation.jarLocation(GroovyObject.class))
+ .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
+ .addClasses(Hello.class)
}
def "Hello.hi() method should return 'hi'"() {
when:
- assertNotNull hello
+ println("Checking hello instance: " + hello)
+ assertNotNull hello
then:
- println("Compare 'hi' to '" + hello.hi() + "'")
- assertEquals "hi", hello.hi()
+ println("Comparing 'hi' to '" + hello.hi() + "'")
+ assertEquals "hi", hello.hi()
}
}