mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-05 12:41:08 +01:00
Init Base64 test encoder for unit-tests
The previous approach with
testCompile project("smack-java7")
was flawed. Instead we setup a Base64 encoder especially for the unit
tests now.
This commit is contained in:
parent
982b49106a
commit
184604bba2
5 changed files with 107 additions and 2 deletions
|
|
@ -20,13 +20,20 @@ import static org.junit.Assert.assertTrue;
|
|||
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.jivesoftware.smack.test.util.SmackTestSuite;
|
||||
import org.jivesoftware.smack.util.stringencoder.Base64;
|
||||
import org.jivesoftware.smackx.vcardtemp.packet.VCard;
|
||||
import org.jivesoftware.smackx.vcardtemp.provider.VCardProvider;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class VCardUnitTest extends InitExtensions {
|
||||
|
||||
@Before
|
||||
public void initSmackTestSuite() {
|
||||
SmackTestSuite.init();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoWorkHomeSpecifier_EMAIL() throws Throwable {
|
||||
VCard card = VCardProvider.createVCardFromXML("<vcard><EMAIL><USERID>foo@fee.www.bar</USERID></EMAIL></vcard>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue