-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SPARK-2341 Enable all providers and download a list
- Loading branch information
Showing
2 changed files
with
93 additions
and
18 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
22 changes: 22 additions & 0 deletions
22
core/src/test/java/org/jivesoftware/XmppProvidersTest.java
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,22 @@ | ||
package org.jivesoftware; | ||
|
||
import org.junit.Test; | ||
|
||
import java.util.List; | ||
|
||
import static java.util.Arrays.asList; | ||
import static org.junit.Assert.assertEquals; | ||
|
||
public class XmppProvidersTest { | ||
|
||
@Test | ||
public void testParseProvidersJson() { | ||
List<String> providers = XmppProviders.parseProvidersJson("[\n" + | ||
" \"07f.de\",\n" + | ||
" \"404.city\",\n" + | ||
" \"5222.de\"" + | ||
"]"); | ||
assertEquals(asList("07f.de", "404.city", "5222.de"), providers); | ||
} | ||
|
||
} |