Skip to content

Commit 7cbb3e9

Browse files
committed
Merge branch '2.x' into 3.0
2 parents fa14fad + 8a63762 commit 7cbb3e9

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

src/test/java/tools/jackson/core/unittest/read/ParserErrorHandlingTest.java

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

3030
// Tests for [core#105] ("eager number parsing misses errors")
3131
@Test
32-
void mangledIntsBytes() throws Exception {
33-
_testMangledNumbersInt(MODE_INPUT_STREAM);
34-
_testMangledNumbersInt(MODE_INPUT_STREAM_THROTTLED);
35-
_testMangledNumbersInt(MODE_DATA_INPUT);
32+
void mangledRootIntsBytes() throws Exception {
33+
_testMangledRootNumbersInt(MODE_INPUT_STREAM);
34+
_testMangledRootNumbersInt(MODE_INPUT_STREAM_THROTTLED);
35+
_testMangledRootNumbersInt(MODE_DATA_INPUT);
3636
}
3737

3838
@Test
39-
void mangledFloatsBytes() throws Exception {
40-
_testMangledNumbersFloat(MODE_INPUT_STREAM);
41-
_testMangledNumbersFloat(MODE_INPUT_STREAM_THROTTLED);
42-
43-
// 02-Jun-2017, tatu: Fails as expected, unlike int one. Bit puzzling...
44-
_testMangledNumbersFloat(MODE_DATA_INPUT);
39+
void mangledRootFloatsBytes() throws Exception {
40+
_testMangledRootNumbersFloat(MODE_INPUT_STREAM);
41+
_testMangledRootNumbersFloat(MODE_INPUT_STREAM_THROTTLED);
42+
_testMangledRootNumbersFloat(MODE_DATA_INPUT);
4543
}
4644

4745
@Test
48-
void mangledNumbersChars() throws Exception {
49-
_testMangledNumbersInt(MODE_READER);
50-
_testMangledNumbersFloat(MODE_READER);
46+
void mangledRootNumbersChars() throws Exception {
47+
_testMangledRootNumbersInt(MODE_READER);
48+
_testMangledRootNumbersFloat(MODE_READER);
5149
}
5250

5351
/*
@@ -104,7 +102,7 @@ private void doTestInvalidKeyword1(int mode, String value)
104102
}
105103
}
106104

107-
private void _testMangledNumbersInt(int mode)
105+
private void _testMangledRootNumbersInt(int mode)
108106
{
109107
JsonParser p = createParser(JSON_F, mode, "123true");
110108
try {
@@ -116,7 +114,7 @@ private void _testMangledNumbersInt(int mode)
116114
p.close();
117115
}
118116

119-
private void _testMangledNumbersFloat(int mode)
117+
private void _testMangledRootNumbersFloat(int mode)
120118
{
121119
// Also test with floats
122120
JsonParser p = createParser(JSON_F, mode, "1.5false");

src/test/java/tools/jackson/core/unittest/tofix/ParserErrorHandling105Test.java

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

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

0 commit comments

Comments
 (0)