Package jline.unified

Class UnifiedTestSuite

  • All Implemented Interfaces:

    @TestInstance(value = TestInstance.Lifecycle.PER_CLASS)@DisplayName(value = "Unified Cross-Language Tests") 
    public final class UnifiedTestSuite
    
                        

    JUnit5 test suite for unified cross-language tests.

    This class provides JUnit5-compatible test methods that run the unified tests against all available JSON definitions.

    Usage: mvn test -Dtest=UnifiedTestSuite

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit setup()
      final List<DynamicTest> testAllModels() Dynamic test factory that generates a test for each model definition.
      final Unit testRegistryHasModels() Test that the ModelRegistry has models registered.
      final List<DynamicTest> testRegistryCanBuildModels() Test that basic models can be built from the registry.
      final List<DynamicTest> testDefinitionsValidJson() Test that all definition files are valid JSON.
      final List<DynamicTest> testDefinitionsMatchSchema() Test that definitions conform to schema structure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnifiedTestSuite

        UnifiedTestSuite()
    • Method Detail

      • testAllModels

        @TestFactory()@DisplayName(value = "Model Tests") final List<DynamicTest> testAllModels()

        Dynamic test factory that generates a test for each model definition.

        This uses JUnit5's dynamic test feature to create one test per model, allowing individual model tests to be run independently.

      • testRegistryHasModels

        @Test()@DisplayName(value = "Registry has models registered") final Unit testRegistryHasModels()

        Test that the ModelRegistry has models registered.

      • testRegistryCanBuildModels

        @TestFactory()@DisplayName(value = "Registry can build models") final List<DynamicTest> testRegistryCanBuildModels()

        Test that basic models can be built from the registry.

      • testDefinitionsValidJson

        @TestFactory()@DisplayName(value = "Definitions are valid JSON") final List<DynamicTest> testDefinitionsValidJson()

        Test that all definition files are valid JSON.

      • testDefinitionsMatchSchema

        @TestFactory()@DisplayName(value = "Definitions match schema") final List<DynamicTest> testDefinitionsMatchSchema()

        Test that definitions conform to schema structure.