com.github.squirrelgrip.jupiter.extension.systemexit.ExpectSystemExitWithStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit5-extensions Show documentation
Show all versions of junit5-extensions Show documentation
A collection of useful junit5 extensions
package com.github.squirrelgrip.jupiter.extension.systemexit
import org.junit.jupiter.api.extension.ExtendWith
/**
* This is a marker annotation that indicates the given test method or class is expected
* to call System.exit() with a specific code
*/
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
@ExtendWith(SystemExitExtension::class)
annotation class ExpectSystemExitWithStatus(val value: Int)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy