@@ -149,18 +149,19 @@ public void afterEach(ExtensionContext context) throws Exception {
149149 current ));
150150 }
151151
152- NotWorkingInRemoteBazelBuildsRule notWorkingInRemoteBuilds = new NotWorkingInRemoteBazelBuildsRule (context );
152+ NotWorkingInRemoteBazelBuildsRule notWorkingInRemoteBuilds =
153+ new NotWorkingInRemoteBazelBuildsRule (context );
153154 boolean isNotExpectedToWork = notWorkingInRemoteBuilds .check ();
154155
155156 if (isNotExpectedToWork && !failedWithRemoteBuild ) {
156157 Optional <Class <?>> testClass = context .getTestClass ();
157158 Optional <Method > testMethod = context .getTestMethod ();
158159 throw new Exception (
159- String .format (
160- "%s.%s is not yet expected to work on remote builds using %s, but it already works!" ,
161- testClass .map (Class ::getName ).orElse ("" ),
162- testMethod .map (Method ::getName ).orElse ("" ),
163- Browser .detect ()));
160+ String .format (
161+ "%s.%s is not yet expected to work on remote builds using %s, but it already works!" ,
162+ testClass .map (Class ::getName ).orElse ("" ),
163+ testMethod .map (Method ::getName ).orElse ("" ),
164+ Browser .detect ()));
164165 }
165166 }
166167
@@ -220,7 +221,8 @@ public void handleTestExecutionException(ExtensionContext context, Throwable thr
220221 failedWithNotYetImplemented = true ;
221222 }
222223
223- NotWorkingInRemoteBazelBuildsRule notWorkingInRemoteBuilds = new NotWorkingInRemoteBazelBuildsRule (context );
224+ NotWorkingInRemoteBazelBuildsRule notWorkingInRemoteBuilds =
225+ new NotWorkingInRemoteBazelBuildsRule (context );
224226 if (notWorkingInRemoteBuilds .check ()) {
225227 failedWithRemoteBuild = true ;
226228 }
@@ -336,7 +338,6 @@ public boolean check() throws Exception {
336338 findRepeatableAnnotations (element , NotYetImplemented .class );
337339 return notImplemented (notYetImplementedList ) || notImplemented (notYetImplemented .stream ());
338340 }
339-
340341 }
341342
342343 private static class NotWorkingInRemoteBazelBuildsRule {
@@ -362,9 +363,9 @@ public boolean check() {
362363
363364 Optional <AnnotatedElement > element = context .getElement ();
364365 Optional <NotWorkingInRemoteBazelBuilds > notWorkingList =
365- findAnnotation (element , NotWorkingInRemoteBazelBuilds .class );
366+ findAnnotation (element , NotWorkingInRemoteBazelBuilds .class );
366367 List <NotWorkingInRemoteBazelBuilds > notWorking =
367- findRepeatableAnnotations (element , NotWorkingInRemoteBazelBuilds .class );
368+ findRepeatableAnnotations (element , NotWorkingInRemoteBazelBuilds .class );
368369 return notWorkingYet (notWorkingList ) || notWorkingYet (notWorking .stream ());
369370 }
370371 }
0 commit comments