Package Methods.ComplexCyclomatic

Examples of Methods.ComplexCyclomatic.ComplexCyclomatic


   
    @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();
            System.out.println(e.getKey() + " " + e.getValue());
        }
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();
            System.out.println(e.getKey() + " " + e.getValue());
        }
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();
            System.out.println(e.getKey() + " " + e.getValue());
        }
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();
            System.out.println(e.getKey() + " " + e.getValue());
        }
View Full Code Here

            state.put(METHODNAME.getName(), Double.parseDouble(me.getValue().toString()));
        }
    }
   
    private State putCyclomaticComplexMethod(ReaderFile reader, State state) throws NumberFormatException, IOException {
        ComplexCyclomatic complex = new ComplexCyclomatic();
        MetricDefinition METHODNAME;
        HashMap list = complex.getListMethodsCyclomaticComplex(reader);
        Set set = list.entrySet();
        Iterator i = set.iterator();
        while (i.hasNext()) {
            Map.Entry me = (Map.Entry) i.next();
            METHODNAME = new MetricDefinition(DataStoreDefinition.CYCLOMATIC_COMPLEXITY + me.getKey().toString());
View Full Code Here

TOP

Related Classes of Methods.ComplexCyclomatic.ComplexCyclomatic

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.