[JBoss JIRA] (ARQGRA-442) Graphene is not compatible with selenium 2.42.0
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-442?page=com.atlassian.jira.plugin... ]
Lukáš Fryč edited comment on ARQGRA-442 at 5/28/14 2:36 AM:
------------------------------------------------------------
We need to refactor SeleniumResourceProvider [1] in a way which will be future-proof, i.e. we won't compile this class against Selenium API, we should rather leverage a list of class names and iterate over them. If class won't be find, it will be simply skipped.
[1] https://github.com/arquillian/arquillian-graphene/blob/master/impl/src/ma...
was (Author: lfryc):
We need to refactor SeleniumResourceProvider [1] in a way which will be future-proof, i.e. we won't compile this class against Selenium API, we should rather leverage a list of class names and iterate over them. If class won't be find, it will be simply skipped.
> Graphene is not compatible with selenium 2.42.0
> -----------------------------------------------
>
> Key: ARQGRA-442
> URL: https://issues.jboss.org/browse/ARQGRA-442
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Affects Versions: 2.0.2.Final
> Reporter: Sona Jamborova
> Fix For: 2.0.3.Final
>
>
> The update of version of selenium-bom to 2.42.0 cause problems in my test suite which uses Arquillian Graphene. It seems that Graphene expected class org.openqa.selenium.html5.BrowserConnection which was deleted by this commit http://code.google.com/p/selenium/source/detail?r=8629dc6ec6ddd96bbe0975e...
> Exception is here: http://pastebin.test.redhat.com/211410
> Selenium 2.42.0 contains some fixes which blocks our test suite:
> - Fixing interactions API in Firefox to be able to move mouse to elements in frames using native events. Fixes issue 7253
> - Click after move with offset should use last mouse position
> - Fixing IE driver crash when clicking on link that opens a new window.
> - etc.
> I will appreciate a quick fix (minor release).
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 4 months
[JBoss JIRA] (ARQGRA-442) Graphene is not compatible with selenium 2.42.0
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-442?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-442:
-----------------------------------
We need to refactor SeleniumResourceProvider [1] in a way which will be future-proof, i.e. we won't compile this class against Selenium API, we should rather leverage a list of class names and iterate over them. If class won't be find, it will be simply skipped.
> Graphene is not compatible with selenium 2.42.0
> -----------------------------------------------
>
> Key: ARQGRA-442
> URL: https://issues.jboss.org/browse/ARQGRA-442
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Affects Versions: 2.0.2.Final
> Reporter: Sona Jamborova
> Fix For: 2.0.3.Final
>
>
> The update of version of selenium-bom to 2.42.0 cause problems in my test suite which uses Arquillian Graphene. It seems that Graphene expected class org.openqa.selenium.html5.BrowserConnection which was deleted by this commit http://code.google.com/p/selenium/source/detail?r=8629dc6ec6ddd96bbe0975e...
> Exception is here: http://pastebin.test.redhat.com/211410
> Selenium 2.42.0 contains some fixes which blocks our test suite:
> - Fixing interactions API in Firefox to be able to move mouse to elements in frames using native events. Fixes issue 7253
> - Click after move with offset should use last mouse position
> - Fixing IE driver crash when clicking on link that opens a new window.
> - etc.
> I will appreciate a quick fix (minor release).
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 4 months
[JBoss JIRA] (ARQ-1769) org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1769?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč commented on ARQ-1769:
---------------------------------
Willian, I have noticed the code you have provided do not have any Inspection specified:
you have:
{code}
Warp.initiatiate(Activity)
{code}
but you should have:
{code}
Warp.initiative(Activity).inspect(Inspection)
{code}
Could you please specify the actual Inspection code?
I'm sure you had to have some inspection specified, since Warp won't execute activity unless you specified some inspection. ;-)
----
You are also using HtmlUnit as a client-side code runner.
I would really like to discourage that, since you will often find it doesn't work as expected.
You can configure Drone for browser=phantomjs. PhantomJS simulates Chrome browser behavior very closely (in fact they share the WebKit/Blink core).
> org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
> --------------------------------------------------------------------------
>
> Key: ARQ-1769
> URL: https://issues.jboss.org/browse/ARQ-1769
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Affects Versions: warp_1.0.0.Alpha7, 1.1.3.Final, 1.1.4.Final
> Environment: Windows 7 Enterprise SP1 64-bit
> Reporter: William Crowell
>
> I am using the following:
> Arquillian Core: 1.1.4.Final (as well as 1.1.3.Final)
> Arquillian Drone: 1.2.4.Final (I've tried Drone 2 as well)
> Arquillian Warp: 1.0.0.Alpha7 (as well as 1.0.0.Beta1-SNAPSHOT)
> Arquillian Transaction: 1.0.1.Final
> Arquillian Tomcat 7 Embedded Container using Tomcat 7.0.27: 1.0.0.Final-SNAPSHOT
> Spring: 3.2.4.RELEASE
> Spring Web: 3.2.2.RELEASE
> Spring Security: 3.1.4.RELEASE
> Spring WebFlow: 2.4.0.RC1
> PrimeFaces 3.4.2
> JUnit: 4.8.2
> Mojarra 2.1.17
> I am receiving this exception:
> {code}
> java.lang.IllegalStateException: org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
> at org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerObserver.finalizeManager(LifecycleManagerObserver.java:69)
> ...
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.warp.impl.server.test.LifecycleTestClassExecutor.afterRequest(LifecycleTestClassExecutor.java:78)
> ...
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.warp.impl.server.request.RequestContextHandler.handleRequestContext(RequestContextHandler.java:93)
> ...
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.warp.impl.server.execution.WarpFilter.doFilterWarp(WarpFilter.java:151)
> at org.jboss.arquillian.warp.impl.server.execution.WarpFilter.doFilterHttp(WarpFilter.java:120)
> at org.jboss.arquillian.warp.impl.server.execution.WarpFilter.doFilter(WarpFilter.java:93)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
> at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> ...
> Caused by: org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
> at org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerStoreImpl.checkUnbound(LifecycleManagerStoreImpl.java:126)
> at org.jboss.arquillian.warp.spi.LifecycleManager.checkUnbound(LifecycleManager.java:158)
> at org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerObserver.finalizeManager(LifecycleManagerObserver.java:67)
> ... 74 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 4 months
[JBoss JIRA] (ARQGRA-442) Graphene is not compatible with selenium 2.42.0
by Sona Jamborova (JIRA)
Sona Jamborova created ARQGRA-442:
-------------------------------------
Summary: Graphene is not compatible with selenium 2.42.0
Key: ARQGRA-442
URL: https://issues.jboss.org/browse/ARQGRA-442
Project: Arquillian Graphene
Issue Type: Feature Request
Affects Versions: 2.0.2.Final
Reporter: Sona Jamborova
The update of version of selenium-bom to 2.42.0 cause problems in my test suite which uses Arquillian Graphene. It seems that Graphene expected class org.openqa.selenium.html5.BrowserConnection which was deleted by this commit http://code.google.com/p/selenium/source/detail?r=8629dc6ec6ddd96bbe0975e...
Exception is here: http://pastebin.test.redhat.com/211410
Selenium 2.42.0 contains some fixes which blocks our test suite:
- Fixing interactions API in Firefox to be able to move mouse to elements in frames using native events. Fixes issue 7253
- Click after move with offset should use last mouse position
- Fixing IE driver crash when clicking on link that opens a new window.
- etc.
I will appreciate a quick fix (minor release).
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 4 months
[JBoss JIRA] (ARQ-1769) org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
by William Crowell (JIRA)
[ https://issues.jboss.org/browse/ARQ-1769?page=com.atlassian.jira.plugin.s... ]
William Crowell commented on ARQ-1769:
--------------------------------------
Lukas,
Any workarounds for this?
You guys have done outstanding work on this. I really want to try to get this to work. I had to switch back to JSFUnit for the time being.
Thank you,
William Crowell
> org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
> --------------------------------------------------------------------------
>
> Key: ARQ-1769
> URL: https://issues.jboss.org/browse/ARQ-1769
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Affects Versions: warp_1.0.0.Alpha7, 1.1.3.Final, 1.1.4.Final
> Environment: Windows 7 Enterprise SP1 64-bit
> Reporter: William Crowell
>
> I am using the following:
> Arquillian Core: 1.1.4.Final (as well as 1.1.3.Final)
> Arquillian Drone: 1.2.4.Final (I've tried Drone 2 as well)
> Arquillian Warp: 1.0.0.Alpha7 (as well as 1.0.0.Beta1-SNAPSHOT)
> Arquillian Transaction: 1.0.1.Final
> Arquillian Tomcat 7 Embedded Container using Tomcat 7.0.27: 1.0.0.Final-SNAPSHOT
> Spring: 3.2.4.RELEASE
> Spring Web: 3.2.2.RELEASE
> Spring Security: 3.1.4.RELEASE
> Spring WebFlow: 2.4.0.RC1
> PrimeFaces 3.4.2
> JUnit: 4.8.2
> Mojarra 2.1.17
> I am receiving this exception:
> {code}
> java.lang.IllegalStateException: org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
> at org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerObserver.finalizeManager(LifecycleManagerObserver.java:69)
> ...
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.warp.impl.server.test.LifecycleTestClassExecutor.afterRequest(LifecycleTestClassExecutor.java:78)
> ...
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.warp.impl.server.request.RequestContextHandler.handleRequestContext(RequestContextHandler.java:93)
> ...
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.warp.impl.server.execution.WarpFilter.doFilterWarp(WarpFilter.java:151)
> at org.jboss.arquillian.warp.impl.server.execution.WarpFilter.doFilterHttp(WarpFilter.java:120)
> at org.jboss.arquillian.warp.impl.server.execution.WarpFilter.doFilter(WarpFilter.java:93)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
> at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> ...
> Caused by: org.jboss.arquillian.warp.spi.exception.StoreHasAssociatedObjectsException
> at org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerStoreImpl.checkUnbound(LifecycleManagerStoreImpl.java:126)
> at org.jboss.arquillian.warp.spi.LifecycleManager.checkUnbound(LifecycleManager.java:158)
> at org.jboss.arquillian.warp.impl.server.lifecycle.LifecycleManagerObserver.finalizeManager(LifecycleManagerObserver.java:67)
> ... 74 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 4 months
[JBoss JIRA] (ARQ-1782) @UsingDataSet/@ShouldMatchDataSet always makes test succeed
by Nicklas Karlsson (JIRA)
[ https://issues.jboss.org/browse/ARQ-1782?page=com.atlassian.jira.plugin.s... ]
Nicklas Karlsson commented on ARQ-1782:
---------------------------------------
Perhaps related to ARQ-1758, downgrading to arq 1.1.3 made the seeding-file-validation error visible.
The em/transaction strangeness still remains, though.
> @UsingDataSet/@ShouldMatchDataSet always makes test succeed
> -----------------------------------------------------------
>
> Key: ARQ-1782
> URL: https://issues.jboss.org/browse/ARQ-1782
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Persistence
> Affects Versions: persistence_1.0.0.Alpha7
> Environment: WildFly 8 CR 2
> Reporter: Nicklas Karlsson
> Assignee: Bartosz Majsak
>
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <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/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>fi.affecto.marela</groupId>
> <artifactId>arq-concept</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> <packaging>jar</packaging>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> <browser>chrome</browser>
> </properties>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>org.jboss.arquillian</groupId>
> <artifactId>arquillian-bom</artifactId>
> <version>1.1.4.Final</version>
> <scope>import</scope>
> <type>pom</type>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.extension</groupId>
> <artifactId>arquillian-drone-bom</artifactId>
> <version>1.3.0.Final</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.selenium</groupId>
> <artifactId>selenium-bom</artifactId>
> <version>2.41.0</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> </dependencies>
> </dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.11</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-container</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-jpamodelgen</artifactId>
> <version>4.3.5.Final</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.graphene</groupId>
> <artifactId>graphene-webdriver</artifactId>
> <version>2.0.2.Final</version>
> <type>pom</type>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.extension</groupId>
> <artifactId>arquillian-persistence-core</artifactId>
> <version>1.0.0.Alpha7</version>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.extension</groupId>
> <artifactId>arquillian-persistence-dbunit</artifactId>
> <version>1.0.0.Alpha7</version>
> </dependency>
> </dependencies>
> <profiles>
> <profile>
> <id>arq-wildfly</id>
> <dependencies>
> <dependency>
> <groupId>org.jboss.spec</groupId>
> <artifactId>jboss-javaee-7.0</artifactId>
> <version>1.0.0.Final</version>
> <type>pom</type>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.wildfly</groupId>
> <artifactId>wildfly-arquillian-container-remote</artifactId>
> <version>8.1.0.CR2</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.protocol</groupId>
> <artifactId>arquillian-protocol-servlet</artifactId>
> <scope>test</scope>
> </dependency>
> </dependencies>
> </profile>
> </profiles>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.3.2</version>
> <configuration>
> <source>1.7</source>
> <target>1.7</target>
> </configuration>
> </plugin>
> </plugins>
> <testResources>
> <testResource>
> <directory>src/test/resources</directory>
> <filtering>true</filtering>
> </testResource>
> </testResources>
> </build>
> </project>
> {code}
> {code:java}
> package fi.affecto.marela.test;
> import javax.inject.Inject;
> import javax.persistence.EntityManager;
> import javax.persistence.PersistenceContext;
> import javax.transaction.UserTransaction;
> import org.jboss.arquillian.container.test.api.Deployment;
> import org.jboss.arquillian.junit.Arquillian;
> import org.jboss.arquillian.persistence.ShouldMatchDataSet;
> import org.jboss.arquillian.persistence.UsingDataSet;
> import org.jboss.arquillian.transaction.api.annotation.Transactional;
> import org.jboss.shrinkwrap.api.Archive;
> import org.jboss.shrinkwrap.api.ShrinkWrap;
> import org.jboss.shrinkwrap.api.asset.EmptyAsset;
> import org.jboss.shrinkwrap.api.spec.WebArchive;
> import org.junit.Assert;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> import fi.affecto.marela.jpa.Game;
> @RunWith(Arquillian.class)
> public class PersistenceExtensionTest
> {
> @Deployment
> public static Archive<?> createDeployment()
> {
> return ShrinkWrap.create(WebArchive.class, "test.war").addPackage(Game.class.getPackage())
> .addAsResource("persistence.xml", "META-INF/persistence.xml")
> .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
> }
> @PersistenceContext
> EntityManager em;
> @Inject
> UserTransaction utx;
> @Test
> public void testA() throws Exception
> {
> Assert.assertNotNull(em);
> utx.begin();
> // em.joinTransaction();
> Game g = new Game();
> g.setId(666L);
> g.setTitle("x");
> Assert.assertFalse(em.contains(g));
> g = em.merge(g);
> Assert.assertTrue(em.contains(g));
> utx.rollback();
> }
>
> @Test
> @Transactional
> public void testB() throws Exception
> {
> Assert.assertNotNull(em);
> Game g = new Game();
> g.setId(666L);
> g.setTitle("x");
> Assert.assertFalse(em.contains(g));
> g = em.merge(g);
> Assert.assertTrue(em.contains(g));
> }
> @Test
> // @UsingDataSet("games.yml")
> // @ShouldMatchDataSet("games-check.yml")
> @Transactional
> public void testC() throws Exception
> {
> Assert.assertTrue(false);
> }
> }
> {code}
> testC succeeds if the annotations are uncommented.
> Furthermore, there is something strange with the em/transactions, the persistence works even if the em doesn't join the transaction and the em complains of a detached instance if merge() is switched for persist()
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 4 months