atom feed4 messages in net.java.dev.appfuse.issues[appfuse-issues] [JIRA] Updated: (APF...
FromSent OnAttachments
Marcello Teodori (JIRA)Jul 8, 2008 9:04 am 
Matt Raible (JIRA)Jul 8, 2008 9:16 am 
Matt Raible (JIRA)Nov 13, 2009 4:39 pm 
Matt Raible (JIRA)Sep 29, 2010 9:19 pm 
Subject:[appfuse-issues] [JIRA] Updated: (APF-1082) Objects are committed to database in web module tests generated using AppFuse Maven Plugin
From:Matt Raible (JIRA) (iss@appfuse.dev.java.net)
Date:Jul 8, 2008 9:16:34 am
List:net.java.dev.appfuse.issues

[
http://issues.appfuse.org/browse/APF-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Raible updated APF-1082:

-----------------------------

Fix Version/s: 2.1

Objects are committed to database in web module tests generated using AppFuse
Maven Plugin

------------------------------------------------------------------------------------------

Key: APF-1082 URL: http://issues.appfuse.org/browse/APF-1082 Project: AppFuse Issue Type: Bug Components: Tools - AMP Affects Versions: 2.0.2 Environment: Mac OS X 10.5.3, Java 6, Maven 2.0.9,
appfuse-modular-struts Reporter: Marcello Teodori Assignee: Matt Raible Fix For: 2.1

Attachments: patch.diff

The sample object that is used for example in the *ActionTest classes generated
from entities when using Struts2 is created and saved to database within a
onSetupBeforeTransaction method, so it gets committed to database. Its content
should be moved to the method onSetupInTransaction, as to rollback the insert
along with the transaction opened to execute the test method.