|
9 | 9 | import org.junit.Test; |
10 | 10 |
|
11 | 11 | import java.io.IOException; |
12 | | -import java.text.ParseException; |
13 | | -import java.text.SimpleDateFormat; |
14 | | -import java.util.Locale; |
15 | 12 |
|
16 | 13 | import static org.assertj.core.api.Assertions.assertThat; |
17 | 14 | import static org.assertj.core.api.Assertions.assertThatExceptionOfType; |
|
22 | 19 | public class UserAboutEndpointTest extends ProxerTest { |
23 | 20 |
|
24 | 21 | @Test |
25 | | - public void testDefault() throws ProxerException, IOException, ParseException { |
| 22 | + public void testDefault() throws ProxerException, IOException { |
26 | 23 | server.enqueue(new MockResponse().setBody(fromResource("user_about.json"))); |
27 | 24 |
|
28 | 25 | final UserAbout result = api.user() |
@@ -50,10 +47,9 @@ public void testUserIdAndUsernameNull() { |
50 | 47 | .isThrownBy(() -> api.user().info(null, null)); |
51 | 48 | } |
52 | 49 |
|
53 | | - private UserAbout buildTestAbout() throws ParseException { |
| 50 | + private UserAbout buildTestAbout() { |
54 | 51 | return new UserAbout("", "Developer", "Anime", "A City", "Some Country", |
55 | 52 | "<p>Hello there", "", "", "", "", "skypeTest", |
56 | | - "", new SimpleDateFormat("yyyy-MM-dd", Locale.GERMANY).parse("0000-06-02"), |
57 | | - Gender.MALE, RelationshipStatus.UNKNOWN); |
| 53 | + "", "0000-06-02", Gender.MALE, RelationshipStatus.UNKNOWN); |
58 | 54 | } |
59 | 55 | } |
0 commit comments