Skip to main content

expanders-assert


0.4.0 (2024-04-19)

Added

  • Added programType parameter to @TestModel.
  • Added @TestData annotation. Add this to a method returning an ElementSpec. The spec will be built and added to the DataRegistry before the model is built.

0.3.0 (2024-02-14)

Added

  • Added TestExpansion.extendElements() to apply model extension to a collection of elements.

0.2.0 (2024-01-10)

Added

  • Added basic support for expansionSteps
  • Added support for tags
  • Added support for expanders targeting abstract element classes.

Changed

  • TestExpansion now delays building the model until it is necessary. This allows you to change the baseModel and target with the TestExpansion methods in the test model without having unintended side effects from building the original test model.

0.1.4 (2023-12-15)

Fixed

  • Fixed issues with dependencies between project resources by merging them into a single project expansion-resource.

0.1.3 (2023-12-14)

Fixed

  • Provide better names for expansion-resources generated for projects, so that there are no conflicts. This fixes some disparities between running tests in IntelliJ and running them with maven.

0.1.2 (2023-12-11)

Fixed

  • Exclude project expansion-resource from conflict validation to ensure useful error messages.

0.1.1 (2023-12-11)

Fixed

  • Fixed a bug where the expansion-resources would not be sorted before loading data-resources, causing unexpected issues of missing data.
  • Changed the order of execution when preparing the test context, so that the ClassPath can be validated before data-resources are being loaded.

0.1.0 (2023-12-06)

Added

  • Added @UseModel annotation. You can now define multiple methods with @TestModel. By default, the framework will grab the baseModel() method. If the @UseModel annotation is added to the test method, it will instead grab the method defined in the annotation.

Fixed

  • The project's expansionResource manifest is now generated ad hoc before the tests, giving better consistency when changing Expanders and Features, or adding Data-resources.

0.0.4 (2023-10-23)

Added

  • Added extendModel(Function, Spec...) method to TestExpansion. This allows you to select a part of the model and then extend it. e.g.
    testExpansion.extendModel(dataElement -> dataElement.getComponent(), option("some.component.option"));

0.0.3 (2023-10-19)

Added

  • Added imports() assertion to FeatureAssert to test imports from usages in mapping file.

Fixed

  • Added fallback to classpath when an expander cannot be found

0.0.2 (2023-10-03)

Fixed

  • expansionResource.xml files generated for tests are now correctly removed after tests.
  • Fixed version issue because test expansion-resource was using an invalid version 'NOW'.

0.0.1 (2023-06-29)

Added

  • Added @ExpanderTest, @FeatureTest and @ModelTest annotations to configure junit 5 tests.
  • Added TestExpansion class to build expansion model for tests
  • Added Assert classes using AssertJ to test expanders and features