Package Package

Source Code of Package.NumberPackages

package Package;



import Package.Packages.Packages;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import static org.junit.Assert.*;
import org.junit.Test;

public class NumberPackages {
   
    public NumberPackages() {
    }
   
    @Test
    public void totalNumberPackagesSRC() throws FileNotFoundException, IOException{
        File folder = new File("src");
        Packages numPackages = new Packages(folder);
        assertEquals(numPackages.getCount(), 18);
    }
   
    @Test
    public void NumberPackagesClass() throws FileNotFoundException, IOException{
        File folder = new File("src/Class");
        Packages numPackages = new Packages(folder);
        assertEquals(numPackages.getCount(), 2);
    }
   
    @Test
    public void NumberPackagesMethods() throws FileNotFoundException, IOException{
        File folder = new File("src/Methods");
        Packages numPackages = new Packages(folder);
        assertEquals(numPackages.getCount(), 9);
    }
   
    @Test
    public void totalNumberPackagesTest() throws FileNotFoundException, IOException{
        File folder = new File("test");
        Packages numPackages = new Packages(folder);
        assertEquals(numPackages.getCount(), 10);
    }
}
TOP

Related Classes of Package.NumberPackages

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.