API 1.0.53 customer.life_long

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-11-05 18:53:36 +01:00
parent ca0312746e
commit 0050aa206d
7 changed files with 17 additions and 3 deletions
@@ -31,6 +31,7 @@ data class Customer (
@Expose var firebaseRegToken: String? = null,
@Expose var lang: String? = null,
@Expose var phone: String? = null,
@Expose var lifeLong: Int? = null,
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Expose var customerId: Long = 0,
)
@@ -17,6 +17,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.52
application.version=1.0.53
jwt.secret=aitrainer
+1 -1
View File
@@ -17,7 +17,7 @@ logging.config=classpath:logback-spring.xml
logging.file=logs
# if the database structure has been changed, increment this version number
application.version=1.0.52
application.version=1.0.53
jwt.secret=aitrainer
jasypt.encryptor.password=Tibor
@@ -77,6 +77,7 @@ class AppCustomerPackageTest {
assertEquals(customer.firebaseRegToken, "123456789asdfghjkl")
assertEquals(customer.lang!!.uppercase(), "HU")
assertEquals(customer.phone, "123456")
assertEquals(customer.lifeLong, 1)
}
record[0] == Exercises::class.simpleName -> {
val exercisesJson: String = record[1]
@@ -116,6 +116,7 @@ class CustomerTests {
customer.sportId = 2
customer.firebaseRegToken = "123456789asdfghjkl"
customer.phone = "123456"
customer.lifeLong = 1
var updatedCustomer = customerRepository.save(customer)
@@ -128,6 +129,7 @@ class CustomerTests {
assertEquals(updatedCustomer.emailSubscription, 1)
assertEquals(updatedCustomer.firebaseRegToken, "123456789asdfghjkl")
assertEquals(updatedCustomer.phone, "123456")
assertEquals(updatedCustomer.lifeLong, 1)
customer.email = "sw@andio.biz"