I have a test class using TestNG. I would like to get access to some
of my services. For example, I have a datasource that I'd like to use
to verify tests and I'd like to be able to use the logging service.
I can't seem to find a way to inject services into the Test class. I
have tried doing it the way I do in a page:
@Inject
Logger _logger;
But it doesn't get injected. I have also tried setting up my Test
class with a constructor:
public TestPages(Logger logger)
But this conflicts with what TestNG needs to start things up.
Is there a way do this that I'm overlooking?
(by the way I'm very impressed with PageTester!)
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]