Skip to content

Commit

Permalink
Mark SecurityConfig as Generated to ignore unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
patkub committed Nov 4, 2024
1 parent 3cbb07c commit dba6e9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/example/Generated.java
Original file line number Diff line number Diff line change
@@ -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 {}
1 change: 1 addition & 0 deletions src/main/java/org/example/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import static org.springframework.security.config.Customizer.withDefaults;

@Generated
@Configuration
public class SecurityConfig {

Expand Down

0 comments on commit dba6e9a

Please sign in to comment.