Package Package.Files

Examples of Package.Files.ReaderFile


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


    public NumberParametersMockito() {
    }
   
    @Test
    public void constructMockTest() throws FileNotFoundException, IOException {
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter listParameters = Mockito.mock(Parameter.class);
        Mockito.when(listParameters.getArrayInfo(reader)).thenReturn(new HashMap());
        Assert.assertEquals(new HashMap(), listParameters.getArrayInfo(reader));
    }
View Full Code Here

    public NumberImports() {
    }
   
    @Test
    public void totalNumberClass() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        NumberOfImports numOfImports = new NumberOfImports(reader);
        assertEquals(numOfImports.getCount(), 8);
    }
View Full Code Here

    public NumberParameters() {
    }
   
    @Test
    public void totalNumberParameter() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter numparameters = new Parameter(reader);
        numparameters.getArrayInfo(reader);
        assertEquals(numparameters.getCount(), 10);
    }
View Full Code Here

    }
      
    @Test
    public void NumberParameterByMethod() throws FileNotFoundException, IOException{
        HashMap hm;
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter numparameters = new Parameter(reader);
        hm = numparameters.getArrayInfo(reader);
        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
View Full Code Here

    }
   
    @Test
    public void NumberComplexCyclomatic() throws FileNotFoundException, IOException{
        HashMap hm;
        ReaderFile reader = new ReaderFile("src/Class/Afference/AfferenceCoupling.java");
        ComplexCyclomatic complexcyclomatic = new ComplexCyclomatic();       
        hm = complexcyclomatic.getListMethodsCyclomaticComplex(reader);
        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
View Full Code Here

    }
   
    @Test
    public void NumberComplexCyclomatic2() throws FileNotFoundException, IOException{
        HashMap hm;
        ReaderFile reader = new ReaderFile("src/Methods/ComplexCyclomatic/Conditions/NumberOfAnd.java");
        ComplexCyclomatic complexcyclomatic = new ComplexCyclomatic();       
        hm = complexcyclomatic.getListMethodsCyclomaticComplex(reader);
        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
View Full Code Here

        assertEquals(numClasses.getCount(), 2);
    }
   
    @Test
    public void singleNumberClass() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Afference/AfferenceCoupling.java");
        Classes numClasses = new Classes(reader);
        assertEquals(numClasses.getCount(), 1);
    }
View Full Code Here

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

    public NumberParametersMockito() {
    }
   
    @Test
    public void constructMockTest() throws FileNotFoundException, IOException {
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        Parameter listParameters = Mockito.mock(Parameter.class);
        Mockito.when(listParameters.getArrayInfo(reader)).thenReturn(new HashMap());
        Assert.assertEquals(new HashMap(), listParameters.getArrayInfo(reader));
    }
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.