Package Methods.Atributtes

Examples of Methods.Atributtes.Attribute


    }
   
    @Test
    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);
            Metric lineseffectives = new LinesEffectives(readerfile);
            Metric lines = new Lines(readerfile);
            atributes = new Attribute(readerfile);
            Metric construct = new Construct(readerfile);
            Metric parameters = new Parameter(readerfile);
            parameters.getArrayInfo(readerfile);
            Metric numfor = new NumberOfFor(readermethod);
            Metric numif = new NumberOfIf(readermethod);
View Full Code Here


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

    }
   
    @Test
    public void NumberAttributesByMethods() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        ArrayList<Integer> listNumberAttributes = new ArrayList();
        listNumberAttributes = numAttributes.AttributeForMethodo();
       
        for(int a=0; a<listNumberAttributes.size(); a++){
            System.out.println(listNumberAttributes.get(a));
        }
    }
View Full Code Here

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

    }
   
    @Test
    public void NumberAttributesByMethods() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        ArrayList<Integer> listNumberAttributes = new ArrayList();
        listNumberAttributes = numAttributes.AttributeForMethodo();
       
        for(int a=0; a<listNumberAttributes.size(); a++){
            System.out.println(listNumberAttributes.get(a));
        }
    }
View Full Code Here

    }
   
    @Test
    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);
            Metric lineseffectives = new LinesEffectives(readerfile);
            Metric lines = new Lines(readerfile);
            atributes = new Attribute(readerfile);
            Metric construct = new Construct(readerfile);
            Metric parameters = new Parameter(readerfile);
            parameters.getArrayInfo(readerfile);
            Metric numfor = new NumberOfFor(readermethod);
            Metric numif = new NumberOfIf(readermethod);
View Full Code Here

        return metricdefinition;
    }
   
    private Metric[] initializeMetricsClass(ReaderFile reader, AfferenceCoupling afference) throws IOException {
        Metric metrics[] = {new Lines(reader), new LinesEffectives(reader), new Construct(reader), new Classes(reader),
            new Attribute(reader), new Methods(reader), new EfferenceCoupling(reader), afference };
        return metrics;
    }
View Full Code Here

TOP

Related Classes of Methods.Atributtes.Attribute

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.