This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Testing and the fly likes addThrows : How to fail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "addThrows : How to fail" Watch "addThrows : How to fail" New topic
Author

addThrows : How to fail

vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 146

Hi I have below code, but its getting pass, i want to fail it. can someone tell where i am wrong.

Tim Cooke
Sheriff

Joined: Mar 28, 2008
Posts: 2246
    
102

This looks very similar to your other post. Are you still having this specific problem or have you moved on?


Tim Driven Development
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4541
    
    8

What is supposed to make it fail? It's difficult to tell you why it isn't failing when we don't know what is supposed to be wrong.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: addThrows : How to fail
 
It's not a secret anymore!