-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move in-mem fixture to domain module
* This is to allow unit tests in domain.
- Loading branch information
1 parent
25babb8
commit 50e5bd0
Showing
13 changed files
with
27 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../persistence/inmem/InMemCrudRepository.kt → .../ca/fixtures/inmem/InMemCrudRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tence/inmem/food/InMemCourseRepository.kt → ...tures/inmem/food/InMemCourseRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package co.digamma.ca.persistence.inmem.food | ||
package co.digamma.ca.fixtures.inmem.food | ||
|
||
import co.digamma.ca.domain.api.common.stereotypes.Singleton | ||
import co.digamma.ca.domain.api.food.Course | ||
import co.digamma.ca.domain.spi.food.CourseRepository | ||
import co.digamma.ca.persistence.inmem.InMemCrudRepository | ||
import co.digamma.ca.fixtures.inmem.InMemCrudRepository | ||
|
||
@Singleton | ||
class InMemCourseRepository: InMemCrudRepository<Course>(), CourseRepository |
4 changes: 2 additions & 2 deletions
4
...ence/inmem/food/InMemCuisineRepository.kt → ...ures/inmem/food/InMemCuisineRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package co.digamma.ca.persistence.inmem.food | ||
package co.digamma.ca.fixtures.inmem.food | ||
|
||
import co.digamma.ca.domain.api.common.stereotypes.Singleton | ||
import co.digamma.ca.domain.api.food.Cuisine | ||
import co.digamma.ca.domain.spi.food.CuisineRepository | ||
import co.digamma.ca.persistence.inmem.InMemCrudRepository | ||
import co.digamma.ca.fixtures.inmem.InMemCrudRepository | ||
|
||
@Singleton | ||
class InMemCuisineRepository: InMemCrudRepository<Cuisine>(), CuisineRepository |
4 changes: 2 additions & 2 deletions
4
...istence/inmem/food/InMemDishRepository.kt → ...ixtures/inmem/food/InMemDishRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package co.digamma.ca.persistence.inmem.food | ||
package co.digamma.ca.fixtures.inmem.food | ||
|
||
import co.digamma.ca.domain.api.common.stereotypes.Singleton | ||
import co.digamma.ca.domain.api.food.Dish | ||
import co.digamma.ca.domain.spi.food.DishRepository | ||
import co.digamma.ca.persistence.inmem.InMemCrudRepository | ||
import co.digamma.ca.fixtures.inmem.InMemCrudRepository | ||
|
||
@Singleton | ||
class InMemDishRepository: InMemCrudRepository<Dish>(), DishRepository |
4 changes: 2 additions & 2 deletions
4
...ence/inmem/food/InMemServingRepository.kt → ...ures/inmem/food/InMemServingRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package co.digamma.ca.persistence.inmem.food | ||
package co.digamma.ca.fixtures.inmem.food | ||
|
||
import co.digamma.ca.domain.api.common.stereotypes.Singleton | ||
import co.digamma.ca.domain.api.food.Serving | ||
import co.digamma.ca.domain.spi.food.ServingRepository | ||
import co.digamma.ca.persistence.inmem.InMemCrudRepository | ||
import co.digamma.ca.fixtures.inmem.InMemCrudRepository | ||
|
||
@Singleton | ||
class InMemServingRepository: InMemCrudRepository<Serving>(), ServingRepository |
4 changes: 2 additions & 2 deletions
4
...tence/inmem/media/InMemImageRepository.kt → ...tures/inmem/media/InMemImageRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package co.digamma.ca.persistence.inmem.media | ||
package co.digamma.ca.fixtures.inmem.media | ||
|
||
import co.digamma.ca.domain.api.common.stereotypes.Singleton | ||
import co.digamma.ca.domain.api.media.Image | ||
import co.digamma.ca.domain.spi.media.ImageRepository | ||
import co.digamma.ca.persistence.inmem.InMemCrudRepository | ||
import co.digamma.ca.fixtures.inmem.InMemCrudRepository | ||
|
||
@Singleton | ||
class InMemImageRepository: InMemCrudRepository<Image>(), ImageRepository |
6 changes: 3 additions & 3 deletions
6
...o/digamma/ca/media/ImageRepositoryTest.kt → ...a/suites/media/ImageRepositoryTestBase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...e/inmem/media/InMemImageRepositoryTest.kt → ...s/inmem/media/InMemImageRepositoryTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
backend/sql/src/test/kotlin/co/digamma/ca/persistence/sql/media/SqlImageRepositoryTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package co.digamma.ca.persistence.sql.media | ||
|
||
import co.digamma.ca.media.ImageRepositoryTest | ||
import co.digamma.ca.suites.media.ImageRepositoryTestBase | ||
import org.jooq.DSLContext | ||
import org.junit.jupiter.api.extension.ExtendWith | ||
|
||
|
||
@ExtendWith(PostgreSQLContainerExtension::class) | ||
class SqlImageRepositoryTest(dsl: DSLContext): ImageRepositoryTest() { | ||
class SqlImageRepositoryTest(dsl: DSLContext) : ImageRepositoryTestBase() { | ||
|
||
override val sut = SqlImageRepository(dsl) | ||
} |