• Post Reply Bookmark Topic Watch Topic
  • New Topic

error in unittest  RSS feed

 
wesley johnsen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I check the code with a unittest. In the unittest i see two errors.

Can someone help me to fix the errors?

thanks in advance

the class is:


the classTest.java
 
Campbell Ritchie
Marshal
Posts: 55781
164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using GregorianCalendar? Now Java8 is here, use one of the newer classes. What was the exact error? Where does the compareTo method come from?
 
Knute Snortum
Sheriff
Posts: 4087
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TimeTest won't compile.  You haven't declared and initialized instance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!