-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- make `RoomReactionsOptions` and `OccupancyOptions` classes instead of objects to improve future backward compatability - remove `LocalDateTime.now()` and associated desugaring dependencies - do not run unit tests for release build type (to avoid running all tests twice)
Showing
8 changed files
with
67 additions
and
17 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
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
30 changes: 30 additions & 0 deletions
30
chat-android/src/test/java/com/ably/chat/RoomOptionTest.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.ably.chat | ||
|
||
import org.junit.Assert.assertEquals | ||
import org.junit.Test | ||
|
||
class RoomOptionTest { | ||
|
||
@Test | ||
fun `default occupancy options should be equal`() { | ||
assertEquals(OccupancyOptions(), OccupancyOptions()) | ||
} | ||
|
||
@Test | ||
fun `default room reaction options should be equal`() { | ||
assertEquals(RoomReactionsOptions(), RoomReactionsOptions()) | ||
} | ||
|
||
@Test | ||
fun `default room options should be equal`() { | ||
assertEquals( | ||
RoomOptions.default, | ||
RoomOptions( | ||
typing = TypingOptions(), | ||
presence = PresenceOptions(), | ||
reactions = RoomReactionsOptions(), | ||
occupancy = OccupancyOptions(), | ||
), | ||
) | ||
} | ||
} |
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
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