-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark objects as data objects in tests
- Loading branch information
1 parent
0ca6421
commit 7c628cc
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
example/src/main/kotlin/com/github/michaelbull/result/example/model/domain/Event.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.github.michaelbull.result.example.model.domain | ||
|
||
sealed class Event | ||
sealed interface Event | ||
|
||
object Created : Event() | ||
class FirstNameChanged(val old: String, val new: String) : Event() | ||
class LastNameChanged(val old: String, val new: String) : Event() | ||
class EmailAddressChanged(val old: String, val new: String) : Event() | ||
data object Created : Event | ||
data class FirstNameChanged(val old: String, val new: String) : Event | ||
data class LastNameChanged(val old: String, val new: String) : Event | ||
data class EmailAddressChanged(val old: String, val new: String) : Event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters