• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TestNG and Guice?

 
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cedric and Hani,

I have always been a fan of TestNG ever since I started using it because it has been far superior to using System.out.println's. It also makes testing so convenient that it is almost fun.

I am curious now about how TestNG might be used with Guice, as referenced in the Next Generation Java Testing: what's new? thread.

In what types of tests have you used Guice with TestNG? Or, are you testing an application's use of Guice with TestNG?

Daniel
 
author
Posts: 22
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Daniel,

In covering Guice, we show an introduction to it and how it works, then show how you can use it to wire up your test instances. We also show an integration approach for large test codebases, where you can section off groups of tests with their dependencies.

Testing an application's use of Guice is pretty trivial (thanks to Guice's lovely testable design!), more interesting was using it to instantiate your test objects themselves, so you dont have to worry about sharing manager objects for example across tests, and can decide each test's dependencies without having to manually pull them in from a central repository.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic