This is an automated email from the ASF dual-hosted git repository. rzo1 pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/main by this push: new 1706b3e1e0 TOMEE-4366 - Remove "groovy-spock" Example 1706b3e1e0 is described below commit 1706b3e1e0398e6194f6a1d3a4e1cc191d6f3313 Author: Richard Zowalla <r...@apache.org> AuthorDate: Tue Jul 9 14:04:07 2024 +0200 TOMEE-4366 - Remove "groovy-spock" Example --- examples/groovy-spock/README.adoc | 88 ------------- examples/groovy-spock/README_es.adoc | 88 ------------- examples/groovy-spock/README_pt.adoc | 88 ------------- examples/groovy-spock/pom.xml | 144 --------------------- .../main/groovy/org/superbiz/groovy/Hello.groovy | 29 ----- .../src/main/resources/META-INF/beans.xml | 19 --- .../org/superbiz/groovy/HelloSpecification.groovy | 57 -------- examples/pom.xml | 1 - 8 files changed, 514 deletions(-) diff --git a/examples/groovy-spock/README.adoc b/examples/groovy-spock/README.adoc deleted file mode 100644 index 8d20057993..0000000000 --- a/examples/groovy-spock/README.adoc +++ /dev/null @@ -1,88 +0,0 @@ -:index-group: Misc -:jbake-type: page -:jbake-status: status=published -= HelloSpecification - -_This example is guide of implementation the http://spockframework.org[Spock Framework] how class test._ - -== Hello - -[source,groovy] ----- -include::src/main/groovy/org/superbiz/groovy/Hello.groovy[] ----- - -== HelloSpecification - -This class extends of `*_spock.lang.Specification_*` for register the specification test. - -Inject bean *Hello* with _@Inject_ and use http://arquillian.org[Arquilian] for test deploy. - -[source,groovy] ----- -include::src/test/groovy/org/superbiz/groovy/HelloSpecification.groovy[] ----- - -== Running - -For run test execute. - -[source,bash] ----- -$ mvn test ----- - -[source,console] ----- -------------------------------------------------------- - T E S T S -------------------------------------------------------- -Running org.superbiz.groovy.HelloSpecification -INFO - ******************************************************************************** -INFO - OpenEJB http://tomee.apache.org/ -INFO - Startup: Fri Oct 04 00:11:58 ECT 2019 -INFO - Copyright 1999-2024 (C) Apache OpenEJB Project, All Rights Reserved. -INFO - Version: 10.0.0-M1-SNAPSHOT -INFO - Build date: 20190907 -INFO - Build time: 04:10 -INFO - ******************************************************************************** -INFO - openejb.home = /Users/sergio/workspace/git/tomee/examples/groovy-spock -INFO - openejb.base = /Users/sergio/workspace/git/tomee/examples/groovy-spock -INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@4c9f8c13 -INFO - Succeeded in installing singleton service -INFO - Cannot find the configuration file [conf/openejb.xml]. Will attempt to create one for the beans deployed. -INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service) -INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) -INFO - Using 'openejb.deployments.classpath=false' -INFO - Creating TransactionManager(id=Default Transaction Manager) -INFO - Creating SecurityService(id=Default Security Service) -INFO - Configuring enterprise application: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container) -INFO - Auto-creating a container for bean fb09e09c-4da2-47dd-83e9-4fd3f1e685e3_org.superbiz.groovy.HelloSpecification: Container(type=MANAGED, id=Default Managed Container) -INFO - Creating Container(id=Default Managed Container) -INFO - Using directory /var/folders/3j/qhs78rln3y9bl0c279f2j13m0000gn/T for stateful session passivation -INFO - Enterprise application "/Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war" loaded. -INFO - Assembling app: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -INFO - Existing thread singleton service in SystemInstance(): org.apache.openejb.cdi.ThreadSingletonServiceImpl@4c9f8c13 -INFO - Some Principal APIs could not be loaded: org.eclipse.microprofile.jwt.JsonWebToken out of org.eclipse.microprofile.jwt.JsonWebToken not found -INFO - OpenWebBeans Container is starting... -INFO - Adding OpenWebBeansPlugin : [CdiPlugin] -INFO - All injection points were validated successfully. -INFO - OpenWebBeans Container has started, it took 1555 ms. -INFO - Deployed Application(path=/Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war) -Checking hello instance: This is the Hello instance -Comparing 'hi' to 'hi' -INFO - Undeploying app: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.264 sec - in org.superbiz.groovy.HelloSpecification - -Results : - -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 - -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD SUCCESS -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 46.149 s -[INFO] Finished at: 2019-10-04T00:12:15-05:00 -[INFO] ------------------------------------------------------------------------ ----- diff --git a/examples/groovy-spock/README_es.adoc b/examples/groovy-spock/README_es.adoc deleted file mode 100644 index e522281d35..0000000000 --- a/examples/groovy-spock/README_es.adoc +++ /dev/null @@ -1,88 +0,0 @@ -:index-group: Misc -:jbake-type: page -:jbake-status: status=published -= HelloSpecification - -_Este es una guía de como implementar http://spockframework.org[Spock Framework] para pruebas._ - -== Hello - -[source,groovy] ----- -include::src/main/groovy/org/superbiz/groovy/Hello.groovy[] ----- - -== HelloSpecification - -Esta clase extiende de `*_spock.lang.Specification_*` para registrar la especificación de prueba. - -Inyecte el bean *Hello* con _@Inject_ y use http://arquillian.org[Arquilian] para desplegar la prueba. - -[source,groovy] ----- -include::src/test/groovy/org/superbiz/groovy/HelloSpecification.groovy[] ----- - -== Ejecutando - -Para correr la prueba ejecute. - -[source,bash] ----- -$ mvn test ----- - -[source,console] ----- -------------------------------------------------------- - T E S T S -------------------------------------------------------- -Running org.superbiz.groovy.HelloSpecification -INFO - ******************************************************************************** -INFO - OpenEJB http://tomee.apache.org/ -INFO - Startup: Fri Oct 04 00:11:58 ECT 2019 -INFO - Copyright 1999-2024 (C) Apache OpenEJB Project, All Rights Reserved. -INFO - Version: 10.0.0-M1-SNAPSHOT -INFO - Build date: 20190907 -INFO - Build time: 04:10 -INFO - ******************************************************************************** -INFO - openejb.home = /Users/sergio/workspace/git/tomee/examples/groovy-spock -INFO - openejb.base = /Users/sergio/workspace/git/tomee/examples/groovy-spock -INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@4c9f8c13 -INFO - Succeeded in installing singleton service -INFO - Cannot find the configuration file [conf/openejb.xml]. Will attempt to create one for the beans deployed. -INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service) -INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) -INFO - Using 'openejb.deployments.classpath=false' -INFO - Creating TransactionManager(id=Default Transaction Manager) -INFO - Creating SecurityService(id=Default Security Service) -INFO - Configuring enterprise application: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container) -INFO - Auto-creating a container for bean fb09e09c-4da2-47dd-83e9-4fd3f1e685e3_org.superbiz.groovy.HelloSpecification: Container(type=MANAGED, id=Default Managed Container) -INFO - Creating Container(id=Default Managed Container) -INFO - Using directory /var/folders/3j/qhs78rln3y9bl0c279f2j13m0000gn/T for stateful session passivation -INFO - Enterprise application "/Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war" loaded. -INFO - Assembling app: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -INFO - Existing thread singleton service in SystemInstance(): org.apache.openejb.cdi.ThreadSingletonServiceImpl@4c9f8c13 -INFO - Some Principal APIs could not be loaded: org.eclipse.microprofile.jwt.JsonWebToken out of org.eclipse.microprofile.jwt.JsonWebToken not found -INFO - OpenWebBeans Container is starting... -INFO - Adding OpenWebBeansPlugin : [CdiPlugin] -INFO - All injection points were validated successfully. -INFO - OpenWebBeans Container has started, it took 1555 ms. -INFO - Deployed Application(path=/Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war) -Checking hello instance: This is the Hello instance -Comparing 'hi' to 'hi' -INFO - Undeploying app: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.264 sec - in org.superbiz.groovy.HelloSpecification - -Results : - -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 - -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD SUCCESS -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 46.149 s -[INFO] Finished at: 2019-10-04T00:12:15-05:00 -[INFO] ------------------------------------------------------------------------ ----- diff --git a/examples/groovy-spock/README_pt.adoc b/examples/groovy-spock/README_pt.adoc deleted file mode 100644 index bf310a7f31..0000000000 --- a/examples/groovy-spock/README_pt.adoc +++ /dev/null @@ -1,88 +0,0 @@ -:index-group: Misc -:jbake-type: page -:jbake-status: status=published -= Projeto Groovy com Spock Framework - -Este é um guia de como implementar http://spockframework.org[Spock Framework] para testes. - -== Hello - -[source,groovy] ----- -include::src/main/groovy/org/superbiz/groovy/Hello.groovy[] ----- - -== HelloSpecification - -Esta classe estende de `*_spock.lang.Specification_*` para registrar a especificação de testes. - -Injete o bean *Hello* com _@Inject_ e use http://arquillian.org[Arquilian] para desdobrar o teste. - -[source,groovy] ----- -include::src/test/groovy/org/superbiz/groovy/HelloSpecification.groovy[] ----- - -== Executando - -Para executar o teste, execute. - -[source,bash] ----- -$ mvn test ----- - -[source,console] ----- -------------------------------------------------------- - T E S T S -------------------------------------------------------- -Running org.superbiz.groovy.HelloSpecification -INFO - ******************************************************************************** -INFO - OpenEJB http://tomee.apache.org/ -INFO - Startup: Fri Oct 04 00:11:58 ECT 2019 -INFO - Copyright 1999-2024 (C) Apache OpenEJB Project, All Rights Reserved. -INFO - Version: 10.0.0-M1-SNAPSHOT -INFO - Build date: 20190907 -INFO - Build time: 04:10 -INFO - ******************************************************************************** -INFO - openejb.home = /Users/sergio/workspace/git/tomee/examples/groovy-spock -INFO - openejb.base = /Users/sergio/workspace/git/tomee/examples/groovy-spock -INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@4c9f8c13 -INFO - Succeeded in installing singleton service -INFO - Cannot find the configuration file [conf/openejb.xml]. Will attempt to create one for the beans deployed. -INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service) -INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) -INFO - Using 'openejb.deployments.classpath=false' -INFO - Creating TransactionManager(id=Default Transaction Manager) -INFO - Creating SecurityService(id=Default Security Service) -INFO - Configuring enterprise application: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container) -INFO - Auto-creating a container for bean fb09e09c-4da2-47dd-83e9-4fd3f1e685e3_org.superbiz.groovy.HelloSpecification: Container(type=MANAGED, id=Default Managed Container) -INFO - Creating Container(id=Default Managed Container) -INFO - Using directory /var/folders/3j/qhs78rln3y9bl0c279f2j13m0000gn/T for stateful session passivation -INFO - Enterprise application "/Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war" loaded. -INFO - Assembling app: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -INFO - Existing thread singleton service in SystemInstance(): org.apache.openejb.cdi.ThreadSingletonServiceImpl@4c9f8c13 -INFO - Some Principal APIs could not be loaded: org.eclipse.microprofile.jwt.JsonWebToken out of org.eclipse.microprofile.jwt.JsonWebToken not found -INFO - OpenWebBeans Container is starting... -INFO - Adding OpenWebBeansPlugin : [CdiPlugin] -INFO - All injection points were validated successfully. -INFO - OpenWebBeans Container has started, it took 1555 ms. -INFO - Deployed Application(path=/Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war) -Checking hello instance: This is the Hello instance -Comparing 'hi' to 'hi' -INFO - Undeploying app: /Users/sergio/workspace/git/tomee/examples/groovy-spock/fb09e09c-4da2-47dd-83e9-4fd3f1e685e3.war -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.264 sec - in org.superbiz.groovy.HelloSpecification - -Results : - -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 - -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD SUCCESS -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 46.149 s -[INFO] Finished at: 2019-10-04T00:12:15-05:00 -[INFO] ------------------------------------------------------------------------ ----- diff --git a/examples/groovy-spock/pom.xml b/examples/groovy-spock/pom.xml deleted file mode 100644 index 0ff0e6e2e2..0000000000 --- a/examples/groovy-spock/pom.xml +++ /dev/null @@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.superbiz</groupId> - <artifactId>groovy-spock</artifactId> - <packaging>jar</packaging> - <version>10.0.0-M2-SNAPSHOT</version> - <name>TomEE :: Examples :: Groovy Spock</name> - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - <build> - <defaultGoal>install</defaultGoal> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.6.1</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.gmavenplus</groupId> - <artifactId>gmavenplus-plugin</artifactId> - <version>1.5</version> - <executions> - <execution> - <goals> - <goal>compile</goal> - <goal>testCompile</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>3.3.0</version> - <configuration> - <includes> - <!-- we could have used *Test.java as by default but it is more consistent --> - <include>**/*Specification.java</include> - </includes> - </configuration> - </plugin> - - </plugins> - </build> - <repositories> - <repository> - <id>apache-m2-snapshot</id> - <name>Apache Snapshot Repository</name> - <url>https://repository.apache.org/content/groups/snapshots</url> - <snapshots /> - </repository> - </repositories> - <dependencies> - <dependency> - <groupId>org.apache.tomee</groupId> - <artifactId>jakartaee-api</artifactId> - <version>10.0-M2</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.codehaus.groovy</groupId> - <artifactId>groovy-all</artifactId> - <version>2.4.8</version> - </dependency> - <dependency> - <groupId>org.apache.tomee.bom</groupId> - <artifactId>jaxb-runtime</artifactId> - <version>10.0.0-M2-SNAPSHOT</version> - <type>pom</type> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.13.2</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.tomee</groupId> - <artifactId>arquillian-openejb-embedded</artifactId> - <version>10.0.0-M2-SNAPSHOT</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.jboss.arquillian.junit</groupId> - <artifactId>arquillian-junit-container</artifactId> - <version>1.8.1.Final</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.tomee</groupId> - <artifactId>ziplock</artifactId> - <version>10.0.0-M2-SNAPSHOT</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.jboss.arquillian.spock</groupId> - <artifactId>arquillian-spock-container</artifactId> - <version>1.0.0.Beta3</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.spockframework</groupId> - <artifactId>spock-core</artifactId> - <version>0.7-groovy-2.0</version> - <scope>test</scope> - </dependency> - </dependencies> - <!-- This section allows you to configure where to publish libraries for - sharing. It is not required and may be deleted. For more information see: - http://maven.apache.org/plugins/maven-deploy-plugin/ --> - <distributionManagement> - <repository> - <id>localhost</id> - <url>file://${basedir}/target/repo/</url> - </repository> - <snapshotRepository> - <id>localhost</id> - <url>file://${basedir}/target/snapshot-repo/</url> - </snapshotRepository> - </distributionManagement> -</project> diff --git a/examples/groovy-spock/src/main/groovy/org/superbiz/groovy/Hello.groovy b/examples/groovy-spock/src/main/groovy/org/superbiz/groovy/Hello.groovy deleted file mode 100644 index 5141fcc950..0000000000 --- a/examples/groovy-spock/src/main/groovy/org/superbiz/groovy/Hello.groovy +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.superbiz.groovy - -class Hello { - - def hi() { - "hi" - } - - @Override - String toString() { - "This is the Hello instance"; - } -} diff --git a/examples/groovy-spock/src/main/resources/META-INF/beans.xml b/examples/groovy-spock/src/main/resources/META-INF/beans.xml deleted file mode 100644 index 6668db4b60..0000000000 --- a/examples/groovy-spock/src/main/resources/META-INF/beans.xml +++ /dev/null @@ -1,19 +0,0 @@ -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<beans> -</beans> \ No newline at end of file diff --git a/examples/groovy-spock/src/test/groovy/org/superbiz/groovy/HelloSpecification.groovy b/examples/groovy-spock/src/test/groovy/org/superbiz/groovy/HelloSpecification.groovy deleted file mode 100644 index f16b5e1422..0000000000 --- a/examples/groovy-spock/src/test/groovy/org/superbiz/groovy/HelloSpecification.groovy +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.superbiz.groovy - -import org.apache.ziplock.JarLocation -import org.jboss.arquillian.container.test.api.Deployment -import org.jboss.arquillian.spock.ArquillianSputnik -import org.jboss.shrinkwrap.api.ArchivePaths -import org.jboss.shrinkwrap.api.ShrinkWrap -import org.jboss.shrinkwrap.api.asset.EmptyAsset -import org.jboss.shrinkwrap.api.spec.WebArchive -import org.junit.runner.RunWith -import spock.lang.Specification - -import jakarta.inject.Inject - -import static org.junit.Assert.assertEquals -import static org.junit.Assert.assertNotNull - -@RunWith(ArquillianSputnik.class) -class HelloSpecification extends Specification { - - @Inject - private 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) - } - - def "Hello.hi() method should return 'hi'"() { - when: - println("Checking hello instance: " + hello) - assertNotNull hello - - then: - println("Comparing 'hi' to '" + hello.hi() + "'") - assertEquals "hi", hello.hi() - } -} diff --git a/examples/pom.xml b/examples/pom.xml index 31a82f73a2..15cdce0a6a 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -75,7 +75,6 @@ <module>ejb-webservice</module> <module>groovy-cdi</module> <module>groovy-jpa</module> - <module>groovy-spock</module> <module>helloworld-weblogic</module> <module>injection-of-connectionfactory</module> <module>injection-of-datasource</module>