Analysis of Class : org.junit.internal.runners.TestClass (Includes summary list of methods in class) Home

Dashboard for Class : org.junit.internal.runners.TestClass
Cyclomatic Complexity

Summary of TestClass
FeatureNumberValues
NameTestClass-
Number of Methods12-
LCOM0.64-
Average Cyclomatic Complexity1.92-
Number of Statements56-
Halstead Cumulative Bugs0.62-
Halstead Effort24624.92-
UnWeighted Class Size13-
Instance Variables1fClass (java.lang.Class)
Imported Packages11java.lang.annotation.Annotation
java.lang.reflect.Constructor
java.lang.reflect.Method
java.util.ArrayList
java.util.Collections
java.util.List
org.junit.AfterClass
org.junit.Before
org.junit.BeforeClass
org.junit.Test
org.junit.runners.BlockJUnit4ClassRunner
Response For class12-
CBO5-
Maintainability Index122.31-
Cumulative Number of Comment Lines5-
Lines Of Code68-
Fan In4-
DIT1-
Maintainability Index (NC)122.31-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.42-
Local Method Calls4isShadowed (2)
runsTopToBottom (1)
getAnnotatedMethods (3)
getSuperClasses (1)
LCOM222.00-
Max Complexity5-
Halstead Cumulative Volume1854.29-
Hierarchy Method Calls0
Number of Queries11-
Fan Out1-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0ArrayList>.add (1)
java.lang.Class.equals (2)
java.util.ArrayList.ArrayList (2)
java.lang.String.equals (1)
java.lang.reflect.Method.getName (2)
Class.getSuperclass (1)
java.lang.Class.getName (1)
eachMethod.getAnnotation (1)
List.add (1)
eachClass.getDeclaredMethods (1)
java.lang.reflect.Method.getParameterTypes (5)
getParameterTypes.equals (1)
java.lang.Class.getConstructor (1)
java.util.Collections.reverse (1)
Superclasses0 -
Total Complexity23-
Subclasses0 -
Message Passing Coupling0-
Number of Commands1-
Interfaces0 -
Cumulative Number of Comments1-
Halstead Cumulative Length411-
Modifiers0 -
Summary of methods in org.junit.internal.runners.TestClass
Methods in Class : org.junit.internal.runners.TestClass
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TestClass1021312233.020.0220030135.000000046.60528010
getAfters1021413207.220.0230130004.000000051.81509010
getAnnotatedMethods501596419105.890.178531401117.7030002514.324113552132
getBefores1021413207.220.0230130004.000000051.81509010
getConstructor1021715398.500.0241030016.000200066.426111010
getJavaClass1021111152.210.0120030014.000000038.05318000
getName102119139.480.0111030014.000000034.87417010
getSuperClasses20765234204.650.10430901114.3020001294.0322743171
getTestMethods1021514257.000.0230130014.500000057.115010010
isShadowed50987287528.320.141401102118.0010001418.243614511191
isShadowed30731191097.380.0420170218.3300001131.6915316101
runsTopToBottom10229201034.020.0451030118.2500000125.3411218030


Analysis of Method : TestClass(Class) in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NameTestClass-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary12-
Halstead Effort233.02-
Halstead Bugs0.02-
Classes Referenced2java.lang.Class (1)
? (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1klass (java.lang.Class)
Modifiers3private
final
public
Halstead Difficulty5.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume46.60-
Number of Operands5-
Variable References2klass (1)
fClass (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getAfters() in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetAfters-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length14-
Halstead Vocabulary13-
Halstead Effort207.22-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
AfterClass.class (1)
java.lang.reflect.Method (1)
External Methods Called0
Local Methods Called1getAnnotatedMethods (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers0 -
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume51.81-
Number of Operands5-
Variable References0
Number of Operators9-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getAnnotatedMethods(Class) in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetAnnotatedMethods-
Cyclomatic Complexity5-
Number of Comment Lines0-
Number of Statements15-
Halstead Length96-
Halstead Vocabulary41-
Halstead Effort9105.89-
Halstead Bugs0.17-
Classes Referenced8java.util.List (2)
?extendsAnnotation (1)
java.lang.annotation.Annotation (2)
java.util.ArrayList (1)
java.util.Collections (1)
java.lang.Class (2)
java.lang.reflect.Method (5)
? (1)
External Methods Called5eachClass.getDeclaredMethods (1)
java.util.ArrayList.ArrayList (1)
List.add (1)
eachMethod.getAnnotation (1)
java.util.Collections.reverse (1)
Local Methods Called3isShadowed (1)
runsTopToBottom (1)
getSuperClasses (1)
Lines Of Code14-
Number of Comments0-
Arguments1annotationClass (java.lang.Class)
Modifiers1public
Halstead Difficulty17.70-
Variable Declarations3annotation (java.lang.annotation.Annotation)
methods (java.lang.reflect.Method[])
results (List<Method>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting2-
Halstead Volume514.32-
Number of Operands41-
Variable References13annotation (1)
fClass (1)
methods (1)
results (4)
eachMethod (3)
annotationClass (2)
eachClass (1)
Number of Operators55-
Max. depth of nesting2-
Number of Expressions13-
Number of Loops2-

Top of this page

Analysis of Method : getBefores() in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetBefores-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length14-
Halstead Vocabulary13-
Halstead Effort207.22-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
BeforeClass.class (1)
java.lang.reflect.Method (1)
External Methods Called0
Local Methods Called1getAnnotatedMethods (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers0 -
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume51.81-
Number of Operands5-
Variable References0
Number of Operators9-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getConstructor() in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetConstructor-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary15-
Halstead Effort398.50-
Halstead Bugs0.02-
Classes Referenced4java.lang.NoSuchMethodException (1)
java.lang.SecurityException (1)
? (1)
java.lang.reflect.Constructor (1)
External Methods Called1java.lang.Class.getConstructor (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty6.00-
Variable Declarations0
Exceptions Thrown2java.lang.NoSuchMethodException (1)
java.lang.SecurityException (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume66.42-
Number of Operands6-
Variable References1fClass (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getJavaClass() in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetJavaClass-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary11-
Halstead Effort152.21-
Halstead Bugs0.01-
Classes Referenced2java.lang.Class (1)
? (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume38.05-
Number of Operands3-
Variable References1fClass (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : getName() in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetName-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary9-
Halstead Effort139.48-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called1java.lang.Class.getName (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume34.87-
Number of Operands4-
Variable References1fClass (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getSuperClasses(Class) in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetSuperClasses-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements7-
Halstead Length65-
Halstead Vocabulary23-
Halstead Effort4204.65-
Halstead Bugs0.10-
Classes Referenced4java.util.List (1)
java.util.ArrayList (2)
java.lang.Class (5)
? (5)
External Methods Called3Class.getSuperclass (1)
ArrayList>.add (1)
java.util.ArrayList.ArrayList (1)
Local Methods Called0
Lines Of Code9-
Number of Comments0-
Arguments1testClass (java.lang.Class)
Modifiers1private
Halstead Difficulty14.30-
Variable Declarations2results (ArrayList<Class<?>>)
current (Class<?>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume294.03-
Number of Operands22-
Variable References7results (2)
current (4)
testClass (1)
Number of Operators43-
Max. depth of nesting1-
Number of Expressions7-
Number of Loops1-

Top of this page

Analysis of Method : getTestMethods() in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamegetTestMethods-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary14-
Halstead Effort257.00-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
java.lang.reflect.Method (1)
Test.class (1)
External Methods Called0
Local Methods Called1getAnnotatedMethods (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.11-
Number of Operands5-
Variable References0
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : isShadowed(Method, Method) in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NameisShadowed-
Cyclomatic Complexity5-
Number of Comment Lines0-
Number of Statements9-
Halstead Length87-
Halstead Vocabulary28-
Halstead Effort7528.32-
Halstead Bugs0.14-
Classes Referenced1java.lang.reflect.Method (2)
External Methods Called4java.lang.reflect.Method.getParameterTypes (5)
getParameterTypes.equals (1)
java.lang.reflect.Method.getName (2)
java.lang.String.equals (1)
Local Methods Called0
Lines Of Code11-
Number of Comments0-
Arguments2current (java.lang.reflect.Method)
previous (java.lang.reflect.Method)
Modifiers1private
Halstead Difficulty18.00-
Variable Declarations1i (int)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume418.24-
Number of Operands36-
Variable References14i (4)
length (3)
previous (4)
current (3)
Number of Operators51-
Max. depth of nesting1-
Number of Expressions19-
Number of Loops1-

Top of this page

Analysis of Method : isShadowed(Method, List) in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NameisShadowed-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements7-
Halstead Length31-
Halstead Vocabulary19-
Halstead Effort1097.38-
Halstead Bugs0.04-
Classes Referenced2java.util.List (1)
java.lang.reflect.Method (4)
External Methods Called0
Local Methods Called1isShadowed (1)
Lines Of Code7-
Number of Comments0-
Arguments2method (java.lang.reflect.Method)
results (java.util.List)
Modifiers1private
Halstead Difficulty8.33-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume131.69-
Number of Operands15-
Variable References3results (1)
each (1)
method (1)
Number of Operators16-
Max. depth of nesting1-
Number of Expressions0-
Number of Loops1-

Top of this page

Analysis of Method : runsTopToBottom(Class) in Class : org.junit.internal.runners.TestClass
FeatureNumberValues
NamerunsTopToBottom-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length29-
Halstead Vocabulary20-
Halstead Effort1034.02-
Halstead Bugs0.04-
Classes Referenced5?extendsAnnotation (1)
java.lang.annotation.Annotation (1)
BeforeClass.class (1)
java.lang.Class (1)
Before.class (1)
External Methods Called1java.lang.Class.equals (2)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1annotation (java.lang.Class)
Modifiers1private
Halstead Difficulty8.25-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume125.34-
Number of Operands11-
Variable References2annotation (2)
Number of Operators18-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Top of this page Data Generated by JHawk - The Java Metrics tool Home