Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support @Listeners in annotation transformer #900

Merged
merged 2 commits into from Nov 30, 2015

Conversation

juherr
Copy link
Member

@juherr juherr commented Nov 26, 2015

No description provided.

tng.setTestClasses(new Class[]{AnnotationTransformerClassSampleTest.class});

tng.run();
Assert.assertFalse(MySuiteListener.triggered);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could make the test stronger by actually having the transformer set the listeners to another class and assert that this class was called instead of just testing the original listener wasn't called?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, why not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

cbeust added a commit that referenced this pull request Nov 30, 2015
@cbeust cbeust merged commit a332245 into testng-team:master Nov 30, 2015
@juherr juherr deleted the listeners-transformer branch November 30, 2015 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants