Skip to content

Commit

Permalink
chore: Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 committed Jan 9, 2024
1 parent 0b6d2bc commit c826fe6
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
import com.google.showcase.v1beta1.EchoClient;
import com.google.showcase.v1beta1.EchoSettings;
import com.google.showcase.v1beta1.it.util.TestClientInitializer;
import org.junit.Test;

import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.junit.Test;

/** This IT tests the different user configurations allowed and their effects on
* endpoint and universe domain resolution.
/**
* This IT tests the different user configurations allowed and their effects on endpoint and
* universe domain resolution.
*
* <p>This test will be enhanced in the future when the settings are able to return
* the resolved endpoint and universe domain values.
* <p>This test will be enhanced in the future when the settings are able to return the resolved
* endpoint and universe domain values.
*/
public class ITEndpointContext {
public static final String SHOWCASE_DEFAULT_ENDPOINT = "localhost:7469";
Expand All @@ -28,7 +28,8 @@ public void endpointResolution_default() throws InterruptedException, IOExceptio
} finally {
if (echoClient != null) {
echoClient.close();
echoClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
echoClient.awaitTermination(
TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
}
}
}
Expand All @@ -45,7 +46,8 @@ public void endpointResolution_userConfiguration() throws InterruptedException,
} finally {
if (echoClient != null) {
echoClient.close();
echoClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
echoClient.awaitTermination(
TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
}
}
}
Expand All @@ -61,7 +63,8 @@ public void endpointResolution_defaultBuilder() {
@Test
public void endpointResolution_userConfigurationBuilder() {
String customEndpoint = "test.com:123";
EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder().setEndpoint(customEndpoint);
EchoSettings.Builder echoSettingsBuilder =
EchoSettings.newBuilder().setEndpoint(customEndpoint);
Truth.assertThat(echoSettingsBuilder.getEndpoint()).isEqualTo(customEndpoint);
}
}

0 comments on commit c826fe6

Please sign in to comment.