Package Package.Files

Examples of Package.Files.ReaderFile


    @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

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

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

            addTupleInCube(path, arrayfiles);
        }
    }

    private void addTupleInCube(String path, ArrayList<String> arrayfiles) throws IOException {
        ReaderFile readerfile;
        AfferenceCoupling afferencecoupling;
        State state;
        Tuple factShip;
        readerfile = new ReaderFile(path);
        afferencecoupling = new AfferenceCoupling(arrayfiles, readerfile);
       
        Context context = buildPackageContext();
        state = buildPackageState(readerfile, afferencecoupling);
        factShip = new Tuple(getCube(DataStoreDefinition.PACKAGE_CUBE), context, state);
View Full Code Here

    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 NumberLineComments() {
    }
   
    @Test
    public void NumberLineComments() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        LineComments numlinescomments = new LineComments(reader);
        assertEquals(numlinescomments.getCount(), 0);
    }
View Full Code Here

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

        assertEquals(numlinescomments.getCount(), 0);
    }
   
    @Test
    public void NumberBlockComments2() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Principal/Parser.java");
        BlockComments numlinescomments = new BlockComments(reader);
        assertEquals(numlinescomments.getCount(), 2);
    }
View Full Code Here

        assertEquals(numlinescomments.getCount(), 2);
    }
   
    @Test
    public void NumberLineComments2() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Principal/Parser.java");
        LineComments numlinescomments = new LineComments(reader);
        assertEquals(numlinescomments.getCount(), 4);
    }
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.