Skip to content

Commit

Permalink
Add class diagram for persistence adapter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenWoltmann committed Jun 22, 2023
1 parent f8dc70f commit cebf4df
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions doc/persistence-tests.plantuml
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

0 comments on commit cebf4df

Please sign in to comment.