@@ -0,0 +1,2206 @@
+package com.jmb.springfactory.integration;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport javax.validation.ValidationException;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.data.mongodb.core.MongoTemplate;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport com.jmb.springfactory.SpringFactoryApplication;%0Aimport com.jmb.springfactory.SpringFactoryTestConfiguration;%0Aimport com.jmb.springfactory.model.dto.GroupDto;%0Aimport com.jmb.springfactory.model.factory.group.GroupDtoFactory;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest(classes = %7BSpringFactoryApplication.class, SpringFactoryTestConfiguration.class%7D)%0Apublic class GroupIntegrationTest %7B%0A%0A  @Autowired%0A  private GroupController groupController;%0A  %0A  @Autowired%0A  private MongoTemplate mongoTemplate;%0A  %0A  @Test(expected = ValidationException.class)%0A  public void whenCreateGroupAndExistAnyOneWithTheSameNameThenThrowValidationException() %7B%0A    %0A    final GroupDto newGroupDto = GroupDtoFactory.createSampleDefaultGroupDto();%0A    %0A    mongoTemplate.save(newGroupDto);%0A    groupController.create(newGroupDto);%0A  %7D%0A  %0A  @Test(expected = ValidationException.class)%0A  public void whenCreateGroupThatHaveAnyEmptyFieldThenThrowValidationException() %7B%0A    %0A    final GroupDto newGroupDto = GroupDtoFactory.createGroup(null, null, null, null);%0A    %0A    groupController.create(newGroupDto);%0A  %7D%0A  %0A  @Test(expected = ValidationException.class)%0A  public void whenCreateGroupThatHaveIncorrectFomatHourFieldsThenThrowValidationException() %7B%0A    %0A    final GroupDto newGroupDto = GroupDtoFactory.createGroup(null, null, %22asddas%22, %221231:123123%22);%0A    %0A    groupController.create(newGroupDto);%0A  %7D%0A%0A  @Test%0A  public void whenCreateGroupTheGroupIdMustNotBeNull() %7B%0A    %0A    final GroupDto newGroupDto = GroupDtoFactory.createSampleDefaultGroupDto();%0A    newGroupDto.setId(null);%0A    %0A    mongoTemplate.save(newGroupDto);%0A    final GroupDto groupCreated = groupController.create(newGroupDto);%0A    %0A    assertNotNull(groupCreated);%0A    assertNotNull(groupCreated.getId());%0A  %7D%0A%7D%0A

Implement integration test to specific feature to groups