File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Testing in JUnit4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Testing in JUnit4" Watch "Testing in JUnit4" New topic
Author

Testing in JUnit4

Robert Raps
Ranch Hand

Joined: Mar 13, 2013
Posts: 30
Good evening. I am expecting for your help. I have troubles with testing methods. This is one.


It is test:

So, result:
* LuxoftUtilsTest testGetMonthName()
Июнь
June
December
Январь
* LuxoftUtilsTest - GetMonthName_checkExpectedException()
Unknown Language
java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError> <17 internal calls>


Some horror characters is russian letters))
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
> java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError> <17 internal calls>

The above line suggests that an AssertionError occurred whereas the test scaffolding was exception an IllegalArgumentException.

Some Russian characters for fun: Маленький сад, очень рад!


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing in JUnit4