diff --git a/vaadin-cdi/pom.xml b/vaadin-cdi/pom.xml index de0106cb..4e27ce58 100644 --- a/vaadin-cdi/pom.xml +++ b/vaadin-cdi/pom.xml @@ -13,12 +13,13 @@ 7.5.1 - 1.4.1 + 1.7.2 - 2.43.1 - 1.2.3 - 1.1.7.Final + 2.47.1 + + 1.3.2 + 1.1.10.Final ${project.version} @@ -178,25 +179,11 @@ - org.apache.openejb - apache-tomee - 1.6.0.2 - plus - zip - test - - - org.apache.openejb + org.apache.tomee arquillian-tomee-embedded - 1.6.0.2 + 7.0.2 test - - javax.servlet - javax.servlet-api - 3.1.0 - provided - @@ -254,6 +241,13 @@ ${deltaspike.version} runtime + + + javax.enterprise + cdi-api + 1.2 + provided + @@ -272,12 +266,12 @@ org.jboss.arquillian.graphene arquillian-graphene pom - 2.0.3.Final + 2.1.0.Alpha3 test - org.mortbay.jetty - servlet-api-2.5 + javax.enterprise + cdi-api @@ -285,7 +279,7 @@ junit junit - 4.11 + 4.12 test @@ -365,23 +359,21 @@ org.apache.maven.plugins - maven-failsafe-plugin - 2.13 + maven-surefire-plugin + 2.19.1 - - false + false + + always + + org.apache.el.ExpressionFactoryImpl + + false - - - - integration-test - verify - - - maven-deploy-plugin diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingDeployment.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingDeploymentTest.java similarity index 97% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingDeployment.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingDeploymentTest.java index becc87a7..297e9c09 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingDeployment.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingDeploymentTest.java @@ -31,7 +31,7 @@ import com.vaadin.cdi.uis.PlainColidingAlternativeUI; import com.vaadin.cdi.uis.PlainUI; -public class CDIIntegrationWithConflictingDeployment extends +public class CDIIntegrationWithConflictingDeploymentTest extends AbstractManagedCDIIntegrationTest { @Before diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingUIPath.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingUIPathTest.java similarity index 96% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingUIPath.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingUIPathTest.java index 44cf5f23..5294fd34 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingUIPath.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithConflictingUIPathTest.java @@ -17,7 +17,7 @@ import com.vaadin.cdi.uis.PathCollisionUI; import com.vaadin.cdi.uis.RootUI; -public class CDIIntegrationWithConflictingUIPath extends +public class CDIIntegrationWithConflictingUIPathTest extends AbstractCDIIntegrationTest { @Before diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithCustomDeployment.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithCustomDeploymentTest.java similarity index 96% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithCustomDeployment.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithCustomDeploymentTest.java index 5f7b5741..67a8acae 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithCustomDeployment.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithCustomDeploymentTest.java @@ -29,7 +29,7 @@ import com.vaadin.cdi.uis.CustomMappingUI; -public class CDIIntegrationWithCustomDeployment extends +public class CDIIntegrationWithCustomDeploymentTest extends AbstractManagedCDIIntegrationTest { @Before diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithDefaultDeployment.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithDefaultDeploymentTest.java similarity index 99% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithDefaultDeployment.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithDefaultDeploymentTest.java index 0d8823a7..4031595a 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithDefaultDeployment.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/CDIIntegrationWithDefaultDeploymentTest.java @@ -63,7 +63,7 @@ import com.vaadin.cdi.views.MainView; import com.vaadin.cdi.views.SubView; -public class CDIIntegrationWithDefaultDeployment extends +public class CDIIntegrationWithDefaultDeploymentTest extends AbstractManagedCDIIntegrationTest { @Before diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/CrossInjection.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/CrossInjectionTest.java similarity index 96% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/CrossInjection.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/CrossInjectionTest.java index 5f226324..c96c6219 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/CrossInjection.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/CrossInjectionTest.java @@ -14,7 +14,7 @@ import com.vaadin.cdi.uis.ParameterizedNavigationUI; import com.vaadin.cdi.views.CrossInjectingView; -public class CrossInjection extends AbstractManagedCDIIntegrationTest { +public class CrossInjectionTest extends AbstractManagedCDIIntegrationTest { @Deployment(name = "crossInjection") public static WebArchive crossInjectionArchive() { diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/DeploymentTestSuiteIT.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/DeploymentTestSuiteIT.java index 40659274..39856cd6 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/DeploymentTestSuiteIT.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/DeploymentTestSuiteIT.java @@ -7,17 +7,17 @@ import com.vaadin.cdi.shiro.ShiroTest; @RunWith(Suite.class) -@Suite.SuiteClasses({ CDIIntegrationWithCustomDeployment.class, - CDIUIProviderTest.class, ConventionsTest.class, MultipleRootUIs.class, - CDIIntegrationWithConflictingDeployment.class, - CDIIntegrationWithConflictingUIPath.class, - CDIIntegrationWithDefaultDeployment.class, RootViewAtContextRoot.class, - MultipleAccessIsolation.class, ScopedInstances.class, +@Suite.SuiteClasses({ CDIIntegrationWithCustomDeploymentTest.class, + CDIUIProviderTest.class, ConventionsTest.class, MultipleRootUIsTest.class, + CDIIntegrationWithConflictingDeploymentTest.class, + CDIIntegrationWithConflictingUIPathTest.class, + CDIIntegrationWithDefaultDeploymentTest.class, RootViewAtContextRootTest.class, + MultipleAccessIsolationTest.class, ScopedInstancesTest.class, InjectionTest.class, ConsistentInjectionTest.class, - QualifiedInjection.class, MultipleSessionTest.class, - ScopedProducer.class, CrossInjection.class, ShiroTest.class, - InappropriateNestedServletInDeployment.class, - InappropriateCDIViewInDeployment.class, NonPassivatingBeanTest.class }) + QualifiedInjectionTest.class, MultipleSessionTest.class, + ScopedProducerTest.class, CrossInjectionTest.class, ShiroTest.class, + InappropriateNestedServletInDeploymentTest.class, + InappropriateCDIViewInDeploymentTest.class, NonPassivatingBeanTest.class }) public class DeploymentTestSuiteIT { } diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateCDIViewInDeployment.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateCDIViewInDeploymentTest.java similarity index 96% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateCDIViewInDeployment.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateCDIViewInDeploymentTest.java index 0f321aba..b32f5e05 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateCDIViewInDeployment.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateCDIViewInDeploymentTest.java @@ -12,7 +12,7 @@ import com.vaadin.cdi.views.CDIViewNotImplementingView; -public class InappropriateCDIViewInDeployment extends +public class InappropriateCDIViewInDeploymentTest extends AbstractCDIIntegrationTest { @Deployment(name = "cdiViewWithoutView", managed = false) diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateNestedServletInDeployment.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateNestedServletInDeploymentTest.java similarity index 97% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateNestedServletInDeployment.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateNestedServletInDeploymentTest.java index 4eeb1c60..5086d234 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateNestedServletInDeployment.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/InappropriateNestedServletInDeploymentTest.java @@ -28,7 +28,7 @@ import com.vaadin.cdi.uis.UIWithNestedServlet; -public class InappropriateNestedServletInDeployment extends +public class InappropriateNestedServletInDeploymentTest extends AbstractCDIIntegrationTest { @Deployment(name = "nestedServlet", managed = false) diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleAccessIsolation.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleAccessIsolationTest.java similarity index 98% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleAccessIsolation.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleAccessIsolationTest.java index 909d40ff..12ad08f4 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleAccessIsolation.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleAccessIsolationTest.java @@ -19,7 +19,7 @@ import com.vaadin.cdi.uis.ConcurrentUI; -public class MultipleAccessIsolation extends +public class MultipleAccessIsolationTest extends AbstractManagedCDIIntegrationTest { @Before diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleRootUIs.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleRootUIsTest.java similarity index 96% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleRootUIs.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleRootUIsTest.java index 1aa33741..b8f8e8e0 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleRootUIs.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/MultipleRootUIsTest.java @@ -34,7 +34,7 @@ @RunAsClient @RunWith(Arquillian.class) -public class MultipleRootUIs extends AbstractCDIIntegrationTest { +public class MultipleRootUIsTest extends AbstractCDIIntegrationTest { @Before public void resetCounter() { diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/NonPassivatingBeanTest.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/NonPassivatingBeanTest.java index c5f4da52..5e6f504a 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/NonPassivatingBeanTest.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/NonPassivatingBeanTest.java @@ -5,27 +5,14 @@ import static org.junit.Assert.assertThat; import java.net.MalformedURLException; -import java.util.HashSet; -import java.util.Set; -import javax.enterprise.context.spi.Context; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; - -import org.apache.myfaces.shared.util.Assert; -import org.hamcrest.core.Is; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.container.test.api.OperateOnDeployment; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.junit.Test; -import org.mockito.Mock; -import org.mockito.Mockito; -import com.vaadin.cdi.internal.CDIUtil; import com.vaadin.cdi.internal.Conventions; import com.vaadin.cdi.internal.NonPassivatingBean; -import com.vaadin.cdi.internal.ViewScopedContext; import com.vaadin.cdi.uis.NonPassivatingUI; import com.vaadin.cdi.views.NonPassivatingContentView; diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/QualifiedInjection.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/QualifiedInjectionTest.java similarity index 95% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/QualifiedInjection.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/QualifiedInjectionTest.java index 74eac1d6..8a2c8a66 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/QualifiedInjection.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/QualifiedInjectionTest.java @@ -19,7 +19,7 @@ import com.vaadin.cdi.internal.MyBean; import com.vaadin.cdi.uis.QualifierInjectionUI; -public class QualifiedInjection extends AbstractManagedCDIIntegrationTest { +public class QualifiedInjectionTest extends AbstractManagedCDIIntegrationTest { @Deployment(name = "qualifiedInjection") public static WebArchive qualifiedInjectionArchive() { diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/RootViewAtContextRoot.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/RootViewAtContextRootTest.java similarity index 94% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/RootViewAtContextRoot.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/RootViewAtContextRootTest.java index f0558160..4c15f037 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/RootViewAtContextRoot.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/RootViewAtContextRootTest.java @@ -15,7 +15,7 @@ import com.vaadin.cdi.uis.ParameterizedNavigationUI; import com.vaadin.cdi.views.RootView; -public class RootViewAtContextRoot extends AbstractManagedCDIIntegrationTest { +public class RootViewAtContextRootTest extends AbstractManagedCDIIntegrationTest { @Before public void resetCounter() { diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedInstances.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedInstancesTest.java similarity index 98% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedInstances.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedInstancesTest.java index 908c0129..990d79bd 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedInstances.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedInstancesTest.java @@ -21,7 +21,7 @@ import com.vaadin.cdi.views.UIScopedView; import com.vaadin.cdi.views.ViewScopedView; -public class ScopedInstances extends AbstractManagedCDIIntegrationTest { +public class ScopedInstancesTest extends AbstractManagedCDIIntegrationTest { @Deployment(name = "scopedNavigation") public static WebArchive alternativeAndActiveWithSamePath() { diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedProducer.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedProducerTest.java similarity index 96% rename from vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedProducer.java rename to vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedProducerTest.java index 5eaf611e..6ab97187 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedProducer.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/ScopedProducerTest.java @@ -18,7 +18,7 @@ import com.vaadin.cdi.internal.ProducedBean; import com.vaadin.cdi.uis.ProducerUI; -public class ScopedProducer extends AbstractManagedCDIIntegrationTest { +public class ScopedProducerTest extends AbstractManagedCDIIntegrationTest { @Deployment(name = "scopedProducer") public static WebArchive scopedProducerArchive() { diff --git a/vaadin-cdi/src/test/java/com/vaadin/cdi/shiro/ShiroTest.java b/vaadin-cdi/src/test/java/com/vaadin/cdi/shiro/ShiroTest.java index d56ffb92..76c1c91b 100644 --- a/vaadin-cdi/src/test/java/com/vaadin/cdi/shiro/ShiroTest.java +++ b/vaadin-cdi/src/test/java/com/vaadin/cdi/shiro/ShiroTest.java @@ -34,10 +34,10 @@ public static WebArchive initAndPostConstructAreConsistent() { AbstractShiroTestView.class, LoginPane.class, GuestView.class, ViewerView.class, AdminView.class) .addAsLibraries( - pom.resolve("org.apache.shiro:shiro-core:1.2.3") + pom.resolve("org.apache.shiro:shiro-core:1.3.2") .withTransitivity().asFile()) .addAsLibraries( - pom.resolve("org.apache.shiro:shiro-web:1.2.3") + pom.resolve("org.apache.shiro:shiro-web:1.3.2") .withTransitivity().asFile()) .addAsWebInfResource(new ClassLoaderAsset("shiro.ini"), ArchivePaths.create("shiro.ini"))