Skip to content

Commit

Permalink
Test base class renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 12, 2025
1 parent c319807 commit eb142d3
Show file tree
Hide file tree
Showing 150 changed files with 166 additions and 165 deletions.
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/Base64VariantTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @see Base64Variant
**/
@SuppressWarnings("resource")
public class Base64VariantTest extends JUnit5TestBase
public class Base64VariantTest extends JacksonCoreTestBase
{
@Test
public void testDecodeTaking2ArgumentsThrowsIllegalArgumentException() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Tests to verify functioning of {@link Version} class.
*/
class ComponentVersionsTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void coreVersions() throws Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Unit tests for class {@link ErrorReportConfiguration#getMaxRawContentLength()}.
*/
public class ErrorReportConfigurationMaxRawContentLengthTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
/*
/**********************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Unit tests for class {@link ErrorReportConfiguration}.
*/
class ErrorReportConfigurationTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
/*
/**********************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/ExceptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.junit.jupiter.api.Assertions.*;

class ExceptionsTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
private final JsonFactory JSON_F = newStreamFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* may be JDK serialized/deserialized.
*/
class JDKSerializabilityTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
/*
/**********************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*<p>
* NOTE: replacement of Jackson 2.x JUnit4-based {@code BaseTest}
*/
public class JUnit5TestBase
public class JacksonCoreTestBase
extends JacksonTestUtilBase
{
protected final static String FIELD_BASENAME = "f";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @see JsonpCharacterEscapes
*/
class JsonpCharacterEscapesTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void getEscapeSequenceOne() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tools.jackson.core;

public class ParserFeatureDefaultsTest extends JUnit5TestBase
public class ParserFeatureDefaultsTest extends JacksonCoreTestBase
{
// 25-Jun-2022, tatu: Seems only relevant for 2.x, but leave the class here,
// just in case it might be needed in future.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* as opposed to accuracy of reported location information by parsers.
*/
class TokenStreamLocationTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
static class Foobar { }

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/VersionClassTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Unit tests for class {@link Version}.
*/
class VersionClassTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void equalsAndHashCode() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/async/AsyncTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import tools.jackson.core.testutil.AsyncReaderWrapperForByteArray;
import tools.jackson.core.testutil.AsyncReaderWrapperForByteBuffer;

public abstract class AsyncTestBase extends JUnit5TestBase
public abstract class AsyncTestBase extends JacksonCoreTestBase
{
final static String SPACES = " ";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// In future might add some actual tests too
@SuppressWarnings("serial")
class FactoryBaseImplsTest extends JUnit5TestBase
class FactoryBaseImplsTest extends JacksonCoreTestBase
{
static class ToyBinaryFormatFactory
extends BinaryTSFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.junit.jupiter.api.Assertions.*;

class Base64BinaryParsingTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
private final JsonFactory JSON_F = newStreamFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.junit.jupiter.api.Assertions.*;

class Base64CodecTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void variantAccess()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

class Base64GenerationTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
/* The usual sample input string, from Thomas Hobbes's "Leviathan"
* (via Wikipedia)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;

class Base64Padding912Test
extends JUnit5TestBase
extends JacksonCoreTestBase
{
private final JsonFactory JSON_F = newStreamFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* wrt maximum nesting depth.
*/
public class DeeplyNestedContentReadTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
private final JsonFactory JSON_F = newStreamFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.junit.jupiter.api.Assertions.fail;

// [core#1047]: Add max-name-length constraints
class LargeNameReadTest extends JUnit5TestBase
class LargeNameReadTest extends JacksonCoreTestBase
{
private final JsonFactory JSON_F_DEFAULT = newStreamFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@SuppressWarnings("resource")
class LargeNumberReadTest
extends tools.jackson.core.JUnit5TestBase
extends tools.jackson.core.JacksonCoreTestBase
{
private final JsonFactory JSON_F = newStreamFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @since 2.15
*/
class LargeNumberWriteTest extends JUnit5TestBase
class LargeNumberWriteTest extends JacksonCoreTestBase
{
private final JsonFactory VANILLA_JSON_F = new JsonFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Set of basic unit tests for verifying that the token count
* functionality works as expected.
*/
public class TokenCountTest extends JUnit5TestBase {
public class TokenCountTest extends JacksonCoreTestBase {
private final static JsonFactory JSON_FACTORY = JsonFactory.builder()
.streamReadConstraints(StreamReadConstraints.builder().maxTokenCount(Long.MAX_VALUE).build())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* filtering.
*/
@SuppressWarnings("resource")
class BasicGeneratorFilteringTest extends JUnit5TestBase
class BasicGeneratorFilteringTest extends JacksonCoreTestBase
{
static final TokenFilter INCLUDE_ALL_SCALARS = new TokenFilter();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import static org.junit.jupiter.api.Assertions.*;

@SuppressWarnings("resource")
class BasicParserFilteringTest extends JUnit5TestBase
class BasicParserFilteringTest extends JacksonCoreTestBase
{
static class NameMatchFilter extends TokenFilter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// for [core#609]
class GeneratorFiltering609Test
extends tools.jackson.core.JUnit5TestBase
extends tools.jackson.core.JacksonCoreTestBase
{
static class NullExcludingTokenFilter extends TokenFilter {
static final NullExcludingTokenFilter INSTANCE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// for [core#890]
class GeneratorFiltering890Test
extends JUnit5TestBase
extends JacksonCoreTestBase
{
private static final class OrTokenFilter extends TokenFilter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

@SuppressWarnings("resource")
class JsonPointerGeneratorFilteringTest extends tools.jackson.core.JUnit5TestBase
class JsonPointerGeneratorFilteringTest extends tools.jackson.core.JacksonCoreTestBase
{
private final JsonFactory JSON_F = new JsonFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

class JsonPointerParserFilteringTest extends tools.jackson.core.JUnit5TestBase
class JsonPointerParserFilteringTest extends tools.jackson.core.JacksonCoreTestBase
{
private final JsonFactory JSON_F = new JsonFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.junit.jupiter.api.Assertions.*;

@SuppressWarnings("resource")
class ParserFiltering700Test extends JUnit5TestBase
class ParserFiltering700Test extends JacksonCoreTestBase
{
static class NoTypeFilter extends TokenFilter {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// Trying to repro: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32216
// but so far without success (fails on seemingly legit validation problem)
class Fuzz32208UTF32ParseTest extends JUnit5TestBase
class Fuzz32208UTF32ParseTest extends JacksonCoreTestBase
{
private final byte[] DOC = readResource("/data/fuzz-json-utf32-32208.json");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import static org.junit.jupiter.api.Assertions.fail;

// Trying to repro: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34435
class Fuzz34435ParseTest extends JUnit5TestBase
class Fuzz34435ParseTest extends JacksonCoreTestBase
{
private final byte[] DOC = readResource("/data/fuzz-json-34435.json");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// Reproducing: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52688
// (reported as [core#834]
class Fuzz52688ParseTest extends JUnit5TestBase
class Fuzz52688ParseTest extends JacksonCoreTestBase
{
private final JsonFactory JSON_F = new JsonFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// * [core#1169],
// * https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61198
class Fuzz61198_1169_NumberParseTest extends JUnit5TestBase
class Fuzz61198_1169_NumberParseTest extends JacksonCoreTestBase
{
// NOTE! Not enough to enable just first, but both it seem
private final JsonFactory JSON_F = JsonFactory.builder()
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/tools/jackson/core/io/BigDecimalParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import ch.randelshofer.fastdoubleparser.JavaBigDecimalParser;
import org.junit.jupiter.api.Test;

import tools.jackson.core.JUnit5TestBase;
import tools.jackson.core.JacksonCoreTestBase;

import static org.junit.jupiter.api.Assertions.*;

class BigDecimalParserTest extends JUnit5TestBase
class BigDecimalParserTest extends JacksonCoreTestBase
{
@Test
void longInvalidStringParse() {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/tools/jackson/core/io/BigIntegerParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import org.junit.jupiter.api.Test;

import tools.jackson.core.JUnit5TestBase;
import tools.jackson.core.JacksonCoreTestBase;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;

class BigIntegerParserTest extends JUnit5TestBase {
class BigIntegerParserTest extends JacksonCoreTestBase {

@Test
void fastParseBigIntegerFailsWithENotation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import static org.junit.jupiter.api.Assertions.*;

// Tests for [core#1064] wrt custom `BufferRecycler`
class BufferRecyclerPoolTest extends JUnit5TestBase
class BufferRecyclerPoolTest extends JacksonCoreTestBase
{
@Test
void noOp() throws Exception {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/io/MergedStreamTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.junit.jupiter.api.Assertions.*;

class MergedStreamTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void simple() throws Exception
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/tools/jackson/core/io/NumberInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import org.junit.jupiter.api.Test;

import tools.jackson.core.JUnit5TestBase;
import tools.jackson.core.JacksonCoreTestBase;

import static org.junit.jupiter.api.Assertions.*;

class NumberInputTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void nastySmallDouble()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.junit.jupiter.api.Assertions.*;

class SegmentedStringWriterTest
extends JUnit5TestBase
extends JacksonCoreTestBase
{
@Test
void simple() throws Exception
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/io/TestCharTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

class TestCharTypes
extends tools.jackson.core.JUnit5TestBase
extends tools.jackson.core.JacksonCoreTestBase
{
@Test
void appendQuoted031()
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/tools/jackson/core/io/TestIOContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;

class TestIOContext
extends tools.jackson.core.JUnit5TestBase
extends tools.jackson.core.JacksonCoreTestBase
{
@Test
void allocations() throws Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

class TestJsonStringEncoder
extends tools.jackson.core.JUnit5TestBase
extends tools.jackson.core.JacksonCoreTestBase
{
@Test
void quoteAsString() throws Exception
Expand Down
Loading

0 comments on commit eb142d3

Please sign in to comment.