• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Junits getting failed during maven build?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
need a small information on Junits when testing with Maven and eclipse. When I am running test cases in eclipse getting passed. But the same test cases when I run through maven getting failed. I am using Spring with Junit. After testInsertClassUnit executed successfully.While executing flushHibernateSession() of testInsertMap() method it is hanging.

Below is the code:

 
sidhartha pani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below are the logs:
2017-02-07 05:32:10,988 [main] INFO  org.springframework.test.context.transaction.TransactionContext  - Began transaction (1) for test context [DefaultTestContext@428a9fad testClass = BefClassUnitImplTest, testInstance = com.ikea.rix.common.corporateBaseData.bef.impl.BefClassUnitImplTest@1af938fc, testMethod = testInsertClassUnit@BefClassUnitImplTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@3d2a8cf8 testClass = BefClassUnitImplTest, locations = '{classpath:com/ikea/rix/common/test/RixJavaCommonIntegrationUnitTestCaseContext.xml, classpath:/com/ikea/rix/test/BaseIntegrationUnitTestCaseContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]; transaction manager [org.springframework.jdbc.datasource.DataSourceTransactionManager@3d20e870]; rollback [true] (TransactionContext.java:101)
2017-02-07 05:32:11,034 [main] INFO  org.springframework.test.jdbc.JdbcTestUtils  - Deleted 0 rows from table C_CBD_CLASS_UNIT_T (JdbcTestUtils.java:100)
2017-02-07 05:32:11,206 [main] INFO  org.springframework.test.context.transaction.TransactionContext  - Rolled back transaction for test context [DefaultTestContext@428a9fad testClass = BefClassUnitImplTest, testInstance = com.ikea.rix.common.corporateBaseData.bef.impl.BefClassUnitImplTest@1af938fc, testMethod = testInsertClassUnit@BefClassUnitImplTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@3d2a8cf8 testClass = BefClassUnitImplTest, locations = '{classpath:com/ikea/rix/common/test/RixJavaCommonIntegrationUnitTestCaseContext.xml, classpath:/com/ikea/rix/test/BaseIntegrationUnitTestCaseContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]. (TransactionContext.java:136)
2017-02-07 05:32:11,253 [main] INFO  org.springframework.test.context.transaction.TransactionContext  - Began transaction (1) for test context [DefaultTestContext@428a9fad testClass = BefClassUnitImplTest, testInstance = com.ikea.rix.common.corporateBaseData.bef.impl.BefClassUnitImplTest@71db7651, testMethod = testInsertMap@BefClassUnitImplTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@3d2a8cf8 testClass = BefClassUnitImplTest, locations = '{classpath:com/ikea/rix/common/test/RixJavaCommonIntegrationUnitTestCaseContext.xml, classpath:/com/ikea/rix/test/BaseIntegrationUnitTestCaseContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]; transaction manager [org.springframework.jdbc.datasource.DataSourceTransactionManager@3d20e870]; rollback [true] (TransactionContext.java:101)
2017-02-07 05:32:11,253 [main] INFO  org.springframework.test.jdbc.JdbcTestUtils  - Deleted 1 rows from table C_CBD_CLASS_UNIT_T (JdbcTestUtils.java:100)

Note : here it is hanging
 
reply
    Bookmark Topic Watch Topic
  • New Topic