Apache JDO Project - InstanceLifecycleListenerAttach

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > October 2005 > InstanceLifecycleListenerAttach





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author InstanceLifecycleListenerAttach
Michael Watzek

2005-10-31, 5:45 pm

Hi Craig,

the InstanceLifecycleListenerAttach test case throws a duplicate key
excepton for application identity when the TCK runs twice or more times.
The reason is that method
AbstractInstanceLifecycleListener.localTearDown misses a call
super.localTearDown(), e.g.

/**
* Clean up after lifecycle tests:
* Unregister the LifecycleListener.
*/
protected void localTearDown() {
super.localTearDown();
removeListener();
}

When we implemented the cleanup infrastructure, we decided to place the
default cleanup in method JDO_Test.localTearDown rather than in
JDO_Test.tearDown. Thus, test cases overriding localTearDown() must call
super.localTearDown().

Regards,
Michael
--
-------------------------------------------------------------------
Michael Watzek Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de Buelowstr. 66
Tel.: ++49/30/235 520 36 10783 Berlin - Germany
Fax.: ++49/30/217 520 12 http://www.spree.de/
-------------------------------------------------------------------

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com