Adding some logging to the tests would help.

In Windows, you can use Task Manager to see what your processes are doing.
In Linux, top will tell you.

Ron

On 09/10/2012 3:59 PM, Stephane-3 wrote:
Hello,

How can I find out if it is CPU or OI bound ?

It hangs before the very first test.

The test is an integration test, connecting to a MySql database schema.

For now my test is very simple:

@RooIntegrationTest(entity = Address.class)
public class AddressIntegrationTest {

        @Before
        public void beforeAnyTest() throws Exception {
        }
        
        @After
        public void afterAnyTest() throws Exception {
        }

        @Test
        @Transactional
        public void testSaveAndRetrieve() {
                AddressDataOnDemand dod = new AddressDataOnDemand();
                Address address = dod.getRandomAddress();
                assertNotNull(address.getId());
                Integer version = address.getVersion();
                addressRepository.saveAndFlush(address);
                assertTrue(version != address.getVersion());            
        }

}

Doing a Ctrl-C gives me back the prompt but I don't see any console output
like a dump.

This test is within a Spring Roo application.

I also created a pure Spring application last year, not a Roo one, with lots
of integration tests against a Dao layer on the very same MySql database
schema. And this Maven project builds fine. But not the Roo one.



--
View this message in context: 
http://maven.40175.n5.nabble.com/What-diagnostic-action-to-take-when-Maven-hangs-tp5725345p5725358.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to