Return-Path: X-Original-To: apmail-tapestry-commits-archive@minotaur.apache.org Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5108D9E94 for ; Sun, 1 Apr 2012 00:48:55 +0000 (UTC) Received: (qmail 26664 invoked by uid 500); 1 Apr 2012 00:48:55 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 26637 invoked by uid 500); 1 Apr 2012 00:48:55 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 26625 invoked by uid 99); 1 Apr 2012 00:48:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Apr 2012 00:48:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Apr 2012 00:48:53 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id BBE7C2388980 for ; Sun, 1 Apr 2012 00:48:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1307965 - in /tapestry/tapestry5/trunk: build.gradle plastic/build.gradle plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy Date: Sun, 01 Apr 2012 00:48:33 -0000 To: commits@tapestry.apache.org From: hlship@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120401004833.BBE7C2388980@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hlship Date: Sun Apr 1 00:48:33 2012 New Revision: 1307965 URL: http://svn.apache.org/viewvc?rev=1307965&view=rev Log: Upgrade to version 0.6 of Spock framework, 1.8.6 of Groovy Modified: tapestry/tapestry5/trunk/build.gradle tapestry/tapestry5/trunk/plastic/build.gradle tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy Modified: tapestry/tapestry5/trunk/build.gradle URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1307965&r1=1307964&r2=1307965&view=diff ============================================================================== --- tapestry/tapestry5/trunk/build.gradle (original) +++ tapestry/tapestry5/trunk/build.gradle Sun Apr 1 00:48:33 2012 @@ -141,7 +141,7 @@ subprojects { } dependencies { - groovy "org.codehaus.groovy:groovy-all:1.7.4" + groovy "org.codehaus.groovy:groovy-all:1.8.6" deployerJars "org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6" } Modified: tapestry/tapestry5/trunk/plastic/build.gradle URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/plastic/build.gradle?rev=1307965&r1=1307964&r2=1307965&view=diff ============================================================================== --- tapestry/tapestry5/trunk/plastic/build.gradle (original) +++ tapestry/tapestry5/trunk/plastic/build.gradle Sun Apr 1 00:48:33 2012 @@ -2,7 +2,7 @@ description = "Plastic core framework" dependencies { - testCompile "org.spockframework:spock-core:0.5-groovy-1.7" + testCompile "org.spockframework:spock-core:0.6-groovy-1.8" } // Add the source directory for the imported/repackaged ASM 3.3.1 code Modified: tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy?rev=1307965&r1=1307964&r2=1307965&view=diff ============================================================================== --- tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy (original) +++ tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy Sun Apr 1 00:48:33 2012 @@ -1,4 +1,4 @@ -// Copyright 2011 The Apache Software Foundation +// Copyright 2011, 2012 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,9 +18,10 @@ import org.apache.tapestry5.plastic.Plas import spock.lang.Specification import spock.lang.Unroll +@Unroll class PlasticUtilsTests extends Specification { - def "toDescriptor handles primitive, object and array types"() + def "Class name #className should convert to descriptor #desc"() { expect: PlasticInternalUtils.toDescriptor(className) == desc @@ -35,7 +36,7 @@ class PlasticUtilsTests extends Specific "java.lang.Long[][]" | "[[Ljava/lang/Long;" } - def "descriptorToClassName for proper description"() + def "Descriptor #descriptor as class name should be #className"() { expect: PlasticInternalUtils.objectDescriptorToClassName(descriptor) == className @@ -45,8 +46,7 @@ class PlasticUtilsTests extends Specific 'Lfoo/bar/Baz$Biff;' | 'foo.bar.Baz$Biff' } - @Unroll("toClass '#javaName' should be #expectedClass") - def "toClass tests"() + def "toClass('#javaName') should be #expectedClass"() { expect: @@ -74,8 +74,7 @@ class PlasticUtilsTests extends Specific e.message == "Input 'I' is not an object descriptor." } - @Unroll("#featureName[field '#fieldName' should convert to property '#propertyName']") - def "conversion of field name to property name"() + def "Field '#fieldName' should convert to property '#propertyName'"() { expect: @@ -115,8 +114,7 @@ class PlasticUtilsTests extends Specific thrown(IllegalArgumentException) } - @Unroll("#featureName['#input' should capitalize to '#output']") - def "capitalize strings"() + def "capitalize('#input') should be '#output'"() { expect: @@ -133,8 +131,7 @@ class PlasticUtilsTests extends Specific "goodbye" | "Goodbye" } - @Unroll("toWrapperType #primitiveType should be #wrapperType") - def "primitive type to wrapper type"() + def "toWrapperType #primitiveType should be #wrapperType"() { expect: @@ -149,8 +146,7 @@ class PlasticUtilsTests extends Specific int[].class | int[].class } - @Unroll("isPrimitive(#name) == #expected") - def "isPrimitive tests"() + def "isPrimitive #name should be #expected"() { expect: