@@ -85,19 +85,20 @@ public Long apply(StructReader input) {
8585 public boolean failOnInvalidatedSession ;
8686
8787 @ Rule
88- public TestRule watcher = new TestWatcher () {
89- protected void starting (Description description ) {
90- System .out .println ("Starting test: " + description .getMethodName ());
91- }
88+ public TestRule watcher =
89+ new TestWatcher () {
90+ protected void starting (Description description ) {
91+ System .out .println ("Starting test: " + description .getMethodName ());
92+ }
9293
93- protected void succeeded (Description description ) {
94- System .out .println ("Succeeded test: " + description .getMethodName ());
95- }
94+ protected void succeeded (Description description ) {
95+ System .out .println ("Succeeded test: " + description .getMethodName ());
96+ }
9697
97- protected void failed (Throwable e , Description description ) {
98- System .out .println ("Failed test: " + description .getMethodName ());
99- }
100- };
98+ protected void failed (Throwable e , Description description ) {
99+ System .out .println ("Failed test: " + description .getMethodName ());
100+ }
101+ };
101102
102103 @ Parameters (name = "fail on invalidated session = {0}" )
103104 public static Collection <Object []> data () {
@@ -230,8 +231,10 @@ public void setUp() throws InterruptedException {
230231 != failOnInvalidatedSession ) {
231232 System .out .println ("Recreating spanner instance" );
232233 if (spanner != null ) {
233- System .out .printf ("Closing the spanner instance %s %s" ,
234- spanner .getOptions ().getSessionPoolOptions ().isFailIfSessionNotFound (), failOnInvalidatedSession );
234+ System .out .printf (
235+ "Closing the spanner instance %s %s" ,
236+ spanner .getOptions ().getSessionPoolOptions ().isFailIfSessionNotFound (),
237+ failOnInvalidatedSession );
235238 spanner .close ();
236239 }
237240 SessionPoolOptions .Builder builder = SessionPoolOptions .newBuilder ().setFailOnSessionLeak ();
0 commit comments