• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A result of unit test! how to resolve it?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I donot think so!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic