Skip to content

Instantly share code, notes, and snippets.

@joeyslalom
Created October 3, 2018 19:53
Show Gist options
  • Save joeyslalom/d787844285d2fb6325b9096ee37e29e0 to your computer and use it in GitHub Desktop.
Save joeyslalom/d787844285d2fb6325b9096ee37e29e0 to your computer and use it in GitHub Desktop.
smoke test annotation
/**
* Convenience annotation for a Spring Boot Test + Junit5 + per class lifecycle
*/
@Target(ElementType.TYPE)
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@ExtendWith(SpringExtension.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
public @interface SmokeTest {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment