Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUnit Testing of Rest Web Service without starting tomcat explicitly

Sachin Ghorpade
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on designing Junit framework which requires

# Run Junit test cases even without starting tomcat (use something like embedded tomcat)

I'm making use of Jersey test framework.

Starting tomcat in background in @Before method of suite

server = GrizzlyHttpServerFactory.createHttpServer(BASE_URI, rc);

And stop tomcat when testing is completed.

This work successfully. I don't have to start tomcat explicitly. Embedded tomcat is started when Junit suite starts and stops after completing test suite.

I'm thinking of rest assured test framework instead of Jersey test framework.

But I did not find information of background tomcat with rest assured framework.

Any help would be great!

Thanks, Sachin

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic