Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F0E6D1E4 for ; Wed, 29 Aug 2012 19:25:23 +0000 (UTC) Received: (qmail 97951 invoked by uid 500); 29 Aug 2012 19:25:23 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 97927 invoked by uid 500); 29 Aug 2012 19:25:22 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 97919 invoked by uid 99); 29 Aug 2012 19:25:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 19:25:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of abargnesi@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vc0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 19:25:14 +0000 Received: by vcbfo14 with SMTP id fo14so1420180vcb.17 for ; Wed, 29 Aug 2012 12:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=j6S3LBR6WBHNJmwv75AjhNLG18w9mjJONP18HixhT4c=; b=VPcwzqgO6RzNOJ2G4QBdlpVU9T33da2s39oUQPUMQE4RddyNkBu9nlGqNBFMRcWOE2 YhgJdp6z1+79NrnZPEFwfWpyyawOuRigzAMMJxalU9CLDuBxPhQi0yvn0GuYtpIB7jMK HrYMnD3ylK4frJUSaT7qe1ewXH3oWGixNXKKd09h+DhWc2cYxpuQy9YvlCdpnBEpahXs sTeV16jp5vBlrLRieGkQfRzYd23t3aYzaGCUbKC/H5IOdIxqsTyrT/eCKMb/5qNnZfQT SiSQsAz6lzi7Uh+CY3JhDKKAnN8ohfDWDxjvYwT6bwDHTSieCtHJhquxxt5Jv6hF7WVR jg+g== MIME-Version: 1.0 Received: by 10.52.65.112 with SMTP id w16mr1370544vds.65.1346268293362; Wed, 29 Aug 2012 12:24:53 -0700 (PDT) Received: by 10.220.25.132 with HTTP; Wed, 29 Aug 2012 12:24:53 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Aug 2012 15:24:53 -0400 Message-ID: Subject: Re: Customize spec/story path for easyb integration From: Anthony Bargnesi To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=20cf307f326865f2b304c86c83a2 --20cf307f326865f2b304c86c83a2 Content-Type: text/plain; charset=ISO-8859-1 The exception was an issue in the specification. I needed trailing commas in the dsl. Thanks. On Wed, Aug 29, 2012 at 2:13 PM, Anthony Bargnesi wrote: > "buildr test" now picks up my specification but fails to run it. The > exception seems to be related > easyb's 'before' method. > > Running comparison service specification > (ComparisonServiceSpecification.groovy) > There was an error running your easyb story or specification > groovy.lang.MissingMethodException: No signature of method: > sdp.comparisons.impl.ComparisonServiceSpecification.create a new > DefaultComparisonService() is applicable for argument types: > (sdp.comparisons.impl.ComparisonServiceSpecification$_run_closure1) values: > {sdp.comparisons.impl.ComparisonServiceSpecification$_run_closure1@39a26ac5 > } > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:88) > at > sdp.comparisons.impl.ComparisonServiceSpecification.run(ComparisonServiceSpecification.groovy:7) > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:473) > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:508) > at > org.disco.easyb.domain.Specification.execute(Specification.java:26) > at > org.disco.easyb.BehaviorRunner.runBehavior(BehaviorRunner.java:75) > at org.disco.easyb.BehaviorRunner.main(BehaviorRunner.java:56) > > I noticed a version discrepancy between the latest easyb and what buildr > defines. The latest > version of easyb is 1.5 and it located under a different artifact id: > > 'org.easyb:easyb-core:jar:1.5' > > > I can't redefine the version because the artifact id has changed. Also the setting to update > > the version is 'jbehave'. > > > Is there a proper configuration of buildr/easyb that will made my spec work? For reference my > > spec is defined as: > > > description "This exercises the guards in ComparisonService API" > > > before "create a new DefaultComparisonService" { > > service = new DefaultComparisonService() > > } > > > it "parse API should protect against nulls" { > > ensureThrows(IllegalArgumentException) { > > service.parse (String) null > > service.parse (InputStream) null > > } > > } > > > it "parse String API should protect against empty string" { > > ensureThrows(IllegalArgumentException) { > > service.parse "" > > } > > } > > > Thanks! > Anthony Bargnesi > > On Wed, Aug 29, 2012 at 1:34 PM, Anthony Bargnesi wrote: > >> Hello, >> >> I have a project with java main source, java test source, and groovy >> specifications with easyb. I configure a new layout structure as follows: >> >> layout = Layout.new >> layout[:source, :main, :java] = 'src' >> layout[:source, :test, :java] = 'test' >> layout[:source, :spec, :groovy] = 'spec' >> layout[:source, :main, :resources] = 'resources' >> layout[:source, :test, :resources] = 'test' >> layout[:target, :main, :classes] = 'target/classes' >> >> I declare easyb testing with: >> >> test.using :easyb >> >> test.compile.with 'org.codehaus.groovy:groovy:jar:2.0.1', 'org.easyb:easyb-core:jar:1.5' >> >> The specification tests are not run when I execute "buildr test". >> >> I think it is due to the EasyB module expecting :source, :spec, :groovy >> as the path to the stories and specifications. >> >> Did I provide the layout to my easyb specifications incorrectly? >> >> Thanks! >> Anthony Bargnesi >> > > --20cf307f326865f2b304c86c83a2--