Package Package.Files

Examples of Package.Files.FilesFolders


    }
   
    @Test
    public void totalNumberClass() throws FileNotFoundException, IOException{
        File folder = new File("src");
        FilesFolders numClasses = new FilesFolders(folder);
        assertEquals(numClasses.getCount(), 57);
    }
View Full Code Here


    }
   
    @Test
    public void NumberClassInPackageClass() throws FileNotFoundException, IOException{
        File folder = new File("src/Class");
        FilesFolders numClasses = new FilesFolders(folder);
        assertEquals(numClasses.getCount(), 5);
    }
View Full Code Here

    }
   
    @Test
    public void NumberClassInPackageClassAfference() throws FileNotFoundException, IOException{
        File folder = new File("src/Class/Afference");
        FilesFolders numClasses = new FilesFolders(folder);
        assertEquals(numClasses.getCount(), 2);
    }
View Full Code Here

    }
   
    @Test
    public void totalNumberClass() throws FileNotFoundException, IOException{
        File folder = new File("src");
        FilesFolders numClasses = new FilesFolders(folder);
        assertEquals(numClasses.getCount(), 56);
    }
View Full Code Here

    }
   
    @Test
    public void NumberClassInPackageClass() throws FileNotFoundException, IOException{
        File folder = new File("src/Class");
        FilesFolders numClasses = new FilesFolders(folder);
        assertEquals(numClasses.getCount(), 6);
    }
View Full Code Here

    }
   
    @Test
    public void NumberClassInPackageClassAfference() throws FileNotFoundException, IOException{
        File folder = new File("src/Class/Afference");
        FilesFolders numClasses = new FilesFolders(folder);
        assertEquals(numClasses.getCount(), 2);
    }
View Full Code Here

    }
   
    @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);
    }
View Full Code Here

    }
   
    @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);
    }
View Full Code Here

        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());
     
View Full Code Here

        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 + "-------");
View Full Code Here

TOP

Related Classes of Package.Files.FilesFolders

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.