public void testMultTables()

in src/main/java/com/atlassian/uwc/converters/dokuwiki/TableRowColSpanConverterTest.java [538:717]


	public void testMultTables() {
		String input, expected, actual;
		input = "<table><tbody>\n" + 
				"<tr>\n" + 
				"<th><p> Heading 1      </p></th>\n" + 
				"<th><p> Heading 2       </p></th>\n" + 
				"<th><p> Heading 3          </p></th>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 1 Col 1    </p></td>\n" + 
				"<td><p> Row 1 Col 2     </p></td>\n" + 
				"<td><p> Row 1 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 2 Col 1    </p></td>\n" + 
				"<td><p> some colspan (note the double pipe) ::UWCTOKENCOLSPANS:2::</p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 3 Col 1    </p></td>\n" + 
				"<td><p> Row 3 Col 2     </p></td>\n" + 
				"<td><p> Row 3 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 4 Col 1    </p></td>\n" + 
				"<td><p> this cell spans vertically ::UWCTOKENROWSPANS:3::</p></td>\n" + 
				"<td><p> Row 4 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 5 Col 1    </p></td>\n" + 
				"<td><p> :::                        </p></td>\n" + 
				"<td><p> Row 5 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 6 Col 1    </p></td>\n" + 
				"<td><p> :::                        </p></td>\n" + 
				"<td><p> Row 6 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 7 Col 1    </p></td>\n" + 
				"<td><p> Row 7 Col 2     </p></td>\n" + 
				"<td><p> Row 7 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 8 some colspan (note the double pipe) ::UWCTOKENCOLSPANS:3::</p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 9 Col 1    ::UWCTOKENROWSPANS:3::</p></td>\n" + 
				"<td><p> Row 9 Col 2     </p></td>\n" + 
				"<td><p> Row 9 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> :::                        </p></td>\n" + 
				"<td><p> Row 10 Col 2        ::UWCTOKENCOLSPANS:2::</p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> :::                        </p></td>\n" + 
				"<td><p> Row 10 Col 2        ::UWCTOKENCOLSPANS:2::</p></td>\n" + 
				"</tr>\n" + 
				"</tbody></table>\n" + 
				"\n" + 
				"\n" + 
				"\n" +
				"<table><tbody>\n" + 
				"<tr>\n" + 
				"<th><p> Heading 1      </p></th>\n" + 
				"<th><p> Heading 2       </p></th>\n" + 
				"<th><p> Heading 3          </p></th>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 1 Col 1    </p></td>\n" + 
				"<td><p> Row 1 Col 2     ::UWCTOKENROWSPANS:4::</p></td>\n" + 
				"<td><p> Row 1 Col 3        ::UWCTOKENROWSPANS:3::</p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 2 Col 1    </p></td>\n" + 
				"<td><p> ::: </p></td>\n" + 
				"<td><p> ::: </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 3 Col 1    </p></td>\n" + 
				"<td><p> ::: </p></td>\n" + 
				"<td><p> ::: </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 4 Col 1    </p></td>\n" + 
				"<td><p> ::: </p></td>\n" + 
				"<td><p> Row 4 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"</tbody></table>\n" + 
				"";
		expected = "<table><tbody>\n" + 
				"<tr>\n" + 
				"<th><p> Heading 1      </p></th>\n" + 
				"<th><p> Heading 2       </p></th>\n" + 
				"<th><p> Heading 3          </p></th>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 1 Col 1    </p></td>\n" + 
				"<td><p> Row 1 Col 2     </p></td>\n" + 
				"<td><p> Row 1 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 2 Col 1    </p></td>\n" + 
				"<td colspan='2'><p> some colspan (note the double pipe) </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 3 Col 1    </p></td>\n" + 
				"<td><p> Row 3 Col 2     </p></td>\n" + 
				"<td><p> Row 3 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 4 Col 1    </p></td>\n" + 
				"<td rowspan='3'><p> this cell spans vertically </p></td>\n" + 
				"<td><p> Row 4 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 5 Col 1    </p></td>\n" + 
				"\n" + 
				"<td><p> Row 5 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 6 Col 1    </p></td>\n" + 
				"\n" + 
				"<td><p> Row 6 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 7 Col 1    </p></td>\n" + 
				"<td><p> Row 7 Col 2     </p></td>\n" + 
				"<td><p> Row 7 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td colspan='3'><p> Row 8 some colspan (note the double pipe) </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td rowspan='3'><p> Row 9 Col 1    </p></td>\n" + 
				"<td><p> Row 9 Col 2     </p></td>\n" + 
				"<td><p> Row 9 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"\n" + 
				"<td colspan='2'><p> Row 10 Col 2        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"\n" + 
				"<td colspan='2'><p> Row 10 Col 2        </p></td>\n" + 
				"</tr>\n" + 
				"</tbody></table>\n" +
				"\n\n\n" +
				"<table><tbody>\n" + 
				"<tr>\n" + 
				"<th><p> Heading 1      </p></th>\n" + 
				"<th><p> Heading 2       </p></th>\n" + 
				"<th><p> Heading 3          </p></th>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 1 Col 1    </p></td>\n" + 
				"<td rowspan='4'><p> Row 1 Col 2     </p></td>\n" + 
				"<td rowspan='3'><p> Row 1 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 2 Col 1    </p></td>\n" + 
				"\n\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 3 Col 1    </p></td>\n" + 
				"\n\n" + 
				"</tr>\n" + 
				"<tr>\n" + 
				"<td><p> Row 4 Col 1    </p></td>\n" + 
				"\n" + 
				"<td><p> Row 4 Col 3        </p></td>\n" + 
				"</tr>\n" + 
				"</tbody></table>\n";
		Page page = new Page(null);
		page.setOriginalText(input);
		tester.convert(page);
		actual = page.getConvertedText();
		assertNotNull(actual);
		assertEquals(expected, actual);
	}