Package Test.Attribute

Source Code of Test.Attribute.NumberAttributes

package Test.Attribute;

import Methods.Atributtes.Attribute;
import Package.Files.ReaderFile;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import static org.junit.Assert.*;
import org.junit.Test;

public class NumberAttributes {
   
    public NumberAttributes() {
    }
   
    @Test
    public void totalNumberAttributes() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Attribute numAttributes = new Attribute(reader);
        assertEquals(numAttributes.getCount(), 2);
    }
   
    @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));
        }
    }
}
TOP

Related Classes of Test.Attribute.NumberAttributes

TOP
Copyright © 2018 www.massapi.com. 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.