Package Test.Afference

Source Code of Test.Afference.NumberAfferences

package Test.Afference;

import Class.Afference.AfferenceCoupling;
import Package.Files.FilesFolders;
import Package.Files.ReaderFile;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import static org.junit.Assert.*;
import org.junit.Test;

public class NumberAfferences {
   
    public NumberAfferences() {
    }
   
    @Test
    public void NumberAfferences() throws FileNotFoundException, IOException{
        File folder = new File("src/");
        FilesFolders numfiles = new FilesFolders(folder);
        ArrayList<String> arrayfiles = numfiles.getArrayListFiles();
        ReaderFile reader = new ReaderFile("src/Class/Afference/AfferenceCoupling.java");
        AfferenceCoupling numAfferences = new AfferenceCoupling(arrayfiles, reader);
        assertEquals(numAfferences.getCount(), 1);
    }
   
    @Test
    public void NumberAfferences2() throws FileNotFoundException, IOException{
        File folder = new File("src/");
        FilesFolders numfiles = new FilesFolders(folder);
        ArrayList<String> arrayfiles = numfiles.getArrayListFiles();
        ReaderFile reader = new ReaderFile("src/Package/Utils/FilesUtils.java");
        AfferenceCoupling numAfferences = new AfferenceCoupling(arrayfiles, reader);
        assertEquals(numAfferences.getCount(), 17);
    }
}
TOP

Related Classes of Test.Afference.NumberAfferences

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.