diff --git a/ktorm-core/src/test/kotlin/org/ktorm/entity/EntityTest.kt b/ktorm-core/src/test/kotlin/org/ktorm/entity/EntityTest.kt index b7c20047..98b1ad04 100644 --- a/ktorm-core/src/test/kotlin/org/ktorm/entity/EntityTest.kt +++ b/ktorm-core/src/test/kotlin/org/ktorm/entity/EntityTest.kt @@ -48,50 +48,6 @@ class EntityTest : BaseTest() { assert(employee.job == "") } - @Test - fun testEntityChangedPropertiesInitializer() { - val employee = Employee { name = "walter" } - println(employee) - - assert(employee.changedProperties.size == 1) - assert(employee.changedProperties.contains("name")) - assert(employee.changedProperties["name"] == null) - } - - @Test - fun testEntityChangedPropertiesSetter() { - val employee = Employee { } - println(employee) - - val oldChangedPropertiesIsEmpty = employee.changedProperties.isEmpty() - - employee.name = "walter" - println(employee) - - assert(oldChangedPropertiesIsEmpty) - assert(employee.changedProperties.size == 1) - assert(employee.changedProperties.contains("name")) - assert(employee.changedProperties["name"] == null) - } - - @Test - fun testEntityChangedPropertiesMultiple() { - val employee = Employee { }.copy() - println(employee) - - val oldChangedPropertiesIsEmpty = employee.changedProperties.isEmpty() - - employee.name = "walter" - println(employee) - employee.name = "vince" - println(employee) - - assert(oldChangedPropertiesIsEmpty) - assert(employee.changedProperties.size == 1) - assert(employee.changedProperties.containsKey("name")) - assert(employee.changedProperties["name"] == null) - } - @Test fun testDefaultMethod() { for (method in Employee::class.java.methods) {