This file contains hidden or 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
| package friendsofmine | |
| import spock.lang.* | |
| /** | |
| * | |
| */ | |
| class InscriptionServiceIntegrationSpec extends Specification { |
This file contains hidden or 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
| package friendsofmine | |
| import grails.transaction.Transactional | |
| @Transactional | |
| class JeuTestService { | |
| Activite activite1 | |
| Activite activite2 | |
| Activite activite3 |
This file contains hidden or 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
| import friendsofmine.JeuTestService | |
| import friendsofmine.Utilisateur | |
| class BootStrap { | |
| JeuTestService jeuTestService | |
| def init = { servletContext -> | |
| jeuTestService.createJeuTestForUtilisateurs() |
This file contains hidden or 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
| package friendsofmine | |
| import spock.lang.* | |
| /** | |
| * | |
| */ | |
| class InscriptionServiceIntegrationSpec extends Specification { |
This file contains hidden or 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
| package friendsofmine | |
| import grails.test.mixin.* | |
| import spock.lang.* | |
| @TestFor(ActiviteController) | |
| @Mock([Activite,Utilisateur]) | |
| class ActiviteControllerSpec extends Specification { |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>friendsofmine</groupId> | |
| <artifactId>friendsofmine</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <packaging>jar</packaging> |
This file contains hidden or 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
| package friendsofmine | |
| import spock.lang.Specification | |
| import spock.lang.Unroll | |
| import javax.validation.Validation | |
| import javax.validation.Validator | |
| import javax.validation.ValidatorFactory | |
This file contains hidden or 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
| package friendsofmine | |
| import spock.lang.Specification | |
| import spock.lang.Unroll | |
| import javax.validation.Validation | |
| import javax.validation.Validator | |
| import javax.validation.ValidatorFactory |
This file contains hidden or 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
| package friendsofmine | |
| import friendsofmine.repositories.UtilisateurRepository | |
| import org.springframework.data.repository.PagingAndSortingRepository | |
| import spock.lang.Specification | |
| /** | |
| * Created by franck on 18/10/2016. | |
| */ | |
| class UtilisateurServiceTest extends Specification { |
This file contains hidden or 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
| package friendsofmine | |
| import org.springframework.beans.factory.annotation.Autowired | |
| import org.springframework.boot.test.context.SpringBootTest | |
| import org.springframework.test.context.ContextConfiguration | |
| import spock.lang.Specification | |
| import javax.validation.ConstraintViolationException | |
| /** |