Package Lines

Source Code of Lines.NumberLineComments

package Lines;



import Methods.Comments.BlockComments;
import Methods.Lines.LineComments;
import Package.Files.ReaderFile;
import java.io.FileNotFoundException;
import java.io.IOException;
import static org.junit.Assert.*;
import org.junit.Test;

public class NumberLineComments {
   
    public NumberLineComments() {
    }
   
    @Test
    public void NumberLineComments() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        LineComments numlinescomments = new LineComments(reader);
        assertEquals(numlinescomments.getCount(), 0);
    }
   
    @Test
    public void NumberBlockComments() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Class/Classes.java");
        BlockComments numlinescomments = new BlockComments(reader);
        assertEquals(numlinescomments.getCount(), 0);
    }
   
    @Test
    public void NumberBlockComments2() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Principal/Parser.java");
        BlockComments numlinescomments = new BlockComments(reader);
        assertEquals(numlinescomments.getCount(), 2);
    }
   
    @Test
    public void NumberLineComments2() throws FileNotFoundException, IOException{
        ReaderFile reader = new ReaderFile("src/Principal/Parser.java");
        LineComments numlinescomments = new LineComments(reader);
        assertEquals(numlinescomments.getCount(), 4);
    }
}
TOP

Related Classes of Lines.NumberLineComments

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.