-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add class diagram for persistence adapter tests
- Loading branch information
1 parent
f8dc70f
commit cebf4df
Showing
1 changed file
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@startuml | ||
abstract class AbstractProductRepositoryTest { | ||
- productRepository : ProductRepository | ||
# {abstract} createProductRepository() : ProductRepository | ||
~ test1() | ||
~ test2() | ||
~ test3() | ||
~ {method} ... | ||
} | ||
|
||
abstract class AbstractCartRepositoryTest { | ||
- cartRepository : CartRepository | ||
- productRepository : ProductRepository | ||
# {abstract} createCartRepository() : CartRepository | ||
# {abstract} createProductRepository() : ProductRepository | ||
~ test1() | ||
~ test2() | ||
~ test3() | ||
~ {method} ... | ||
} | ||
|
||
class InMemoryProductRepositoryTest extends AbstractProductRepositoryTest { | ||
# createProductRepository() : ProductRepository | ||
} | ||
class InMemoryCartRepositoryTest extends AbstractCartRepositoryTest { | ||
# createCartRepository() : CartRepository | ||
# createProductRepository() : ProductRepository | ||
} | ||
|
||
class JpaProductRepositoryTest extends AbstractProductRepositoryTest { | ||
- {static} mysql : MySQLContainer | ||
- {static} entityManagerFactory : EntityManagerFactory | ||
# createProductRepository() : ProductRepository | ||
~ {static} startDatabase() | ||
~ {static} stopDatabase() | ||
} | ||
class JpaCartRepositoryTest extends AbstractCartRepositoryTest { | ||
# createCartRepository() : CartRepository | ||
# createProductRepository() : ProductRepository | ||
} | ||
|
||
@enduml |