TSK-1924: fix guideline violations, so ArchUnitTests are green

This commit is contained in:
Oliver Koch 2022-08-05 08:26:38 +02:00 committed by Mustapha Zorgati
parent 5c18cc9b4a
commit 2bc1c7ca01
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run ArchitectureTest" type="JUnit" factoryName="JUnit" folderName="lib">
<module name="taskana-core" />
<module name="taskana-core-test" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="pro.taskana.*" />

View File

@ -66,7 +66,7 @@ class GetClassificationAccTest {
@WithAccessId(user = "user-1-1")
@Test
void should_getClassificationById_When_AllPropertiesSet() throws Exception {
void should_GetClassificationById_When_AllPropertiesSet() throws Exception {
Classification classification =
classificationService.getClassification(classificationWithAllProperties.getId());
@ -77,7 +77,7 @@ class GetClassificationAccTest {
@WithAccessId(user = "user-1-1")
@Test
void should_getClassificationByKeyAndDomain_When_AllPropertiesSet() throws Exception {
void should_GetClassificationByKeyAndDomain_When_AllPropertiesSet() throws Exception {
Classification classification =
classificationService.getClassification(
classificationWithAllProperties.getKey(), classificationWithAllProperties.getDomain());

View File

@ -77,7 +77,7 @@ class RequestChangesAccTest {
@WithAccessId(user = "user-1-1")
@Test
void should_ForceRequestChanges_WhenTaskIsInReviewByDifferentUser() throws Exception {
void should_ForceRequestChanges_When_TaskIsInReviewByDifferentUser() throws Exception {
Instant now = Instant.now();
Task task = createTaskInReviewByUser("user-1-2").buildAndStore(taskService);
@ -90,7 +90,7 @@ class RequestChangesAccTest {
@WithAccessId(user = "user-1-1")
@TestFactory
Stream<DynamicTest> should_ForceRequestChanges_WhenTaskIsNotInEndState() {
Stream<DynamicTest> should_ForceRequestChanges_When_TaskIsNotInEndState() {
List<TaskState> testCases = Arrays.asList(EnumUtil.allValuesExceptFor(TaskState.END_STATES));
ThrowingConsumer<TaskState> test =
state -> {