Skip to content

Commit

Permalink
fix: change the test endpoint and readme contents format
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Mar 22, 2024
1 parent 4d84b13 commit 979dfaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void onCreate() {
}
}
```
#### 3.1 Initialize the SDK with global attributes and custom configuration
#### 3.2 Initialize the SDK with global attributes and custom configuration
```java
import software.aws.solution.clickstream.ClickstreamAnalytics;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void init() {
*/
public static AnalyticsClient getAnalyticsClient() {
ClickstreamConfiguration configuration = ClickstreamConfiguration.getDefaultConfiguration()
.withEndpoint("http://click-serve-HCJIDWGD3S9F-1166279006.ap-southeast-1.elb.amazonaws.com/collect");
.withEndpoint("http://example.com/collect");
Context context = ApplicationProvider.getApplicationContext();
ClickstreamManager clickstreamManager = new ClickstreamManager(context, configuration);
return clickstreamManager.getAnalyticsClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void init() throws Exception {
ReflectUtil.makeAmplifyNotConfigured();
clickstreamPluginConfiguration = ClickstreamConfiguration.getDefaultConfiguration();
clickstreamPluginConfiguration.withEndpoint(
"http://click-serve-HCJIDWGD3S9F-1166279006.ap-southeast-1.elb.amazonaws.com/collect")
"http://example.com/collect")
.withSendEventsInterval(15000);
}

Expand Down Expand Up @@ -99,7 +99,7 @@ public void testInitClientParam() {
Assert.assertNotNull(clickstreamContext);

Assert.assertEquals(clickstreamContext.getClickstreamConfiguration().getEndpoint(),
"http://click-serve-HCJIDWGD3S9F-1166279006.ap-southeast-1.elb.amazonaws.com/collect");
"http://example.com/collect");
Assert.assertEquals(clickstreamContext.getClickstreamConfiguration().getSendEventsInterval(), 15000);
Assert.assertTrue(clickstreamContext.getClickstreamConfiguration().isCompressEvents());
Assert.assertTrue(clickstreamContext.getClickstreamConfiguration().isTrackScreenViewEvents());
Expand Down

0 comments on commit 979dfaf

Please sign in to comment.