jbossas/jboss-as — pull request #3592 by bstansberry (2012-12-06 15:25:02+00:00)
Title: AS7-1103 Prevent transition in ControlledProcessState.setRunning() if current state isn't  STARTING

Flaws in unit tests were resulting in 2 separate threads (test thread and Controller Boot Thread) calling setRunning() during creation of test ModelControllers. This was leading to the intermittent failures in AS7-1103.

The tests have been cleaned up so only Controller Boot Thread calls setRunning() and ControlledProcessState.setRunning() has been fixed so even if this crept back in, an invalid state transition would not occur.

I also added a test case method for AS7-5929 to complement the integration test Bartosz created.