testng

Test an exception with Testng

Tag(s):

package net.xngo.tutorial.java.testng;
 
import static org.testng.Assert.assertTrue;

Using hamcrest in TestNG

package net.xngo.tutorial.java.testng;
 
import static org.hamcrest.MatcherAssert.assertThat;

Unit test standard output, System.out.println

Tag(s):

package net.xngo.tutorial.java.testng;
 
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

Don't run test methods in parallel of this class

Tag(s):

//TestNG
import org.testng.annotations.Test;
 
 
/**
 * singleThreaded=false: Don't run test methods in parallel for this class.
 * @author Xuan Ngo
 *
 */
Subscribe to RSS - testng