This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpUnit Printing problem

 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above testCase in HtmlUnit compiles fines and gives Runs:1/1 but why it does not print the titleText to the console even if i have added System.out.println().
 
sarada bokka
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way is to put a break point and debug what the value is coming up there.

It might be of two reasons

1)title value must be null
2)check in eclipse console and server console as well.
 
sarada bokka
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops one more catch

The method name must be testHomepage or annotation @Test
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic