Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jan Smejkal
Pa165 Secret Archive
Commits
4fff50e3
Commit
4fff50e3
authored
Mar 27, 2022
by
tbilos
Browse files
rename test
parent
fdb7c53e
Pipeline
#123250
waiting for manual action with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/cz/fi/muni/pa165/seminar4/group7/secretservice/dao/AgentAssignment
Dao
Test.java
→
src/test/java/cz/fi/muni/pa165/seminar4/group7/secretservice/dao/AgentAssignmentTest.java
View file @
4fff50e3
...
...
@@ -15,23 +15,23 @@ import static org.assertj.core.api.Assertions.*;
* @author Tomáš Biloš
*/
@SpringBootTest
public
class
AgentAssignment
Dao
Test
{
class
AgentAssignmentTest
{
@Autowired
private
AgentAssignmentDao
agentAssignmentDao
;
@BeforeEach
public
void
deleteAll
()
{
void
deleteAll
()
{
agentAssignmentDao
.
deleteAll
();
}
@Test
public
void
testEmpty
()
{
void
testEmpty
()
{
assertThat
(
agentAssignmentDao
.
findAll
()).
hasSize
(
0
);
}
@Test
public
void
create
()
{
void
create
()
{
var
agentAssignment
=
new
AgentAssignment
();
agentAssignmentDao
.
save
(
agentAssignment
);
...
...
@@ -40,7 +40,7 @@ public class AgentAssignmentDaoTest {
}
@Test
public
void
delete
()
{
void
delete
()
{
var
agentAssignment
=
new
AgentAssignment
();
agentAssignmentDao
.
save
(
agentAssignment
);
agentAssignmentDao
.
deleteById
(
agentAssignment
.
getId
());
...
...
@@ -49,7 +49,7 @@ public class AgentAssignmentDaoTest {
@Test
@Transactional
public
void
addPerformanceEvaluation
()
{
void
addPerformanceEvaluation
()
{
var
agentAssignment
=
new
AgentAssignment
();
agentAssignment
.
addPerformanceEvaluation
(
new
PerformanceEvaluation
());
agentAssignmentDao
.
save
(
agentAssignment
);
...
...
@@ -61,7 +61,7 @@ public class AgentAssignmentDaoTest {
@Test
@Transactional
public
void
removePerformanceEvaluation
()
{
void
removePerformanceEvaluation
()
{
var
agentAssignment
=
new
AgentAssignment
();
var
perfEval
=
new
PerformanceEvaluation
();
agentAssignment
.
addPerformanceEvaluation
(
perfEval
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment