mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-08 06:01:07 +01:00
Return empty map in SpoilerElement.getSpoilers() instead of null
This commit is contained in:
parent
4292659f22
commit
bde6239c26
2 changed files with 3 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ public class SpoilerTest extends SmackTestSuite {
|
|||
@Test
|
||||
public void getSpoilersTest() {
|
||||
Message m = new Message();
|
||||
assertNull(SpoilerElement.getSpoilers(m));
|
||||
assertTrue(SpoilerElement.getSpoilers(m).isEmpty());
|
||||
|
||||
SpoilerElement.addSpoiler(m);
|
||||
assertTrue(SpoilerElement.containsSpoiler(m));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue