Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 833da77

Browse files
committed
update UT
1 parent 734381a commit 833da77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

onedrivesdk/src/androidTest/java/com/onedrive/sdk/http/BaseRequestTests.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class BaseRequestTests extends AndroidTestCase{
2222
private IOneDriveClient mockClient;
2323
private BaseRequest mRequest;
2424

25-
private final String baseUrl = "https://localhost:8080/";
25+
private final String baseUrl = "https://localhost:8080";
2626
private final String[] testingSegments = { "Hello World", "你好世界", "Καλημέρα κόσμε", "안녕하세요", "コンニチハ", "แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช" };
2727

2828
@Override
@@ -31,20 +31,18 @@ public void setUp() {
3131
StringBuilder sb = new StringBuilder(baseUrl);
3232

3333
for (String segment : testingSegments) {
34-
sb.append(segment);
3534
sb.append("/");
35+
sb.append(segment);
3636
}
3737

38-
sb.deleteCharAt(sb.length()-1);
39-
4038
mRequest = new BaseRequest(sb.toString(), mockClient, /*options:*/ null, null) {
4139
@Override
4240
public IOneDriveClient getClient() {
4341
return mockClient;
4442
}
4543
};
4644
}
47-
45+
4846
public void testUrlEncoded() throws Exception {
4947
URL requestUrl = mRequest.getRequestUrl();
5048
final Uri.Builder expectBuilder = Uri.parse(baseUrl).buildUpon();

0 commit comments

Comments
 (0)