-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
149d9d1
commit ee7fc54
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...-service/src/test/java/it/infn/mw/iam/test/util/annotation/IamMockMvcIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package it.infn.mw.iam.test.util.annotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
import it.infn.mw.iam.IamLoginService; | ||
import it.infn.mw.iam.test.util.WithAnonymousUser; | ||
|
||
|
||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@SpringBootTest(classes = {IamLoginService.class}, webEnvironment = WebEnvironment.MOCK) | ||
@AutoConfigureMockMvc(printOnlyOnFailure = true) | ||
@Transactional | ||
@WithAnonymousUser | ||
public @interface IamMockMvcIntegrationTest { | ||
|
||
} |