Package Package.Files

Examples of Package.Files.ReaderFile


    public NumberConstructs() {
    }
   
    @Test
    public void NumberConstruc() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Construct numconstruct = new Construct(reader);
        assertEquals(numconstruct.getCount(), 2);
    }
View Full Code Here


   
    public NumberEfferences(){}
   
    @Test
    public void NumberEfferences() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Efference/EfferenceCoupling.java");
        EfferenceCoupling numEfferences = new EfferenceCoupling(reader);
        assertEquals(numEfferences.getCount(), 4);
    }
View Full Code Here

        assertEquals(numEfferences.getCount(), 4);
    }
   
    @Test
    public void NumberEfferences2() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Package/Utils/FilesUtils.java");
        EfferenceCoupling numEfferences = new EfferenceCoupling(reader);
        assertEquals(numEfferences.getCount(), 2);
    }
View Full Code Here

        double percentEffectives = 0.;
        int totalLines = 0;
        int totalEffectives = 0;
        MediaLinesMethods medialinesmethods = null;

        ReaderFile reader = new ReaderFile("src/Class/Classes.java");

        File folder = new File("src");

        FilesFolders numfiles = new FilesFolders(folder);

        Classes numclasses = new Classes(reader);

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

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

        for (String path : arrayfiles) {

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

            reader = new ReaderFile(path);

            LinesEffectives lineseffectives = new LinesEffectives(reader);

            Methods numMethods = new Methods(reader);

            if (numMethods.getCount() > 0) {
                medialinesmethods = new MediaLinesMethods(reader);
            }
           
           
            MediaSizeFiles mediasize = new MediaSizeFiles(folder);

            System.out.println("Numero de ficheros .java en el directorio: " + numfiles.getCount());

            System.out.println("Numero de paquetes efectivos del directorio: " + packages.getCount());

            System.out.println("Numero de clases del fichero: " + numclasses.getCount());
     
            System.out.println("Tamaño total de ficheros del directorio en (bytes): " + mediasize.getSizeTotalFolder() + " bytes");
           
            System.out.println("Tamaño Medio de ficheros del directorio en (bytes): " + mediasize.getCount());

            System.out.println("Numero de lineas: " + reader.getNumLinesFile());

            totalLines += reader.getNumLinesFile();

            System.out.println("Numero de lineas efectivas: " + lineseffectives.getCount());

            totalEffectives += lineseffectives.getCount();
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.