Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A result of unit test! how to resolve it?

 
George Hong
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\>ant test
Buildfile: build.xml
init:
compile:
dist:
test:
[java] Turbine: Turbine: init() Ready to Rumble!
[java] Good Test: Create Customer
[java] 0 [main] ERROR com.bfg.customer.Customer - Error
during findCust
omer
[java] java.util.MissingResourceException: Can't find resource
for bundle j
ava.util.PropertyResourceBundle, key getAddressBook
[java] com.bfg.exceptions.CustomerActivityException
[java] at com.bfg.customer.Customer.findCustomer(Unknown
Source)
[java] at com.bfg.customer.Customer.createCustomer(Unknown
Source)
[java] at com.bfg.customer.Customer.main(Unknown Source)
[java] at java.util.ResourceBundle.getObject(
ResourceBundle.java:314)
[java] at java.util.ResourceBundle.getString(
ResourceBundle.java:274)
[java] at com.bfg.customer.Customer.findCustomer(Unknown
Source)
[java] at com.bfg.customer.Customer.createCustomer(Unknown
Source)
[java] at com.bfg.customer.Customer.main(Unknown Source)
[java] Failed Test: Create Duplicate Customer
[java] 30 [main] ERROR com.bfg.customer.Customer - Error
during findCust
omer
[java] java.util.MissingResourceException: Can't find resource
for bundle j
ava.util.PropertyResourceBundle, key getAddressBook
[java] at java.util.ResourceBundle.getObject(
ResourceBundle.java:314)
[java] at java.util.ResourceBundle.getString(
ResourceBundle.java:274)
[java] at com.bfg.customer.Customer.findCustomer(Unknown
Source)
[java] at com.bfg.customer.Customer.main(Unknown Source)
[java] Failed Test: Find Real Customer
[java] Good Test: Find Fake Customer
[java] Good Test: Delete Customer

[java] Turbine: Turbine: init() Ready to Rumble!
[java] Good Test: Find Real Product
[java] Author string is: <A HREF="/bfg/jsp/product/ByAuthor.
jsp?author=Stef
an Haustein">Stefan Haustein</A>; <A HREF="/bfg/jsp/product/
ByAuthor.jsp?author=
Michael Kroll">Michael Kroll</A>
[java] Price is 49.99
[java] Good Test: Find Fake Product

[java] Turbine: Turbine: init() Ready to Rumble!
[java] Good Test: Find Real Category
[java] Good Test: Find Fake Category
BUILD SUCCESSFUL
Total time: 10 seconds
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George,
Is the file/resource it is looking for in your classpath?
 
George Hong
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I donot think so!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic