in src/main/java/com/atlassian/uwc/converters/tikiwiki/TableConverterTest.java [592:703]
public void testManyTablesInContextAndPanel() {
String input = "^\n" +
"Home Site:[http://www.e-spy-software.com/|http://www.e-spy-software.com/]\n" +
"Download Link:[http://www.e-spy-software.com/download.shtml|http://www.e-spy-software.com/download.shtml]\n" +
"\n" +
"||Date|Researcher|Version|What was preexisting in the defs?|Where there any common components?|What did you add to a def or whitelist?|Notes\n" +
"20061108|ED|3.873|UFP 007 Spy|MSComctl, vb, misc microsoft|Installer|None\n" +
"20060907|ED|3.87|UFP 007 Spy|mscomctl, vb5.0 |Installer, running .exe source URL|None\n" +
"03/29/2006|jack|3.85|folder trace - C:\\\\Program Files\\Common Files\\Microsoft Shared\\DAO\\ssdata|ijl11pro.DLL, MSINET.OCX, VB5STKIT.DLL|installer, svchost.exe|added screenies to the wiki page\n" +
"030606|csb|3.81|-|mscomm |isntaller, help file | |\n" +
"022406|DJP|3.83|-|MS Stuff, Intel Jpg Library|Nothing added - complete removal| |\n" +
" | | | | | |\n" +
"||\n" +
"\n" +
"||Date:|1/4/2006\n" +
"Version:|3.8\n" +
"Purchase URL:|http://www.e-spy-software.com/buynow.shtml\n" +
"Purchase Price:|$39.95\n" +
"Functionality:|Time Limit (15 day trial version)\n" +
"Researcher:|CGR\n" +
"Common Components:|\n" +
"To Adds:|installer\n" +
"Notes:|\n" +
"||\n" +
"||Date:|11/29/2005\n" +
"Version:|3.8\n" +
"Purchase URL:|https://www.plimus.com/jsp/buynow.jsp?contractId=1633080\n" +
"Purchase Price:|$39.95\n" +
"Functionality:|Time Limit\n" +
"Researcher:|EHD\n" +
"Common Components:|\n" +
"To Adds:|installer, .lnk, svchost.exe\n" +
"Notes:|\n" +
"||\n" +
"||Date:|10/25/2005\n" +
"Version:|3.73\n" +
"Purchase URL:|[https://www.plimus.com/jsp/buynow.jsp?contractId=1633080]\n" +
"Purchase Price:|$39.95\n" +
"Funcitonality|Trial\n" +
"Researcher:|BJG\n" +
"Common Components:|Microsoft, VB\n" +
"To Adds:|-\n" +
"Notes:|-\n" +
"||\n" +
"||Date:|08/22/2005\n" +
"Version:|3.73\n" +
"Purchase URL:|[https://www.plimus.com/jsp/buynow.jsp?contractId=1633080]\n" +
"Purchase Price:|$39.95\n" +
"Funcitonality|Trial\n" +
"Researcher:|Scott\n" +
"Common Components:|Microsoft, VB\n" +
"To Adds:|Installer\n" +
"Notes:|Folders did not detect correctly even with being in the definition.\n" +
"||\n" +
"^\n" ;
String expected = "^\n" +
"Home Site:[http://www.e-spy-software.com/|http://www.e-spy-software.com/]\n" +
"Download Link:[http://www.e-spy-software.com/download.shtml|" +
"http://www.e-spy-software.com/download.shtml]\n" +
"\n" +
"| Date | Researcher | Version | What was preexisting in the defs? | Where there any common components? | What did you add to a def or whitelist? | Notes |\n" +
"| 20061108 | ED | 3.873 | UFP 007 Spy | MSComctl, vb, misc microsoft | Installer | None |\n" +
"| 20060907 | ED | 3.87 | UFP 007 Spy | mscomctl, vb5.0 | Installer, running .exe source URL | None |\n" +
"| 03/29/2006 | jack | 3.85 | folder trace - C:\\\\Program Files\\Common Files\\Microsoft Shared\\DAO\\ssdata | ijl11pro.DLL, MSINET.OCX, VB5STKIT.DLL | installer, svchost.exe | added screenies to the wiki page |\n" +
"| 030606 | csb | 3.81 | \\- | mscomm | isntaller, help file | |\n" +
"| 022406 | DJP | 3.83 | \\- | MS Stuff, Intel Jpg Library | Nothing added - complete removal | |\n" +
"| | | | | | | |\n" +
"\n" +
"| Date: | 1/4/2006 |\n" +
"| Version: | 3.8 |\n" +
"| Purchase URL: | http://www.e-spy-software.com/buynow.shtml |\n" +
"| Purchase Price: | $39.95 |\n" +
"| Functionality: | Time Limit (15 day trial version) |\n" +
"| Researcher: | CGR |\n" +
"| Common Components: | |\n" +
"| To Adds: | installer |\n" +
"| Notes: | |\n" +
"\n" +
"| Date: | 11/29/2005 |\n" +
"| Version: | 3.8 |\n" +
"| Purchase URL: | https://www.plimus.com/jsp/buynow.jsp?contractId=1633080 |\n" +
"| Purchase Price: | $39.95 |\n" +
"| Functionality: | Time Limit |\n" +
"| Researcher: | EHD |\n" +
"| Common Components: | |\n" +
"| To Adds: | installer, .lnk, svchost.exe |\n" +
"| Notes: | |\n" +
"\n" +
"| Date: | 10/25/2005 |\n" +
"| Version: | 3.73 |\n" +
"| Purchase URL: | [https://www.plimus.com/jsp/buynow.jsp?contractId=1633080] |\n" +
"| Purchase Price: | $39.95 |\n" +
"| Funcitonality | Trial |\n" +
"| Researcher: | BJG |\n" +
"| Common Components: | Microsoft, VB |\n" +
"| To Adds: | \\- |\n" +
"| Notes: | \\- |\n" +
"\n" +
"| Date: | 08/22/2005 |\n" +
"| Version: | 3.73 |\n" +
"| Purchase URL: | [https://www.plimus.com/jsp/buynow.jsp?contractId=1633080] |\n" +
"| Purchase Price: | $39.95 |\n" +
"| Funcitonality | Trial |\n" +
"| Researcher: | Scott |\n" +
"| Common Components: | Microsoft, VB |\n" +
"| To Adds: | Installer |\n" +
"| Notes: | Folders did not detect correctly even with being in the definition. |\n" +
"^\n";
String actual = tester.convertTable(input);
assertNotNull(actual);
assertEquals(expected, actual);
}