Add unit test for wetter.com state
[rhynodge.git] / src / main / kotlin / net / pterodactylus / rhynodge / webpages / weather / wettercom / WetterComState.kt
index 06411cf..f14337f 100644 (file)
@@ -16,4 +16,9 @@ class WetterComState(val dateTime: LocalDateTime) : AbstractState(true) {
         (hours as MutableList<HourState>).add(hourState)
     }
 
+    override fun equals(other: Any?): Boolean {
+        other as? WetterComState ?: return false
+        return (dateTime == other.dateTime) and (hours == other.hours)
+    }
+
 }