Skip to content

MDSD-Tools/Library-JUnit5Utils

Repository files navigation

Library-JUnit5Utils

This project contains shared logic to simplify writing JUnit 5 Test Cases for primarily Eclipse Modeling Framework based code.

Platform Standalone Extension

Code contained in the package tools.mdsd.junit5utils provides fundational support to write plain JUnit Tests (not Plugin-Tests) for Eclipse-Plugins. To leverage the extension support annontate the test class with @ExtendsWith(PlatformStandaloneExtension.class). The extension currently provides the following features:

  • @PluginTestOnly: annotate your test methods, to explicity show the necessity to be run inside a running eclipse platform. Test methods which are annotated with @PluginTestOnly are skipped by the JUnit5 Test runner if Platform.isRunning() evaluates to false.

  • @InitializationTaskProvide: Support standalone initialization using the StandaloneInitialization. Annotate static methods which return a custom InitializationTask to register the task with the StandaloneInitializationBuilder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages