1

fix some warnings

This commit is contained in:
Christoph
2020-04-08 21:08:57 +02:00
parent 70f3ffdc84
commit 4ac3164569
27 changed files with 94 additions and 92 deletions

View File

@ -6,6 +6,7 @@ import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class Gruppen2ApplicationTests {
@SuppressWarnings("EmptyMethod")
@Test
void contextLoads() {
}

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -42,6 +42,7 @@ class APIControllerTest {
@Autowired
private JdbcTemplate template;
@SuppressWarnings("SyntaxError")
@BeforeEach
void setUp() {
eventRepository.deleteAll();

View File

@ -35,6 +35,7 @@ class EventStoreServiceTest {
@Autowired
private JdbcTemplate template;
@SuppressWarnings("SyntaxError")
@BeforeEach
void setUp() {
eventStoreService = new EventStoreService(eventRepository);

View File

@ -57,6 +57,7 @@ class GroupServiceTest {
@Autowired
private InviteService inviteService;
@SuppressWarnings("SyntaxError")
@BeforeEach
void setUp() {
groupService = new GroupService(eventStoreService, inviteService);