Package Package.Files

Examples of Package.Files.ReaderFile


    public void ResultTestComposite() throws FileNotFoundException, IOException{

        Attribute atributes;
        MediaLinesMethods medialinesmethods = null;

        ReaderFile readerfile = new ReaderFile("src/Package/Files/FilesFolders.java");
        ReaderMethod readermethod = new ReaderMethod(readerfile, "");

        File folder = new File("src");

        FilesFolders numfiles = new FilesFolders(folder);

        Classes numclasses = new Classes(readerfile);

        Packages packages = new Packages(new File("src"));

        ArrayList<String> arrayfiles = numfiles.getArrayListFiles();

        for (String path : arrayfiles) {

            System.out.println("-------" + path + "-------");

            readerfile = new ReaderFile(path);

            Metric composite = new Composite();

            Metric clases = new Classes(readerfile);
            Metric methods = new Methods(readerfile);
View Full Code Here


    public NumberMethods() {
    }
   
    @Test
    public void NumberMethods() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Methods nummethods = new Methods(reader);
        assertEquals(nummethods.getCount(), 11);
    }
View Full Code Here

        assertEquals(numClasses.getCount(), 2);
    }
   
    @Test
    public void singleNumberClass() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Afference/AfferenceCoupling.java");
        Classes numClasses = new Classes(reader);
        assertEquals(numClasses.getCount(), 1);
    }
View Full Code Here

        assertEquals(numClasses.getCount(), 1);
    }
   
    @Test
    public void singleNumberClass2() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Classes numClasses = new Classes(reader);
        assertEquals(numClasses.getCount(), 1);
    }
View Full Code Here

    public NumberMethods() {
    }
   
    @Test
    public void NumberMethods() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Methods nummethods = new Methods(reader);
        assertEquals(nummethods.getCount(), 11);
    }
View Full Code Here

    public NumberImports() {
    }
   
    @Test
    public void totalNumberClass() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        NumberOfImports numOfImports = new NumberOfImports(reader);
        assertEquals(numOfImports.getCount(), 8);
    }
View Full Code Here

    public NumberParameters() {
    }
   
    @Test
    public void totalNumberParameter() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter numparameters = new Parameter(reader);
        numparameters.getArrayInfo(reader);
        assertEquals(numparameters.getCount(), 10);
    }
View Full Code Here

    }
      
    @Test
    public void NumberParameterByMethod() throws FileNotFoundException, IOException{
        HashMap hm;
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter numparameters = new Parameter(reader);
        hm = numparameters.getArrayInfo(reader);
        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
View Full Code Here

    }
   
    @Test
    public void NumberComplexCyclomatic() throws FileNotFoundException, IOException{
        HashMap hm;
        ReaderFile reader = new ReaderFile("src/Class/Afference/AfferenceCoupling.java");
        ComplexCyclomatic complexcyclomatic = new ComplexCyclomatic();       
        hm = complexcyclomatic.getListMethodsCyclomaticComplex(reader);
        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
View Full Code Here

    }
   
    @Test
    public void NumberComplexCyclomatic2() throws FileNotFoundException, IOException{
        HashMap hm;
        ReaderFile reader = new ReaderFile("src/Methods/ComplexCyclomatic/Conditions/NumberOfAnd.java");
        ComplexCyclomatic complexcyclomatic = new ComplexCyclomatic();       
        hm = complexcyclomatic.getListMethodsCyclomaticComplex(reader);
        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
View Full Code Here

TOP

Related Classes of Package.Files.ReaderFile

Copyright © 2018 www.massapicom. 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.