-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstantsTest.java
More file actions
63 lines (50 loc) · 1.51 KB
/
Copy pathConstantsTest.java
File metadata and controls
63 lines (50 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package connector;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* Unit tests for {@link _Constants}.
* Verifies that every constant holds the expected value so that accidental
* edits to the shared configuration are caught immediately.
*/
class ConstantsTest {
@Test
void defaultProtocol() {
assertEquals("http://", _Constants.DEFAULT_PROTOCOL);
}
@Test
void defaultSslProtocol() {
assertEquals("https://", _Constants.DEFAULT_SSL_PROTOCOL);
}
@Test
void defaultLoginPath() {
assertEquals("/_forms/default.aspx?wa=wsignin1.0", _Constants.DEFAULT_LOGIN_PATH);
}
@Test
void defaultListDataPath() {
assertEquals("/_vti_bin/ListData.svc/", _Constants.DEFAULT_LIST_DATA_PATH);
}
@Test
void wsdlPath() {
assertEquals("/_vti_bin/Lists.asmx?WSDL", _Constants.WSDL_PATH);
}
@Test
void soapUrl() {
assertEquals("http://schemas.microsoft.com/sharepoint/soap/", _Constants.SOAP_URL);
}
@Test
void extstsUrl() {
assertEquals("https://login.microsoftonline.com/extSTS.srf", _Constants.EXTSTS_SRF_URL);
}
@Test
void utf8Charset() {
assertEquals("UTF-8", _Constants.UTF_8_CHARSET);
}
@Test
void defaultUserAgentWindowsIsNotBlank() {
assertFalse(_Constants.DEFAULT_USER_AGENT_WINDOWS.isBlank());
}
@Test
void defaultUserAgentMacIsNotBlank() {
assertFalse(_Constants.DEFAULT_USER_AGENT_MAC.isBlank());
}
}