/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.bsc.maven.plugin.processor;

import org.junit.Assert;
import org.junit.Test;
import org.hamcrest.core.*;
/**
 *
 * @author softphone
 */
public class ProcessorTest {
 
    
    @Test
    public void testDuplicatePath() {
       
        String homeFolder = System.getProperty("user.home");
        
        java.io.File f1 = new java.io.File( homeFolder );
        
        java.io.File f2 = new java.io.File( homeFolder );
        
        java.io.File f3 = new java.io.File( homeFolder, ".m2" );

        java.util.Set<java.io.File> fileSet = new java.util.HashSet<java.io.File>();
        
        
        fileSet.add( f1 );
        fileSet.add( f2 );
        
        
        Assert.assertThat( fileSet.size(), IsEqual.equalTo(1) );

        fileSet.add( f2 );
        fileSet.add(f3);
        
        Assert.assertThat( fileSet.size(), IsEqual.equalTo(2) );
        
    }
}

@@ -273,16 +273,403 @@
 est %7B%0A %0A
+    @Test%0A    public void compareFile() %7B%0A    %0A        final java.io.File f = new java.io.File( %22target/test-classes%22);%0A        final java.io.File f2 = new java.io.File( %22target/classes%22);%0A        %0A        Assert.assertThat( f.equals(f2), Is.is(false));%0A%0A        final java.io.File f3 = new java.io.File( %22target/classes%22);%0A%0A        Assert.assertThat( f3.equals(f2), Is.is(true));%0A    %7D%0A
     %0A   

update unit test