I do not know that my question was clear, but I am using testNG and I have it:
@Test public zero passenger passengerServiceTest () {...} @AfterTest Public Zero Deleted Pacegar () {...}
I deletedCreatedPassenger () PassengerServiceTest, also, wants to execute the law, I want to fail in the case of a delayed credit passenger, passenger syllabus test also fails, other terms The issues, I want to be the same test, so if no one fails, then the test fails. So I tried with Annotation @Efteret, @Efter Math, @EfterClass, and got two tests in the form of all the "different" tests. Do you know how to do this? Regards
You do not need annotation to get it, because it is actually a block The purpose is:
@Test Public Zero Traveler Accorator () {try {// test code} Finally {deleteCreatedPassenger (); }} Public Zero Delegated () {...}
Your service test fails if deleted exceptions are dropped.
Comments are useful in some scenarios, you should not use them on the core language's constructions!
Comments
Post a Comment