|
2 | 2 |
|
3 | 3 | import static org.junit.Assert.assertTrue; |
4 | 4 |
|
5 | | -import java.io.IOException ; |
| 5 | +import java.io.IOException; |
6 | 6 | import java.util.Map; |
7 | 7 |
|
8 | | -import com.fasterxml.jackson.core.JsonParseException ; |
| 8 | +import com.fasterxml.jackson.core.JsonParseException; |
9 | 9 |
|
10 | 10 | import org.junit.Test; |
11 | 11 |
|
@@ -34,32 +34,48 @@ public void fromStringTest() { |
34 | 34 | assertTrue(true); |
35 | 35 | } |
36 | 36 | } |
37 | | - |
| 37 | + |
38 | 38 | @Test |
39 | | - public void trailingContent_1() throws JsonParseException, IOException { trailingContent("{}") ; } |
| 39 | + public void trailingContent_1() throws JsonParseException, IOException { |
| 40 | + trailingContent("{}"); |
| 41 | + } |
40 | 42 |
|
41 | 43 | @Test |
42 | | - public void trailingContent_2() throws JsonParseException, IOException { trailingContent("{} \t \r \n \r\n ") ; } |
| 44 | + public void trailingContent_2() throws JsonParseException, IOException { |
| 45 | + trailingContent("{} \t \r \n \r\n "); |
| 46 | + } |
43 | 47 |
|
44 | | - @Test(expected=JsonParseException.class) |
45 | | - public void trailingContent_3() throws JsonParseException, IOException { trailingContent("{}x") ; } |
| 48 | + @Test(expected = JsonParseException.class) |
| 49 | + public void trailingContent_3() throws JsonParseException, IOException { |
| 50 | + trailingContent("{}x"); |
| 51 | + } |
46 | 52 |
|
47 | | - @Test(expected=JsonParseException.class) |
48 | | - public void trailingContent_4() throws JsonParseException, IOException { trailingContent("{} x") ; } |
| 53 | + @Test(expected = JsonParseException.class) |
| 54 | + public void trailingContent_4() throws JsonParseException, IOException { |
| 55 | + trailingContent("{} x"); |
| 56 | + } |
49 | 57 |
|
50 | | - @Test(expected=JsonParseException.class) |
51 | | - public void trailingContent_5() throws JsonParseException, IOException { trailingContent("{} \"x\"") ; } |
| 58 | + @Test(expected = JsonParseException.class) |
| 59 | + public void trailingContent_5() throws JsonParseException, IOException { |
| 60 | + trailingContent("{} \"x\""); |
| 61 | + } |
52 | 62 |
|
53 | | - @Test(expected=JsonParseException.class) |
54 | | - public void trailingContent_6() throws JsonParseException, IOException { trailingContent("{} {}") ; } |
| 63 | + @Test(expected = JsonParseException.class) |
| 64 | + public void trailingContent_6() throws JsonParseException, IOException { |
| 65 | + trailingContent("{} {}"); |
| 66 | + } |
55 | 67 |
|
56 | | - @Test(expected=JsonParseException.class) |
57 | | - public void trailingContent_7() throws JsonParseException, IOException { trailingContent("{},{}") ; } |
| 68 | + @Test(expected = JsonParseException.class) |
| 69 | + public void trailingContent_7() throws JsonParseException, IOException { |
| 70 | + trailingContent("{},{}"); |
| 71 | + } |
58 | 72 |
|
59 | | - @Test(expected=JsonParseException.class) |
60 | | - public void trailingContent_8() throws JsonParseException, IOException { trailingContent("{},[]") ; } |
| 73 | + @Test(expected = JsonParseException.class) |
| 74 | + public void trailingContent_8() throws JsonParseException, IOException { |
| 75 | + trailingContent("{},[]"); |
| 76 | + } |
61 | 77 |
|
62 | 78 | private void trailingContent(String string) throws JsonParseException, IOException { |
63 | | - JsonUtils.fromString(string) ; |
| 79 | + JsonUtils.fromString(string); |
64 | 80 | } |
65 | 81 | } |
0 commit comments