fix some warnings
This commit is contained in:
@ -6,6 +6,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
@SpringBootTest
|
||||
class Gruppen2ApplicationTests {
|
||||
|
||||
@SuppressWarnings("EmptyMethod")
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
|
||||
|
||||
@AnalyzeClasses(packages = "mops.gruppen2", importOptions = ImportOption.DoNotIncludeTests.class)
|
||||
public class ControllerTest {
|
||||
class ControllerTest {
|
||||
|
||||
@ArchTest
|
||||
public static final ArchRule controllerClassesShouldBeAnnotatedWithControllerOrRestControllerAnnotation = classes()
|
||||
|
||||
@ -10,7 +10,7 @@ import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
|
||||
|
||||
@AnalyzeClasses(packages = "mops.gruppen2", importOptions = ImportOption.DoNotIncludeTests.class)
|
||||
public class DomainTest {
|
||||
class DomainTest {
|
||||
|
||||
@ArchTest
|
||||
public static final ArchRule domainClassesShouldNotAccessClassesFromOtherPackagesExceptDomainItself = noClasses()
|
||||
|
||||
@ -7,7 +7,7 @@ import com.tngtech.archunit.lang.ArchRule;
|
||||
import com.tngtech.archunit.library.Architectures;
|
||||
|
||||
@AnalyzeClasses(packages = "mops.gruppen2", importOptions = ImportOption.DoNotIncludeTests.class)
|
||||
public class LayeredArchitectureTest {
|
||||
class LayeredArchitectureTest {
|
||||
|
||||
private static final Architectures.LayeredArchitecture layeredArchitecture = Architectures
|
||||
.layeredArchitecture()
|
||||
|
||||
@ -10,7 +10,7 @@ import org.springframework.stereotype.Repository;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
|
||||
|
||||
@AnalyzeClasses(packages = "mops.gruppen2", importOptions = ImportOption.DoNotIncludeTests.class)
|
||||
public class RepositoryTest {
|
||||
class RepositoryTest {
|
||||
|
||||
@ArchTest
|
||||
public static final ArchRule repositoryClassesThatAreAnnotatedWithRepositoryShouldHaveRepositoryInName = classes()
|
||||
|
||||
@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
|
||||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
|
||||
|
||||
@AnalyzeClasses(packages = "mops.gruppen2", importOptions = ImportOption.DoNotIncludeTests.class)
|
||||
public class ServiceTest {
|
||||
class ServiceTest {
|
||||
|
||||
@ArchTest
|
||||
public static final ArchRule serviceClassesShouldHaveServiceInName = classes()
|
||||
|
||||
@ -42,6 +42,7 @@ class APIControllerTest {
|
||||
@Autowired
|
||||
private JdbcTemplate template;
|
||||
|
||||
@SuppressWarnings("SyntaxError")
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
eventRepository.deleteAll();
|
||||
|
||||
@ -35,6 +35,7 @@ class EventStoreServiceTest {
|
||||
@Autowired
|
||||
private JdbcTemplate template;
|
||||
|
||||
@SuppressWarnings("SyntaxError")
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
eventStoreService = new EventStoreService(eventRepository);
|
||||
|
||||
@ -57,6 +57,7 @@ class GroupServiceTest {
|
||||
@Autowired
|
||||
private InviteService inviteService;
|
||||
|
||||
@SuppressWarnings("SyntaxError")
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
groupService = new GroupService(eventStoreService, inviteService);
|
||||
|
||||
Reference in New Issue
Block a user