aspose file tools*
The moose likes JSP and the fly likes A result of unit test! how to resolve it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "A result of unit test! how to resolve it?" Watch "A result of unit test! how to resolve it?" New topic
Author

A result of unit test! how to resolve it?

George Hong
Greenhorn

Joined: Mar 10, 2004
Posts: 6
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

Joined: May 26, 2003
Posts: 30948
    
158

George,
Is the file/resource it is looking for in your classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
George Hong
Greenhorn

Joined: Mar 10, 2004
Posts: 6
Sorry, I donot think so!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A result of unit test! how to resolve it?