[
https://issues.jboss.org/browse/ARQGRA-445?page=com.atlassian.jira.plugin...
]
Juraj Húska commented on ARQGRA-445:
------------------------------------
I can reproduce it with different JDK & Maven:
{code}
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /opt/apache-maven-3.2.1
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_51/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.14.4-200.fc20.x86_64", arch:
"amd64", family: "unix"
{code}
Wrong classes are injected to PageObject injection points in abstract
test basis
--------------------------------------------------------------------------------
Key: ARQGRA-445
URL:
https://issues.jboss.org/browse/ARQGRA-445
Project: Arquillian Graphene
Issue Type: Bug
Affects Versions: 2.0.3.Final
Reporter: Lukáš Fryč
Fix For: 2.0.3.Final
These tests fails because wrong instances are injected into abstract test basis:
{code}
Results :
Tests in error:
testPageObjectWithGenericTypeIsInitialized2(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects2):
org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04
cannot be cast to org.jboss.arquillian.graphene.ftest.enricher.page.TestPage2
testPageObjectWithGenericTypeIsInitialized2(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects1):
org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04
cannot be cast to org.jboss.arquillian.graphene.ftest.enricher.page.TestPage2
testInitializingPageObjectsDeclaredAsInnerClassesGeneric(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects3):
org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04
cannot be cast to
org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects3$InnerTestPage
testInitializingPageObjectsDeclaredAsInnerClassesGeneric(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects4):
org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04
cannot be cast to
org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects4$InnerTestPage
{code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)