Skip to content

Instantly share code, notes, and snippets.

View cmicat's full-sized avatar

cmicat

  • DiDi(China) Technology Co.,Ltd
View GitHub Profile
@cmicat
cmicat / TestFoo.java
Created August 15, 2017 09:25 — forked from msakamoto-sf/TestFoo.java
Nested Test Cases with TestNG (nearly equals JUnit's "Enclosed" TestRunner)
// "(root)/t1/TestFoo.java"
package t1;
import static org.testng.Assert.*;
import org.testng.annotations.*;
public class TestFoo {
static void log(Class k, String mes) {
System.out.println(Thread.currentThread() + " - " + k.toString() + " - " + mes);
}