API 1.0.22 Product app_version, sort, product_set
This commit is contained in:
@@ -18,6 +18,9 @@ data class Product (
|
||||
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) @get: NonNull var productId: Int,
|
||||
@get: NotBlank var name: String = "",
|
||||
@get: NotBlank var description: String = "",
|
||||
@get: NonNull var app_version: String? = null,
|
||||
@get: NonNull var product_set: Int? = null,
|
||||
@get: NonNull var sort: Int? = null,
|
||||
@get: NonNull var type: String? = null,
|
||||
@get: NonNull var validFrom: String? = null,
|
||||
@get: NonNull var validTo: String? = null,
|
||||
|
||||
@@ -16,6 +16,6 @@ logging.config=classpath:logback-spring.xml
|
||||
logging.file=logs
|
||||
|
||||
# if the database structure has been changed, increment this version number
|
||||
application.version=1.0.21
|
||||
application.version=1.0.22
|
||||
|
||||
jwt.secret=aitrainer
|
||||
@@ -16,6 +16,6 @@ logging.config=classpath:logback-spring.xml
|
||||
logging.file=logs
|
||||
|
||||
# if the database structure has been changed, increment this version number
|
||||
application.version=1.0.21
|
||||
application.version=1.0.22
|
||||
|
||||
jwt.secret=aitrainer
|
||||
@@ -26,12 +26,15 @@ class ProductTesting {
|
||||
|
||||
assertTrue(products is List)
|
||||
assertTrue(products!!.isNotEmpty())
|
||||
assertEquals(products.size, 12)
|
||||
assertEquals(products.size, 18)
|
||||
assertEquals(products[0].name, "Subscription A")
|
||||
assertEquals(products[0].productIdIos, "p_ios_1")
|
||||
assertEquals(products[0].productIdAndroid, "p_android_1")
|
||||
assertEquals(products[0].priceIos, 990.0)
|
||||
assertEquals(products[0].priceAndroid, 970.0)
|
||||
assertEquals(products[0].app_version, "wt")
|
||||
assertEquals(products[0].product_set, 1)
|
||||
assertEquals(products[0].sort, 3)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user