Skip to content

Commit b46957a

Browse files
committed
Refrect comment: check other client's endpoint as well?
#433 (review)
1 parent 265fb60 commit b46957a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed
Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
import org.junit.Test;
2525

26-
public class LineBlobClientBuilderTest {
26+
public class LineClientBuildersTest {
2727
@Test
28-
public void defaultDomainTest() throws Exception {
28+
public void testLineBlobClientBuilder() throws Exception {
2929
// Do
3030
final LineBlobClientBuilder defaultBuilder = new LineBlobClientBuilder();
3131
final Field field = defaultBuilder.getClass().getDeclaredField("apiEndPoint");
@@ -36,4 +36,30 @@ public void defaultDomainTest() throws Exception {
3636
assertThat(apiEndPoint)
3737
.isEqualTo(URI.create("https://api-data.line.me/"));
3838
}
39+
40+
@Test
41+
public void testLineMessagingClientBuilder() throws Exception {
42+
// Do
43+
final LineMessagingClientBuilder defaultBuilder = new LineMessagingClientBuilder();
44+
final Field field = defaultBuilder.getClass().getDeclaredField("apiEndPoint");
45+
field.setAccessible(true);
46+
final Object apiEndPoint = field.get(defaultBuilder);
47+
48+
// Verify
49+
assertThat(apiEndPoint)
50+
.isEqualTo(URI.create("https://api.line.me/"));
51+
}
52+
53+
@Test
54+
public void testChannelManagementClientBuilder() throws Exception {
55+
// Do
56+
final ChannelManagementClientBuilder defaultBuilder = new ChannelManagementClientBuilder();
57+
final Field field = defaultBuilder.getClass().getDeclaredField("apiEndPoint");
58+
field.setAccessible(true);
59+
final Object apiEndPoint = field.get(defaultBuilder);
60+
61+
// Verify
62+
assertThat(apiEndPoint)
63+
.isEqualTo(URI.create("https://api.line.me/"));
64+
}
3965
}

0 commit comments

Comments
 (0)