44import com .google .showcase .v1beta1 .EchoClient ;
55import com .google .showcase .v1beta1 .EchoSettings ;
66import com .google .showcase .v1beta1 .it .util .TestClientInitializer ;
7- import org .junit .Test ;
8-
97import java .io .IOException ;
108import java .util .concurrent .TimeUnit ;
9+ import org .junit .Test ;
1110
12- /** This IT tests the different user configurations allowed and their effects on
13- * endpoint and universe domain resolution.
11+ /**
12+ * This IT tests the different user configurations allowed and their effects on endpoint and
13+ * universe domain resolution.
1414 *
15- * <p>This test will be enhanced in the future when the settings are able to return
16- * the resolved endpoint and universe domain values.
15+ * <p>This test will be enhanced in the future when the settings are able to return the resolved
16+ * endpoint and universe domain values.
1717 */
1818public class ITEndpointContext {
1919 public static final String SHOWCASE_DEFAULT_ENDPOINT = "localhost:7469" ;
@@ -28,7 +28,8 @@ public void endpointResolution_default() throws InterruptedException, IOExceptio
2828 } finally {
2929 if (echoClient != null ) {
3030 echoClient .close ();
31- echoClient .awaitTermination (TestClientInitializer .AWAIT_TERMINATION_SECONDS , TimeUnit .SECONDS );
31+ echoClient .awaitTermination (
32+ TestClientInitializer .AWAIT_TERMINATION_SECONDS , TimeUnit .SECONDS );
3233 }
3334 }
3435 }
@@ -45,7 +46,8 @@ public void endpointResolution_userConfiguration() throws InterruptedException,
4546 } finally {
4647 if (echoClient != null ) {
4748 echoClient .close ();
48- echoClient .awaitTermination (TestClientInitializer .AWAIT_TERMINATION_SECONDS , TimeUnit .SECONDS );
49+ echoClient .awaitTermination (
50+ TestClientInitializer .AWAIT_TERMINATION_SECONDS , TimeUnit .SECONDS );
4951 }
5052 }
5153 }
@@ -61,7 +63,8 @@ public void endpointResolution_defaultBuilder() {
6163 @ Test
6264 public void endpointResolution_userConfigurationBuilder () {
6365 String customEndpoint = "test.com:123" ;
64- EchoSettings .Builder echoSettingsBuilder = EchoSettings .newBuilder ().setEndpoint (customEndpoint );
66+ EchoSettings .Builder echoSettingsBuilder =
67+ EchoSettings .newBuilder ().setEndpoint (customEndpoint );
6568 Truth .assertThat (echoSettingsBuilder .getEndpoint ()).isEqualTo (customEndpoint );
6669 }
6770}
0 commit comments