Skip to content

Commit

Permalink
fix: fixed build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Troha7 committed Feb 26, 2024
1 parent 4adbab9 commit 2f4328e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MessageServiceImplTest {

@Test
@DisplayName("should save report to message when user makes report")
@DatabaseSetup(value = "/dataset/report-to-message-dataset.xml", type = DatabaseOperation.INSERT)
@DatabaseSetup(value = "/dataset/report-to-message-dataset.xml", type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/report-to-message-dataset.xml",
type = DatabaseOperation.DELETE)
Expand Down Expand Up @@ -88,7 +88,7 @@ public void shouldDeleteMessage_WhenUserMakesReportAndMessageReachedMaxAttempts(

@Test
@DisplayName("should throw MessageHasAlreadyReportedException when user makes report again")
@DatabaseSetup(value = "/dataset/report-to-message-dataset.xml", type = DatabaseOperation.INSERT)
@DatabaseSetup(value = "/dataset/report-to-message-dataset.xml", type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/report-to-message-dataset.xml",
type = DatabaseOperation.DELETE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class TopicSubscriberServiceImplTest {
@Test
@DatabaseSetup(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -73,7 +73,7 @@ public void shouldSuccessfullyAddTopicToFavourite_whenUserMarkTopicAsFavourite()
@Test
@DatabaseSetup(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -99,7 +99,7 @@ public void shouldSuccessfullyRemoveTopicFromFavourite_whenUserUnmarkTopicAsFavo
@Test
@DatabaseSetup(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -121,7 +121,7 @@ public void shouldThrowTopicNotFoundException_whenUserMarkTopicAsFavouriteAndTop
@Test
@DatabaseSetup(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -144,7 +144,7 @@ public void shouldThrowTopicNotFoundException_whenUserMarkTopicAsFavouriteAndTop
@Test
@DatabaseSetup(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -167,7 +167,7 @@ public void shouldThrowTopicNotFoundException_whenUserMarkTopicAsFavouriteAndTop
@Test
@DatabaseSetup(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/favourite-topics-of-contact.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -190,7 +190,7 @@ public void shouldThrowTopicNotFoundException_whenUserMarkTopicAsFavouriteAndTop
@Test
@DatabaseSetup(
value = "/dataset/complain-topic-dataset.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/complain-topic-dataset.xml",
type = DatabaseOperation.DELETE)
Expand Down Expand Up @@ -218,7 +218,7 @@ public void shouldSuccessfullyComplainTopic_whenUserComplainTopic() {
@Test
@DatabaseSetup(
value = "/dataset/complain-topic-dataset.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/complain-topic-dataset.xml",
type = DatabaseOperation.DELETE)
Expand All @@ -240,7 +240,7 @@ public void shouldThrowTopicNotFoundException_whenUserComplainTopic() {
@Test
@DatabaseSetup(
value = "/dataset/complain-topic-dataset.xml",
type = DatabaseOperation.INSERT)
type = DatabaseOperation.CLEAN_INSERT)
@DatabaseTearDown(
value = "/dataset/complain-topic-dataset.xml",
type = DatabaseOperation.DELETE)
Expand Down

0 comments on commit 2f4328e

Please sign in to comment.