[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2798) Integration Tests returns different component instances when accessing it in different ways
Norman Richards (JIRA)
jira-events at lists.jboss.org
Tue May 6 15:51:30 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2798?page=comments#action_12411948 ]
Norman Richards commented on JBSEAM-2798:
-----------------------------------------
I had trouble using the archive you send, but I copied the src files and pages.xml into a new seam-gen app and had no problem running your test:
test:
[testng] [Parser] Running:
[testng] /Users/orb/proj/workspace/testapp/test-build/ExampleTest.xml
[testng]
[testng] WARN [org.jboss.seam.Component] Component class should be serializable: org.jboss.seam.security.management.roleAction
[testng] WARN [org.jboss.seam.security.permission.PersistentPermissionResolver] no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.permission.jpaPermissionStore' if persistent permissions are required.
[testng] INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
[testng] INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
[testng] INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
[testng] INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
[testng] INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
[testng] INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
[testng] CONSTRUCTOR
[testng] CONSTRUCTOR
[testng] INFO [example.action.MyEntityHome] template when called init <VALUE AFTER INIT>
[testng] INFO [MyEntityHomeTest] template with 'getInstance' <VALUE AFTER INIT>
[testng] INFO [MyEntityHomeTest] template with 'getValue' <VALUE AFTER INIT>
[testng] INFO [MyEntityHomeTest] template with 'getValue' and direct access on property <VALUE AFTER INIT>
[testng] INFO [MyEntityHomeTest] template with 'invokeMethod' and direct access on property <VALUE AFTER INIT>
[testng] Hibernate: insert into MyEntity (ID, VALUE, VERSION) values (null, ?, ?)
[testng] Hibernate: call identity()
[testng] INFO [example.action.MyEntityHome] template when called persist <VALUE AFTER INIT>
[testng] PASSED: testRegisterUser
[testng]
[testng] ===============================================
[testng] MyEntityHomeTest
[testng] Tests run: 1, Failures: 0, Skips: 0
[testng] ===============================================
[testng]
[testng]
[testng] ===============================================
[testng] EXAMPLE
[testng] Total tests run: 1, Failures: 0, Skips: 0
[testng] ===============================================
[testng]
> Integration Tests returns different component instances when accessing it in different ways
> -------------------------------------------------------------------------------------------
>
> Key: JBSEAM-2798
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2798
> Project: Seam
> Issue Type: Bug
> Components: Test Harness
> Affects Versions: 2.1.0.A1
> Environment: Seam 2.1.0.A1 / WinXP / JDK 1.5.0_15
> Reporter: Lars Huber
> Assigned To: Norman Richards
> Fix For: 2.1.0.GA
>
> Attachments: testExample.zip
>
>
> When getting a component as reference the instance can be different than invoking a method over an EL expression.
> Example see JBoss Forum Reference below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list