blob: 38ce8613daaf8528c6dcf995d87956feeaf5ae79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.onap.vid.api;
import org.springframework.http.ResponseEntity;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
public class VidConfigurationApiTest extends BaseApiTest {
@BeforeClass
public void login() {
super.login();
}
@Test
public void whenGetUserTimezoneProperty_resultIsUTC() {
String url = uri.toASCIIString() + "/get_property/user.timezone/abc";
ResponseEntity<String> response = restTemplate.getForEntity(url, String.class);
assertThat(response.getBody(), equalTo("UTC"));
}
}
|