This commit is contained in:
parent
01af822f06
commit
5936734cda
@ -86,7 +86,7 @@
|
|||||||
<recent name="$PROJECT_DIR$/src/test/java/core/taskgroups" />
|
<recent name="$PROJECT_DIR$/src/test/java/core/taskgroups" />
|
||||||
</key>
|
</key>
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager" selected="JUnit.TaskServiceTest">
|
<component name="RunManager" selected="JUnit.TaskServiceTest.deleteTask">
|
||||||
<configuration name="TaskServiceTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
|
<configuration name="TaskServiceTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
|
||||||
<module name="demo" />
|
<module name="demo" />
|
||||||
<extension name="coverage">
|
<extension name="coverage">
|
||||||
@ -118,6 +118,22 @@
|
|||||||
<option name="Make" enabled="true" />
|
<option name="Make" enabled="true" />
|
||||||
</method>
|
</method>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<configuration name="TaskServiceTest.deleteTask" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
|
||||||
|
<module name="demo" />
|
||||||
|
<extension name="coverage">
|
||||||
|
<pattern>
|
||||||
|
<option name="PATTERN" value="core.tasks.*" />
|
||||||
|
<option name="ENABLED" value="true" />
|
||||||
|
</pattern>
|
||||||
|
</extension>
|
||||||
|
<option name="PACKAGE_NAME" value="core.tasks" />
|
||||||
|
<option name="MAIN_CLASS_NAME" value="core.tasks.TaskServiceTest" />
|
||||||
|
<option name="METHOD_NAME" value="deleteTask" />
|
||||||
|
<option name="TEST_OBJECT" value="method" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="Make" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
<configuration name="TaskServiceTest.editTask" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
|
<configuration name="TaskServiceTest.editTask" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
|
||||||
<module name="demo" />
|
<module name="demo" />
|
||||||
<extension name="coverage">
|
<extension name="coverage">
|
||||||
@ -149,22 +165,6 @@
|
|||||||
<option name="Make" enabled="true" />
|
<option name="Make" enabled="true" />
|
||||||
</method>
|
</method>
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration name="TaskgroupServiceTest.getTaskgroupByIDAndUsername" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
|
|
||||||
<module name="demo" />
|
|
||||||
<extension name="coverage">
|
|
||||||
<pattern>
|
|
||||||
<option name="PATTERN" value="core.taskgroups.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</pattern>
|
|
||||||
</extension>
|
|
||||||
<option name="PACKAGE_NAME" value="core.taskgroups" />
|
|
||||||
<option name="MAIN_CLASS_NAME" value="core.taskgroups.TaskgroupServiceTest" />
|
|
||||||
<option name="METHOD_NAME" value="getTaskgroupByIDAndUsername" />
|
|
||||||
<option name="TEST_OBJECT" value="method" />
|
|
||||||
<method v="2">
|
|
||||||
<option name="Make" enabled="true" />
|
|
||||||
</method>
|
|
||||||
</configuration>
|
|
||||||
<configuration name="DemoApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
|
<configuration name="DemoApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
|
||||||
<module name="demo" />
|
<module name="demo" />
|
||||||
<option name="SPRING_BOOT_MAIN_CLASS" value="core.DemoApplication" />
|
<option name="SPRING_BOOT_MAIN_CLASS" value="core.DemoApplication" />
|
||||||
@ -174,11 +174,11 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list>
|
<list>
|
||||||
|
<item itemvalue="JUnit.TaskServiceTest.deleteTask" />
|
||||||
<item itemvalue="JUnit.TaskServiceTest" />
|
<item itemvalue="JUnit.TaskServiceTest" />
|
||||||
<item itemvalue="JUnit.TaskServiceTest.createTask" />
|
<item itemvalue="JUnit.TaskServiceTest.createTask" />
|
||||||
<item itemvalue="JUnit.TaskServiceTest.editTask" />
|
<item itemvalue="JUnit.TaskServiceTest.editTask" />
|
||||||
<item itemvalue="JUnit.TaskgroupServiceTest" />
|
<item itemvalue="JUnit.TaskgroupServiceTest" />
|
||||||
<item itemvalue="JUnit.TaskgroupServiceTest.getTaskgroupByIDAndUsername" />
|
|
||||||
</list>
|
</list>
|
||||||
</recent_temporary>
|
</recent_temporary>
|
||||||
</component>
|
</component>
|
||||||
|
@ -176,17 +176,16 @@ public class TaskServiceTest {
|
|||||||
assertEquals(ServiceExitCode.OK, result_11.getExitCode());
|
assertEquals(ServiceExitCode.OK, result_11.getExitCode());
|
||||||
assertEquals(task_11, result_11.getResult());
|
assertEquals(task_11, result_11.getResult());
|
||||||
}
|
}
|
||||||
/*@Test
|
|
||||||
|
@Test
|
||||||
@SqlGroup({
|
@SqlGroup({
|
||||||
@Sql("classpath:taskgroupRepositoryTestEntries.sql"),
|
@Sql("classpath:taskgroupRepositoryTestEntries.sql"),
|
||||||
@Sql("classpath:taskRepositoryEntries.sql")
|
@Sql("classpath:taskRepositoryEntries.sql")
|
||||||
})
|
})
|
||||||
void deleteTask() {
|
void deleteTask() {
|
||||||
Task task = entityManager.find(Task.class, 1L);
|
for(long i=1; i<=15; i++) {
|
||||||
task.getTaskgroup().getTasks().remove(task);
|
taskRepository.deleteByTaskID(entityManager.find(Task.class, i).getTaskID());
|
||||||
taskgroupRepository.save(task.getTaskgroup());
|
assertThat(entityManager.find(Task.class, i)).isNull();
|
||||||
Task updatedTask = entityManager.find(Task.class, 1L);
|
}
|
||||||
taskRepository.deleteByTaskID(entityManager.find(Task.class, 1L).getTaskID());
|
}
|
||||||
assertThat(entityManager.find(Task.class, 1L)).isNull();
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user