Skip to content

Commit 8a63762

Browse files
committed
Minor test cleanup
1 parent 40cc9e5 commit 8a63762

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

src/test/java/com/fasterxml/jackson/core/read/ParserErrorHandlingTest.java

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,23 @@ void invalidKeywordsChars() throws Exception {
2727

2828
// Tests for [core#105] ("eager number parsing misses errors")
2929
@Test
30-
void mangledIntsBytes() throws Exception {
31-
_testMangledNumbersInt(MODE_INPUT_STREAM);
32-
_testMangledNumbersInt(MODE_INPUT_STREAM_THROTTLED);
33-
_testMangledNumbersInt(MODE_DATA_INPUT);
30+
void mangledRootIntsBytes() throws Exception {
31+
_testMangledRootNumbersInt(MODE_INPUT_STREAM);
32+
_testMangledRootNumbersInt(MODE_INPUT_STREAM_THROTTLED);
33+
_testMangledRootNumbersInt(MODE_DATA_INPUT);
3434
}
3535

3636
@Test
37-
void mangledFloatsBytes() throws Exception {
38-
_testMangledNumbersFloat(MODE_INPUT_STREAM);
39-
_testMangledNumbersFloat(MODE_INPUT_STREAM_THROTTLED);
40-
41-
// 02-Jun-2017, tatu: Fails as expected, unlike int one. Bit puzzling...
42-
_testMangledNumbersFloat(MODE_DATA_INPUT);
37+
void mangledRootFloatsBytes() throws Exception {
38+
_testMangledRootNumbersFloat(MODE_INPUT_STREAM);
39+
_testMangledRootNumbersFloat(MODE_INPUT_STREAM_THROTTLED);
40+
_testMangledRootNumbersFloat(MODE_DATA_INPUT);
4341
}
4442

4543
@Test
46-
void mangledNumbersChars() throws Exception {
47-
_testMangledNumbersInt(MODE_READER);
48-
_testMangledNumbersFloat(MODE_READER);
44+
void mangledRootNumbersChars() throws Exception {
45+
_testMangledRootNumbersInt(MODE_READER);
46+
_testMangledRootNumbersFloat(MODE_READER);
4947
}
5048

5149
/*
@@ -103,7 +101,7 @@ private void doTestInvalidKeyword1(int mode, String value)
103101
}
104102
}
105103

106-
private void _testMangledNumbersInt(int mode) throws Exception
104+
private void _testMangledRootNumbersInt(int mode) throws Exception
107105
{
108106
JsonParser p = createParser(JSON_F, mode, "123true");
109107
try {
@@ -115,7 +113,7 @@ private void _testMangledNumbersInt(int mode) throws Exception
115113
p.close();
116114
}
117115

118-
private void _testMangledNumbersFloat(int mode) throws Exception
116+
private void _testMangledRootNumbersFloat(int mode) throws Exception
119117
{
120118
// Also test with floats
121119
JsonParser p = createParser(JSON_F, mode, "1.5false");

src/test/java/com/fasterxml/jackson/core/tofix/ParserErrorHandling105Test.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ void mangledFloatsBytes() throws Exception {
2626
// _testMangledNonRootFloats(MODE_INPUT_STREAM);
2727
// _testMangledNonRootFloats(MODE_INPUT_STREAM_THROTTLED);
2828

29-
// 02-Jun-2017, tatu: Fails as expected, unlike int one. Bit puzzling...
3029
_testMangledNonRootFloats(MODE_DATA_INPUT);
3130
}
3231

0 commit comments

Comments
 (0)