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)); }
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)); }
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() {
1
void testrestoreSpecialCharacters4() {
2
    	String input = "this ; is encoded!";
2
    	String input = "this is<encoded>!";
3
    	
3
    	
4
    	assertEquals("this ; is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));
4
    	assertEquals("this is<encoded>!", HtmlParser.restoreSpecialCharacters(testCharset, input));
5
    }
5
    }
6
    public void testrestoreSpecialCharacters2() {
6
    public void testrestoreSpecialCharacters5() {
7
    	String input = "this ä is encoded!";
7
    	String input = "½ this is  this is ;this is ;this is ;\nthis is ;\nthis is ;";
8
    	
8
    	
9
    	assertEquals("this \u00e4 is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));
9
    	assertEquals("\u00bd this is \u00a0this is ;this is ;this is ;\nthis is ;\nthis is ;", HtmlParser.restoreSpecialCharacters(testCharset, input));
10
    }
10
    }
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