Package Test.Package

Source Code of Test.Package.NumberPackages

package Test.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(), 3);
    }
   
    @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(), 12);
    }
}
TOP

Related Classes of Test.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.