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