File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
line-bot-api-client/src/test/java/com/linecorp/bot/client Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 2323
2424import 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}
You can’t perform that action at this time.
0 commit comments