--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-dev/-/bvpaH-wBPQkJ.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.
--Cédric
To unsubscribe from this group, send email to testng-dev+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+...@googlegroups.com.
Yup, that's exactly what I was going to suggest.
--Cédric
On Thu, Jul 5, 2012 at 9:14 AM, Davide Del Vento <davide.d...@gmail.com> wrote:
How about this?
@Test
public void skyShouldNotBeGreen() {
try {
WindowShutter.open();
} catch (BlockedException b) {
throw SkipException("Can't tell, the shutter was blocked");
}
assertNotEquals(Sky.color(), GREEN);
}On Thu, Jul 5, 2012 at 9:49 AM, Guillaume Juillot <guillaum...@gmail.com> wrote:
@Test
public void skyShouldNotBeGreen() {
WindowShutter.open(); // may throw a BlockedException
assertNotEquals(Sky.color(), GREEN);
}
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+unsubscribe@googlegroups.com.
Test(groups = { "manual" }, timeOut = 5000, skipExceptions = { org.testng.internal.thread.ThreadTimeoutException.class })