fix check
This commit is contained in:
@ -6,7 +6,6 @@ import lombok.extern.log4j.Log4j2;
|
||||
import mops.gruppen2.domain.event.Event;
|
||||
import mops.gruppen2.domain.model.group.Group;
|
||||
import mops.gruppen2.infrastructure.GroupCache;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -18,7 +17,6 @@ import java.util.UUID;
|
||||
*/
|
||||
@Log4j2
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
@Service
|
||||
public final class ProjectionHelper {
|
||||
|
||||
public static void project(Map<UUID, Group> groups, List<Event> events, GroupCache cache) {
|
||||
|
@ -8,7 +8,6 @@ import lombok.extern.log4j.Log4j2;
|
||||
import mops.gruppen2.aspect.annotation.TraceMethodCalls;
|
||||
import mops.gruppen2.domain.service.EventStoreService;
|
||||
import mops.gruppen2.domain.service.helper.CommonHelper;
|
||||
import mops.gruppen2.domain.service.helper.ProjectionHelper;
|
||||
import org.springframework.security.access.annotation.Secured;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
@ -30,7 +29,6 @@ public class APIController {
|
||||
//TODO: redo api
|
||||
|
||||
private final EventStoreService eventStoreService;
|
||||
private final ProjectionHelper projectionHelper;
|
||||
|
||||
/**
|
||||
* Erzeugt eine Liste aus Gruppen, welche sich seit einer übergebenen Event-Id geändert haben.
|
||||
|
@ -12,7 +12,6 @@ import mops.gruppen2.domain.model.group.wrapper.Parent;
|
||||
import mops.gruppen2.domain.model.group.wrapper.Title;
|
||||
import mops.gruppen2.domain.service.GroupService;
|
||||
import mops.gruppen2.domain.service.helper.CsvHelper;
|
||||
import mops.gruppen2.domain.service.helper.ProjectionHelper;
|
||||
import mops.gruppen2.domain.service.helper.ValidationHelper;
|
||||
import mops.gruppen2.infrastructure.GroupCache;
|
||||
import org.keycloak.adapters.springsecurity.token.KeycloakAuthenticationToken;
|
||||
@ -36,9 +35,7 @@ import javax.validation.Valid;
|
||||
public class GroupCreationController {
|
||||
|
||||
private final GroupCache groupCache;
|
||||
|
||||
private final GroupService groupService;
|
||||
private final ProjectionHelper projectionHelper;
|
||||
|
||||
@RolesAllowed({"ROLE_orga", "ROLE_studentin"})
|
||||
@GetMapping("/create")
|
||||
|
@ -30,7 +30,7 @@ class ControllerTest {
|
||||
public static final ArchRule controllerClassesShouldBeInControllerPackage = classes()
|
||||
.that().areAnnotatedWith(Controller.class)
|
||||
.or().areAnnotatedWith(RestController.class)
|
||||
.should().resideInAPackage("..web");
|
||||
.should().resideInAPackage("..controller");
|
||||
|
||||
@ArchTest
|
||||
public static final ArchRule classesInControllerPackageShouldHaveControllerInName = classes()
|
||||
|
@ -25,11 +25,11 @@ class ServiceTest {
|
||||
@ArchTest
|
||||
public static final ArchRule serviceClassesShouldBeInServicePackage = classes()
|
||||
.that().areAnnotatedWith(Service.class)
|
||||
.should().resideInAPackage("..service..");
|
||||
.should().resideInAPackage("..service");
|
||||
|
||||
@ArchTest
|
||||
public static final ArchRule classesInServicePackageShouldHaveServiceInName = classes()
|
||||
.that().resideInAPackage("..service..")
|
||||
.that().resideInAPackage("..service")
|
||||
.should().haveSimpleNameEndingWith("Service");
|
||||
|
||||
@ArchIgnore
|
||||
|
Reference in New Issue
Block a user