From dba6e9ab68e722acb65dd289f309e349a1179db6 Mon Sep 17 00:00:00 2001 From: Patrick Kubiak Date: Mon, 4 Nov 2024 00:11:34 -0500 Subject: [PATCH] Mark SecurityConfig as Generated to ignore unit test coverage --- src/main/java/org/example/Generated.java | 10 ++++++++++ src/main/java/org/example/SecurityConfig.java | 1 + 2 files changed, 11 insertions(+) create mode 100644 src/main/java/org/example/Generated.java diff --git a/src/main/java/org/example/Generated.java b/src/main/java/org/example/Generated.java new file mode 100644 index 0000000..3ca4c42 --- /dev/null +++ b/src/main/java/org/example/Generated.java @@ -0,0 +1,10 @@ +package org.example; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE}) +@Retention(RetentionPolicy.CLASS) +public @interface Generated {} diff --git a/src/main/java/org/example/SecurityConfig.java b/src/main/java/org/example/SecurityConfig.java index 3d06d88..6ae4e81 100644 --- a/src/main/java/org/example/SecurityConfig.java +++ b/src/main/java/org/example/SecurityConfig.java @@ -12,6 +12,7 @@ import static org.springframework.security.config.Customizer.withDefaults; +@Generated @Configuration public class SecurityConfig {