File tree Expand file tree Collapse file tree 2 files changed +42
-3
lines changed
main/java/com/linecorp/bot/client
test/java/com/linecorp/bot/client Expand file tree Collapse file tree 2 files changed +42
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ public class LineBlobClientBuilder {
5757 /**
5858 * API Endpoint.
5959 *
60- * <p>Default value = "https://api.line.me/".
60+ * <p>Default value = "https://api-data .line.me/".
6161 */
62- private URI apiEndPoint = LineClientConstants .DEFAULT_API_END_POINT ;
62+ private URI apiEndPoint = LineClientConstants .DEFAULT_BLOB_END_POINT ;
6363
6464 /**
6565 * API Endpoint.
@@ -74,7 +74,7 @@ public LineBlobClientBuilder apiEndPoint(String apiEndPoint) {
7474 /**
7575 * API Endpoint.
7676 *
77- * <p>Default value = "https://api.line.me/".
77+ * <p>Default value = "https://api-data .line.me/".
7878 */ // We can remove this after delete `setApiEndPoint(String apiEndPoint)`.
7979 public LineBlobClientBuilder apiEndPoint (URI apiEndPoint ) {
8080 this .apiEndPoint = requireNonNull (apiEndPoint , "apiEndPoint" );
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2020 LINE Corporation
3+ *
4+ * LINE Corporation licenses this file to you under the Apache License,
5+ * version 2.0 (the "License"); you may not use this file except in compliance
6+ * with the License. You may obtain a copy of the License at:
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+ * License for the specific language governing permissions and limitations
14+ * under the License.
15+ */
16+
17+ package com .linecorp .bot .client ;
18+
19+ import static org .assertj .core .api .Assertions .assertThat ;
20+
21+ import java .lang .reflect .Field ;
22+ import java .net .URI ;
23+
24+ import org .junit .Test ;
25+
26+ public class LineBlobClientBuilderTest {
27+ @ Test
28+ public void defaultDomainTest () throws Exception {
29+ // Do
30+ final LineBlobClientBuilder defaultBuilder = new LineBlobClientBuilder ();
31+ final Field field = defaultBuilder .getClass ().getDeclaredField ("apiEndPoint" );
32+ field .setAccessible (true );
33+ final Object apiEndPoint = field .get (defaultBuilder );
34+
35+ // Verify
36+ assertThat (apiEndPoint )
37+ .isEqualTo (URI .create ("https://api-data.line.me/" ));
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments