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

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

Summary of TestClass
FeatureNumberValues
NameTestClass-
Number of Methods11-
LCOM0.07-
Average Cyclomatic Complexity2.00-
Number of Statements57-
Halstead Cumulative Bugs0.78-
Halstead Effort25378.88-
UnWeighted Class Size14-
Instance Variables3fClass (java.lang.Class)
fFieldsForAnnotations (java.util.Map)
fMethodsForAnnotations (java.util.Map)
Imported Packages11java.lang.annotation.Annotation
java.lang.reflect.Constructor
java.lang.reflect.Field
java.lang.reflect.Method
java.util.ArrayList
java.util.HashMap
java.util.List
java.util.Map
org.junit.Assert
org.junit.Before
org.junit.BeforeClass
Response For class12-
CBO8-
Maintainability Index158.17-
Cumulative Number of Comment Lines30-
Lines Of Code73-
Fan In4-
DIT1-
Maintainability Index (NC)118.28-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.27-
Local Method Calls4runsTopToBottom (1)
addToAnnotationLists (2)
getAnnotatedMembers (3)
getSuperClasses (1)
LCOM226.00-
Max Complexity5-
Halstead Cumulative Volume2335.89-
Hierarchy Method Calls0
Number of Queries9-
Fan Out4-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls1eachClass.getDeclaredMethods (1)
Class.getSuperclass (1)
org.junit.Assert.assertEquals (1)
T.getAnnotations (1)
java.util.Map.get (1)
java.util.Map.put (1)
T.isShadowedBy (1)
java.lang.Class.getConstructors (2)
java.util.Map.containsKey (1)
java.lang.Class.equals (2)
org.junit.runners.model.FrameworkMethod.FrameworkMethod (1)
List.add (2)
java.lang.Class.getName (1)
eachClass.getDeclaredFields (1)
each.annotationType (1)
java.util.HashMap.HashMap (2)
java.lang.annotation.Annotation.Annotation (1)
java.lang.Class.getAnnotations (1)
org.junit.runners.model.FrameworkField.FrameworkField (1)
java.lang.IllegalArgumentException.IllegalArgumentException (1)
java.util.ArrayList.ArrayList (2)
ArrayList>.add (1)
Superclasses0 -
Total Complexity22-
Subclasses0 -
Message Passing Coupling1-
Number of Commands2-
Interfaces0 -
Cumulative Number of Comments8-
Halstead Cumulative Length510-
Modifiers0 -
Summary of methods in org.junit.runners.model.TestClass
Methods in Class : org.junit.runners.model.TestClass
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TestClass561579394792.710.147621211511.4800001417.553312461123
addToAnnotationLists401089356676.400.157421202114.6220001456.51391150181
getAnnotatedFields1422117434.550.0350131115.060000085.849212000
getAnnotatedMembers20357253297.720.09840602112.4600000264.7023634050
getAnnotatedMethods1422117434.550.0350141115.060000085.849212000
getAnnotations2332315718.870.0312051018.000000089.868215030
getJavaClass1321111152.210.0120031014.000000038.05318000
getName2331913393.730.0211051015.600000070.317212020
getOnlyConstructor14434211067.770.0532051017.1510000149.3413421040
getSuperClasses20765234204.650.10430901114.3020001294.0322743171
runsTopToBottom10229201034.020.0451040118.2500000125.3411218030


Analysis of Method : TestClass(Class) in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NameTestClass-
Cyclomatic Complexity5-
Number of Comment Lines6-
Number of Statements15-
Halstead Length79-
Halstead Vocabulary39-
Halstead Effort4792.71-
Halstead Bugs0.14-
Classes Referenced7org.junit.runners.model.FrameworkMethod (1)
org.junit.runners.model.FrameworkField (1)
java.lang.IllegalArgumentException (1)
java.lang.Class (2)
java.lang.reflect.Method (1)
java.lang.reflect.Field (1)
? (2)
External Methods Called6java.lang.IllegalArgumentException.IllegalArgumentException (1)
org.junit.runners.model.FrameworkField.FrameworkField (1)
eachClass.getDeclaredFields (1)
java.lang.Class.getConstructors (1)
eachClass.getDeclaredMethods (1)
org.junit.runners.model.FrameworkMethod.FrameworkMethod (1)
Local Methods Called2addToAnnotationLists (2)
getSuperClasses (1)
Lines Of Code12-
Number of Comments1-
Arguments1klass (java.lang.Class)
Modifiers5private
final
private
private
public
Halstead Difficulty11.48-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume417.55-
Number of Operands33-
Variable References12klass (3)
fClass (2)
fFieldsForAnnotations (1)
fMethodsForAnnotations (1)
eachMethod (1)
length (1)
eachClass (2)
eachField (1)
Number of Operators46-
Max. depth of nesting1-
Number of Expressions12-
Number of Loops3-

Top of this page

Analysis of Method : addToAnnotationLists(T, Map) in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NameaddToAnnotationLists-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements10-
Halstead Length89-
Halstead Vocabulary35-
Halstead Effort6676.40-
Halstead Bugs0.15-
Classes Referenced7java.util.List (3)
java.lang.annotation.Annotation (2)
?extendsAnnotation (1)
T (6)
java.lang.Class (3)
java.util.Map (1)
? (2)
External Methods Called4List.add (2)
T.isShadowedBy (1)
T.getAnnotations (1)
each.annotationType (1)
Local Methods Called2runsTopToBottom (1)
getAnnotatedMembers (1)
Lines Of Code12-
Number of Comments0-
Arguments2member (T)
map (java.util.Map)
Modifiers1private
Halstead Difficulty14.62-
Variable Declarations2members (List<T>)
type (Class<?extendsAnnotation>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume456.51-
Number of Operands39-
Variable References11members (3)
type (2)
each (1)
map (1)
member (4)
Number of Operators50-
Max. depth of nesting1-
Number of Expressions8-
Number of Loops1-

Top of this page

Analysis of Method : getAnnotatedFields(Class) in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NamegetAnnotatedFields-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length21-
Halstead Vocabulary17-
Halstead Effort434.55-
Halstead Bugs0.03-
Classes Referenced5java.util.List (1)
org.junit.runners.model.FrameworkField (1)
?extendsAnnotation (1)
java.lang.annotation.Annotation (1)
java.lang.Class (1)
External Methods Called0
Local Methods Called1getAnnotatedMembers (1)
Lines Of Code3-
Number of Comments1-
Arguments1annotationClass (java.lang.Class)
Modifiers1public
Halstead Difficulty5.06-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume85.84-
Number of Operands9-
Variable References2fFieldsForAnnotations (1)
annotationClass (1)
Number of Operators12-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : getAnnotatedMembers(Map, Class) in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NamegetAnnotatedMembers-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements3-
Halstead Length57-
Halstead Vocabulary25-
Halstead Effort3297.72-
Halstead Bugs0.09-
Classes Referenced8java.util.List (3)
?extendsAnnotation (1)
java.lang.annotation.Annotation (1)
java.util.ArrayList (1)
T (4)
java.lang.Class (3)
java.util.Map (1)
? (2)
External Methods Called4java.util.Map.containsKey (1)
java.util.ArrayList.ArrayList (1)
java.util.Map.get (1)
java.util.Map.put (1)
Local Methods Called0
Lines Of Code6-
Number of Comments0-
Arguments2map (java.util.Map)
type (java.lang.Class)
Modifiers1private
Halstead Difficulty12.46-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume264.70-
Number of Operands23-
Variable References6type (3)
map (3)
Number of Operators34-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : getAnnotatedMethods(Class) in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NamegetAnnotatedMethods-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length21-
Halstead Vocabulary17-
Halstead Effort434.55-
Halstead Bugs0.03-
Classes Referenced5java.util.List (1)
org.junit.runners.model.FrameworkMethod (1)
?extendsAnnotation (1)
java.lang.annotation.Annotation (1)
java.lang.Class (1)
External Methods Called0
Local Methods Called1getAnnotatedMembers (1)
Lines Of Code4-
Number of Comments1-
Arguments1annotationClass (java.lang.Class)
Modifiers1public
Halstead Difficulty5.06-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume85.84-
Number of Operands9-
Variable References2fMethodsForAnnotations (1)
annotationClass (1)
Number of Operators12-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : getAnnotations() in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NamegetAnnotations-
Cyclomatic Complexity2-
Number of Comment Lines3-
Number of Statements3-
Halstead Length23-
Halstead Vocabulary15-
Halstead Effort718.87-
Halstead Bugs0.03-
Classes Referenced1java.lang.annotation.Annotation (2)
External Methods Called2java.lang.Class.getAnnotations (1)
java.lang.annotation.Annotation.Annotation (1)
Local Methods Called0
Lines Of Code5-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty8.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume89.86-
Number of Operands8-
Variable References2fClass (2)
Number of Operators15-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : getJavaClass() in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NamegetJavaClass-
Cyclomatic Complexity1-
Number of Comment Lines3-
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 Comments1-
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.runners.model.TestClass
FeatureNumberValues
NamegetName-
Cyclomatic Complexity2-
Number of Comment Lines3-
Number of Statements3-
Halstead Length19-
Halstead Vocabulary13-
Halstead Effort393.73-
Halstead Bugs0.02-
Classes Referenced1java.lang.String (1)
External Methods Called1java.lang.Class.getName (1)
Local Methods Called0
Lines Of Code5-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty5.60-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume70.31-
Number of Operands7-
Variable References2fClass (2)
Number of Operators12-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : getOnlyConstructor() in Class : org.junit.runners.model.TestClass
FeatureNumberValues
NamegetOnlyConstructor-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements4-
Halstead Length34-
Halstead Vocabulary21-
Halstead Effort1067.77-
Halstead Bugs0.05-
Classes Referenced3org.junit.Assert (1)
java.lang.reflect.Constructor (2)
? (2)
External Methods Called2org.junit.Assert.assertEquals (1)
java.lang.Class.getConstructors (1)
Local Methods Called0
Lines Of Code5-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty7.15-
Variable Declarations1constructors (Constructor<?>[])
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume149.34-
Number of Operands13-
Variable References4fClass (1)
length (1)
constructors (2)
Number of Operators21-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : getSuperClasses(Class) in Class : org.junit.runners.model.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 Called3ArrayList>.add (1)
java.util.ArrayList.ArrayList (1)
Class.getSuperclass (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 : runsTopToBottom(Class) in Class : org.junit.runners.model.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 Code4-
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