public void testAddSetup()

in src/main/java/com/atlassian/uwc/converters/jspwiki/TabConverterTest.java [157:260]


	public void testAddSetup() {
		String input, expected, actual;
		input = "testing";
		expected = input;
		actual = tester.addSetup(input);
		assertNotNull(actual);
		assertEquals(expected, actual);
		
		input = "{composition-setup}";
		expected = input;
		actual = tester.addSetup(input);
		assertNotNull(actual);
		assertEquals(expected, actual);
		
		input = "testing 123\n" +
				"{composition-setup}" +
				"foobar";
		expected = input;
		actual = tester.addSetup(input);
		assertNotNull(actual);
		assertEquals(expected, actual);
		
		input = "%%tabbedSection";
		expected = "{composition-setup}\n" + input;
		actual = tester.addSetup(input);
		assertNotNull(actual);
		assertEquals(expected, actual);
		
		input = "before\n" +
				"%%tabbedSection";
		expected = "before\n" +
				"{composition-setup}\n" +
				"%%tabbedSection";
		actual = tester.addSetup(input);
		assertNotNull(actual);
		assertEquals(expected, actual);
		
		input = "one two three\n" +
				"%%tabbedSection\n" +
				"%%tab-foo\n" + 
				"abc" +
				"/%\n" +
				"\n" +
				"\n" +
				"%%tab-bar\n" +
				"def\n" +
				"/%\n" +
				"\n" +
				"\n" +
				"\n" +
				"/%" +
				"\n" +
				"testing\n" +
				"%%tabbedSection\n" +
				"%%tab-foo\n" + 
				"abc" +
				"/%\n" +
				"\n" +
				"\n" +
				"%%tab-bar\n" +
				"def\n" +
				"/%\n" +
				"\n" +
				"\n" +
				"\n" +
				"/%" +
				"\n" +
				"testing\n";
		expected = "one two three\n" +
				"{composition-setup}\n" +
				"%%tabbedSection\n" +
				"%%tab-foo\n" + 
				"abc" +
				"/%\n" +
				"\n" +
				"\n" +
				"%%tab-bar\n" +
				"def\n" +
				"/%\n" +
				"\n" +
				"\n" +
				"\n" +
				"/%" +
				"\n" +
				"testing\n" +
				"%%tabbedSection\n" +
				"%%tab-foo\n" + 
				"abc" +
				"/%\n" +
				"\n" +
				"\n" +
				"%%tab-bar\n" +
				"def\n" +
				"/%\n" +
				"\n" +
				"\n" +
				"\n" +
				"/%" +
				"\n" +
				"testing\n";
		actual = tester.addSetup(input);
		assertNotNull(actual);
		assertEquals(expected, actual);
	}