You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/04/16 19:58:10 UTC
svn commit: r1326702 -
/tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/plastic/FieldAccessTests.groovy
Author: hlship
Date: Mon Apr 16 17:58:09 2012
New Revision: 1326702
URL: http://svn.apache.org/viewvc?rev=1326702&view=rev
Log:
Fix test to add assert in proper place
Modified:
tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/plastic/FieldAccessTests.groovy
Modified: tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/plastic/FieldAccessTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/plastic/FieldAccessTests.groovy?rev=1326702&r1=1326701&r2=1326702&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/plastic/FieldAccessTests.groovy (original)
+++ tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/plastic/FieldAccessTests.groovy Mon Apr 16 17:58:09 2012
@@ -8,10 +8,8 @@ import testsubjects.ProtectedFieldCollab
/**
* Tests related to access to non-private fields between transformed classes (a new feature in 5.4).
*/
-class FieldAccessTests extends AbstractPlasticSpecification
-{
- def "access protected field from other transformed class"()
- {
+class FieldAccessTests extends AbstractPlasticSpecification {
+ def "access protected field from other transformed class"() {
FieldConduit fc = Mock()
PlasticClass pc = mgr.getPlasticClass(ProtectedField.name)
@@ -37,15 +35,14 @@ class FieldAccessTests extends AbstractP
when:
- fc.get(_, _) >> "badoop"
+ assert collab.getProtectedValue() == "badoop"
then:
- collab.getProtectedValue() == "badoop"
+ fc.get(_, _) >> "badoop"
}
- def "access protected field from inner class"()
- {
+ def "access protected field from inner class"() {
FieldConduit fc = Mock()