void testrestoreSpecialCharacters2() { String input = "this ä is encoded!"; assertEquals("this \u00e4 is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input)); } public void testrestoreSpecialCharacters3() { String input = "this is ½ encoded ; !"; assertEquals("this is \u00bd encoded ; !", HtmlParser.restoreSpecialCharacters(testCharset, input)); } public void testrestoreSpecialCharacters4() { String input = "this is<encoded>!"; assertEquals("this is<encoded>!", HtmlParser.restoreSpecialCharacters(testCharset, input)); } public void testrestoreSpecialCharacters5() { String input = "½ this is  this is ;this is ;this is ;\nthis is ;\nthis is ;"; assertEquals("\u00bd this is \u00a0this is ;this is ;this is ;\nthis is ;\nthis is ;", HtmlParser.restoreSpecialCharacters(testCharset, input));
void testrestoreSpecialCharacters1() { String input = "this ; is encoded!"; assertEquals("this ; is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input)); } public void testrestoreSpecialCharacters2() { String input = "this ä is encoded!"; assertEquals("this \u00e4 is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input)); } public void testrestoreSpecialCharacters3() { String input = "this is ½ encoded ; !"; assertEquals("this is \u00bd encoded ; !", HtmlParser.restoreSpecialCharacters(testCharset, input)); } public void testrestoreSpecialCharacters4() { String input = "this is<encoded>!"; assertEquals("this is<encoded>!", HtmlParser.restoreSpecialCharacters(testCharset, input));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/parser/text/HtmlParserTest.java File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/parser/text/HtmlParserTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testrestoreSpecialCharacters1() {
2
    	String input = "this ; is encoded!";
3
    	
4
    	assertEquals("this ; is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));
5
    }
1
void testrestoreSpecialCharacters2() {
6
    public void testrestoreSpecialCharacters2() {
2
    	String input = "this ä is encoded!";
7
    	String input = "this ä is encoded!";
3
    	
8
    	
4
    	assertEquals("this \u00e4 is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));
9
    	assertEquals("this \u00e4 is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));
5
    }
10
    }
6
    public void testrestoreSpecialCharacters3() {
11
    public void testrestoreSpecialCharacters3() {
7
    	String input = "this is ½ encoded ; !";
12
    	String input = "this is ½ encoded ; !";
8
    	
13
    	
9
    	assertEquals("this is \u00bd encoded ; !", HtmlParser.restoreSpecialCharacters(testCharset, input));
14
    	assertEquals("this is \u00bd encoded ; !", HtmlParser.restoreSpecialCharacters(testCharset, input));
10
    }
15
    }
11
    public void testrestoreSpecialCharacters4() {
16
    public void testrestoreSpecialCharacters4() {
12
    	String input = "this is<encoded>!";
17
    	String input = "this is<encoded>!";
13
    	
18
    	
14
    	assertEquals("this is<encoded>!", HtmlParser.restoreSpecialCharacters(testCharset, input));
19
    	assertEquals("this is<encoded>!", HtmlParser.restoreSpecialCharacters(testCharset, input));
15
    }
20
    
16
    public void testrestoreSpecialCharacters5() {
17
    	String input = "½ this is  this is ;this is ;this is ;\nthis is ;\nthis is ;";
18
    	
19
    	assertEquals("\u00bd this is \u00a0this is ;this is ;this is ;\nthis is ;\nthis is ;", HtmlParser.restoreSpecialCharacters(testCharset, input));
20
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0