Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Ant and JUnit (Build Failed)

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Please help me to find a possible solution to the error when I build.

Here is the log:
------------------------------------

Timestamp:
[echo] Date/Time of Build: 18-Sep-2006 09:50 AM

test:
[junit] Running com.datalex.has.travelservices.sabre.SabreUtilsTest
[junit] Successfully passed all assertions...
[junit] Time = Sat May 13 09:50:15 CST 2006
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.215 sec
[junit] Test com.datalex.has.travelservices.sabre.SabreUtilsTest FAILED
[junit] Running com.datalex.has.travelservices.sabre.handlers.SabreAirPricin
gTest
[junit] testValidateSoldSegments
[junit] testExceptionOnValidateSoldSegments
[junit] testExceptionOnValidateSoldSegments
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 0.416 sec
[junit] Test com.datalex.has.travelservices.sabre.handlers.SabreAirPricingTe
st FAILED
[junit] Running com.datalex.has.travelservices.sabre.handlers.SabreBookingTe
st
[junit] Tests run: 9, Failures: 0, Errors: 9, Time elapsed: 0.293 sec
[junit] Test com.datalex.has.travelservices.sabre.handlers.SabreBookingTest
FAILED
[junit] Running com.datalex.has.travelservices.sabre.handlers.SabreScreenTes
t
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.185 sec
[junit] Test com.datalex.has.travelservices.sabre.handlers.SabreScreenTest F
AILED

BUILD FAILED
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa
lan.processor.TransformerFactoryImpl not found

Total time: 3 minutes 59 seconds
--------------------------------------------

It seems that ant probably looking for a class file name TransformerFactoryImpl.class in the xalan.jar file. I already check this file, and I found the TransformerFactoryImpl.class inside that jar. I have no further idea on to what this class file will do in my junit test and jcoverage.

Anthony
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Anthony,

The error message looks like to be coming up while
making the JUnit report.

Do you have the target to make report for the test?

Which version of ANT are you using?
 
reply
    Bookmark Topic Watch Topic
  • New Topic