File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 6060import org .junit .AfterClass ;
6161import org .junit .Before ;
6262import org .junit .BeforeClass ;
63+ import org .junit .Rule ;
6364import org .junit .Test ;
65+ import org .junit .rules .TestRule ;
66+ import org .junit .rules .TestWatcher ;
67+ import org .junit .runner .Description ;
6468import org .junit .runner .RunWith ;
6569import org .junit .runners .Parameterized ;
6670import org .junit .runners .Parameterized .Parameter ;
@@ -75,6 +79,22 @@ public Long apply(StructReader input) {
7579 }
7680 }
7781
82+ @ Rule
83+ public TestRule watcher =
84+ new TestWatcher () {
85+ protected void starting (Description description ) {
86+ System .out .println ("Starting test: " + description .getMethodName ());
87+ }
88+
89+ protected void succeeded (Description description ) {
90+ System .out .println ("Succeeded test: " + description .getMethodName ());
91+ }
92+
93+ protected void failed (Throwable e , Description description ) {
94+ System .out .println ("Failed test: " + description .getMethodName ());
95+ }
96+ };
97+
7898 private static final ToLongTransformer TO_LONG = new ToLongTransformer ();
7999
80100 @ Parameter (0 )
You can’t perform that action at this time.
0 commit comments