Kabir Khan created AS7-4451:
-------------------------------
Summary: ServerSetupTasks don't get cleaned up if there was a problem
Key: AS7-4451
URL:
https://issues.jboss.org/browse/AS7-4451
Project: Application Server 7
Issue Type: Bug
Components: Test Suite
Affects Versions: 7.1.1.Final
Reporter: Kabir Khan
Assignee: Stuart Douglas
Fix For: 7.1.2.Final-redhat1
Running the testsuite with the Turkish Locale as described in
https://issues.jboss.org/browse/AS7-4450 fails during the server setup tasks. The setup
task seems to hang around causing problems in later tests using ServerSetupTasks. If
LdapLoginModuleTestCase is @Ignored the subsequent tests pass.
{code}
public synchronized void handleBeforeDeployment(@Observes BeforeDeploy event,
Container container) throws Exception {
--- SNIP ---
final Class<? extends ServerSetupTask>[] classes = setup.value();
if (current.isEmpty()) {
for (Class<? extends ServerSetupTask> clazz : classes) {
Constructor<? extends ServerSetupTask> ctor =
clazz.getDeclaredConstructor();
ctor.setAccessible(true);
current.add(ctor.newInstance());
}
} else {
//this should never happen
for (int i = 0; i < current.size(); ++i) {
if (classes[i] != current.get(i).getClass()) {
// <<<<<<<< This error gets thrown
<<<<<<<<<<<
throw new RuntimeException("Mismatched ServerSetupTask current is
" + current + " but " + currentClass + " is expecting " +
Arrays.asList(classes));
}
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira