"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/java/com/google/zxing/client/result/AddressBookParsedResultTestCase.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

AddressBookParsedResultTestCase.java  (zxing-zxing-3.4.1):AddressBookParsedResultTestCase.java  (zxing-zxing-3.5.0)
skipping to change at line 33 skipping to change at line 33
/** /**
* Tests {@link AddressBookParsedResult}. * Tests {@link AddressBookParsedResult}.
* *
* @author Sean Owen * @author Sean Owen
*/ */
public final class AddressBookParsedResultTestCase extends Assert { public final class AddressBookParsedResultTestCase extends Assert {
@Test @Test
public void testAddressBookDocomo() { public void testAddressBookDocomo() {
doTest("MECARD:N:Sean Owen;;", null, new String[] {"Sean Owen"}, null, null, doTest("MECARD:N:Sean Owen;;", null, new String[] {"Sean Owen"},
null, null, null, null, null, null, null); null, null, null, null, null, null, null, null, null);
doTest("MECARD:NOTE:ZXing Team;N:Sean Owen;URL:google.com;EMAIL:srowen@examp le.org;;", doTest("MECARD:NOTE:ZXing Team;N:Sean Owen;URL:google.com;EMAIL:srowen@examp le.org;;",
null, new String[] {"Sean Owen"}, null, null, new String[] {"srowen@exam ple.org"}, null, null, null, null, new String[] {"Sean Owen"}, null, null, new String[] {"srowen@exam ple.org"}, null, null, null,
new String[] {"google.com"}, null, "ZXing Team"); new String[] {"google.com"}, null, "ZXing Team");
} }
@Test @Test
public void testAddressBookAU() { public void testAddressBookAU() {
doTest("MEMORY:foo\r\nNAME1:Sean\r\nTEL1:+12125551212\r\n", doTest("MEMORY:foo\r\nNAME1:Sean\r\nTEL1:+12125551212\r\n",
null, new String[] {"Sean"}, null, null, null, new String[] {"+121255512 12"}, null, null, null, null, "foo"); null, new String[] {"Sean"}, null, null, null, new String[] {"+121255512 12"}, null, null, null, null, "foo");
} }
@Test @Test
public void testVCard() { public void testVCard() {
doTest("BEGIN:VCARD\r\nADR;HOME:123 Main St\r\nVERSION:2.1\r\nN:Owen;Sean\r\ nEND:VCARD", doTest("BEGIN:VCARD\r\nADR;HOME:123 Main St\r\nVERSION:2.1\r\nN:Owen;Sean\r\ nEND:VCARD",
null, new String[] {"Sean Owen"}, null, new String[] {"123 Main St"}, null, new String[] {"Sean Owen"}, null, new String[] {"123 Main St"},
null, null, null, null, null, null, null); null, null, null, null, null, null, null);
} }
@Test @Test
public void testVCardFullN() { public void testVCardFullN() {
doTest("BEGIN:VCARD\r\nVERSION:2.1\r\nN:Owen;Sean;T;Mr.;Esq.\r\nEND:VCARD", doTest("BEGIN:VCARD\r\nVERSION:2.1\r\nN:Owen;Sean;T;Mr.;Esq.\r\nEND:VCARD",
null, new String[] {"Mr. Sean T Owen Esq."}, null, null, null, null, null, null, null, null, null); null, new String[] {"Mr. Sean T Owen Esq."}, null, null, null, null, null, null, null, null, null);
} }
@Test @Test
public void testVCardFullN2() { public void testVCardFullN2() {
skipping to change at line 72 skipping to change at line 74
@Test @Test
public void testVCardFullN3() { public void testVCardFullN3() {
doTest("BEGIN:VCARD\r\nVERSION:2.1\r\nN:;Sean;;;\r\nEND:VCARD", doTest("BEGIN:VCARD\r\nVERSION:2.1\r\nN:;Sean;;;\r\nEND:VCARD",
null, new String[] {"Sean"}, null, null, null, null, null, null, null , null, null); null, new String[] {"Sean"}, null, null, null, null, null, null, null , null, null);
} }
@Test @Test
public void testVCardCaseInsensitive() { public void testVCardCaseInsensitive() {
doTest("begin:vcard\r\nadr;HOME:123 Main St\r\nVersion:2.1\r\nn:Owen;Sean\r\ nEND:VCARD", doTest("begin:vcard\r\nadr;HOME:123 Main St\r\nVersion:2.1\r\nn:Owen;Sean\r\ nEND:VCARD",
null, new String[] {"Sean Owen"}, null, new String[] {"123 Main St"}, null, new String[] {"Sean Owen"}, null, new String[] {"123 Main St"},
null, null, null, null, null, null, null); null, null, null, null, null, null, null);
} }
@Test @Test
public void testEscapedVCard() { public void testEscapedVCard() {
doTest("BEGIN:VCARD\r\nADR;HOME:123\\;\\\\ Main\\, St\\nHome\r\nVERSION:2.1\ r\nN:Owen;Sean\r\nEND:VCARD", doTest("BEGIN:VCARD\r\nADR;HOME:123\\;\\\\ Main\\, St\\nHome\r\nVERSION:2.1\ r\nN:Owen;Sean\r\nEND:VCARD",
null, new String[] {"Sean Owen"}, null, new String[] {"123;\\ Main, S null, new String[] {"Sean Owen"}, null, new String[] {"123;\\ Main, S
t\nHome"}, null, null, null, null, null, null, null); t\nHome"},
null, null, null, null, null, null, null);
} }
@Test @Test
public void testBizcard() { public void testBizcard() {
doTest("BIZCARD:N:Sean;X:Owen;C:Google;A:123 Main St;M:+12125551212;E:srowen @example.org;", doTest("BIZCARD:N:Sean;X:Owen;C:Google;A:123 Main St;M:+12125551212;E:srowen @example.org;",
null, new String[] {"Sean Owen"}, null, new String[] {"123 Main St"}, ne w String[] {"srowen@example.org"}, null, new String[] {"Sean Owen"}, null, new String[] {"123 Main St"}, ne w String[] {"srowen@example.org"},
new String[] {"+12125551212"}, null, "Google", null, null, null); new String[] {"+12125551212"}, null, "Google", null, null, null);
} }
@Test @Test
 End of changes. 4 change blocks. 
8 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)