![]() | 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 | ||
---|---|---|
Feature | Number | Values |
Name | TestClass | - |
Number of Methods | 11 | - |
LCOM | 0.07 | - |
Average Cyclomatic Complexity | 2.00 | - |
Number of Statements | 57 | - |
Halstead Cumulative Bugs | 0.78 | - |
Halstead Effort | 25378.88 | - |
UnWeighted Class Size | 14 | - |
Instance Variables | 3 | fClass (java.lang.Class) fFieldsForAnnotations (java.util.Map) fMethodsForAnnotations (java.util.Map) |
Imported Packages | 11 | java.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 class | 12 | - |
CBO | 8 | - |
Maintainability Index | 158.17 | - |
Cumulative Number of Comment Lines | 30 | - |
Lines Of Code | 73 | - |
Fan In | 4 | - |
DIT | 1 | - |
Maintainability Index (NC) | 118.28 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.27 | - |
Local Method Calls | 4 | runsTopToBottom (1) addToAnnotationLists (2) getAnnotatedMembers (3) getSuperClasses (1) |
LCOM2 | 26.00 | - |
Max Complexity | 5 | - |
Halstead Cumulative Volume | 2335.89 | - |
Hierarchy Method Calls | 0 | |
Number of Queries | 9 | - |
Fan Out | 4 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 1 | eachClass.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 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 |
Superclasses | 0 | - |
Total Complexity | 22 | - |
Subclasses | 0 | - |
Message Passing Coupling | 1 | - |
Number of Commands | 2 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 8 | - |
Halstead Cumulative Length | 510 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.runners.model.TestClass | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | COMP | NOCL | NOS | HLTH | HVOC | HEFF | HBUG | CREF | XMET | LMET | NLOC | NOC | NOA | MOD | HDIF | VDEC | EXCT | EXCR | CAST | TDN | HVOL | NAND | VREF | NOPR | MDN | NEXP | LOOP | |
![]() | TestClass | 5 | 6 | 15 | 79 | 39 | 4792.71 | 0.14 | 7 | 6 | 2 | 12 | 1 | 1 | 5 | 11.48 | 0 | 0 | 0 | 0 | 1 | 417.55 | 33 | 12 | 46 | 1 | 12 | 3 |
![]() | addToAnnotationLists | 4 | 0 | 10 | 89 | 35 | 6676.40 | 0.15 | 7 | 4 | 2 | 12 | 0 | 2 | 1 | 14.62 | 2 | 0 | 0 | 0 | 1 | 456.51 | 39 | 11 | 50 | 1 | 8 | 1 |
![]() | getAnnotatedFields | 1 | 4 | 2 | 21 | 17 | 434.55 | 0.03 | 5 | 0 | 1 | 3 | 1 | 1 | 1 | 5.06 | 0 | 0 | 0 | 0 | 0 | 85.84 | 9 | 2 | 12 | 0 | 0 | 0 |
![]() | getAnnotatedMembers | 2 | 0 | 3 | 57 | 25 | 3297.72 | 0.09 | 8 | 4 | 0 | 6 | 0 | 2 | 1 | 12.46 | 0 | 0 | 0 | 0 | 0 | 264.70 | 23 | 6 | 34 | 0 | 5 | 0 |
![]() | getAnnotatedMethods | 1 | 4 | 2 | 21 | 17 | 434.55 | 0.03 | 5 | 0 | 1 | 4 | 1 | 1 | 1 | 5.06 | 0 | 0 | 0 | 0 | 0 | 85.84 | 9 | 2 | 12 | 0 | 0 | 0 |
![]() | getAnnotations | 2 | 3 | 3 | 23 | 15 | 718.87 | 0.03 | 1 | 2 | 0 | 5 | 1 | 0 | 1 | 8.00 | 0 | 0 | 0 | 0 | 0 | 89.86 | 8 | 2 | 15 | 0 | 3 | 0 |
![]() | getJavaClass | 1 | 3 | 2 | 11 | 11 | 152.21 | 0.01 | 2 | 0 | 0 | 3 | 1 | 0 | 1 | 4.00 | 0 | 0 | 0 | 0 | 0 | 38.05 | 3 | 1 | 8 | 0 | 0 | 0 |
![]() | getName | 2 | 3 | 3 | 19 | 13 | 393.73 | 0.02 | 1 | 1 | 0 | 5 | 1 | 0 | 1 | 5.60 | 0 | 0 | 0 | 0 | 0 | 70.31 | 7 | 2 | 12 | 0 | 2 | 0 |
![]() | getOnlyConstructor | 1 | 4 | 4 | 34 | 21 | 1067.77 | 0.05 | 3 | 2 | 0 | 5 | 1 | 0 | 1 | 7.15 | 1 | 0 | 0 | 0 | 0 | 149.34 | 13 | 4 | 21 | 0 | 4 | 0 |
![]() | getSuperClasses | 2 | 0 | 7 | 65 | 23 | 4204.65 | 0.10 | 4 | 3 | 0 | 9 | 0 | 1 | 1 | 14.30 | 2 | 0 | 0 | 0 | 1 | 294.03 | 22 | 7 | 43 | 1 | 7 | 1 |
![]() | runsTopToBottom | 1 | 0 | 2 | 29 | 20 | 1034.02 | 0.04 | 5 | 1 | 0 | 4 | 0 | 1 | 1 | 8.25 | 0 | 0 | 0 | 0 | 0 | 125.34 | 11 | 2 | 18 | 0 | 3 | 0 |
Analysis of Method : TestClass(Class) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | TestClass | - |
Cyclomatic Complexity | 5 | - |
Number of Comment Lines | 6 | - |
Number of Statements | 15 | - |
Halstead Length | 79 | - |
Halstead Vocabulary | 39 | - |
Halstead Effort | 4792.71 | - |
Halstead Bugs | 0.14 | - |
Classes Referenced | 7 | org.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 Called | 6 | java.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 Called | 2 | addToAnnotationLists (2) getSuperClasses (1) |
Lines Of Code | 12 | - |
Number of Comments | 1 | - |
Arguments | 1 | klass (java.lang.Class) |
Modifiers | 5 | private final private private public |
Halstead Difficulty | 11.48 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 417.55 | - |
Number of Operands | 33 | - |
Variable References | 12 | klass (3) fClass (2) fFieldsForAnnotations (1) fMethodsForAnnotations (1) eachMethod (1) length (1) eachClass (2) eachField (1) |
Number of Operators | 46 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 12 | - |
Number of Loops | 3 | - |
Analysis of Method : addToAnnotationLists(T, Map) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | addToAnnotationLists | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 10 | - |
Halstead Length | 89 | - |
Halstead Vocabulary | 35 | - |
Halstead Effort | 6676.40 | - |
Halstead Bugs | 0.15 | - |
Classes Referenced | 7 | java.util.List (3) java.lang.annotation.Annotation (2) ?extendsAnnotation (1) T (6) java.lang.Class (3) java.util.Map (1) ? (2) |
External Methods Called | 4 | List T.isShadowedBy (1) T.getAnnotations (1) each.annotationType (1) |
Local Methods Called | 2 | runsTopToBottom (1) getAnnotatedMembers (1) |
Lines Of Code | 12 | - |
Number of Comments | 0 | - |
Arguments | 2 | member (T) map (java.util.Map) |
Modifiers | 1 | private |
Halstead Difficulty | 14.62 | - |
Variable Declarations | 2 | members (List<T>) type (Class<?extendsAnnotation>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 456.51 | - |
Number of Operands | 39 | - |
Variable References | 11 | members (3) type (2) each (1) map (1) member (4) |
Number of Operators | 50 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 8 | - |
Number of Loops | 1 | - |
Analysis of Method : getAnnotatedFields(Class) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getAnnotatedFields | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 434.55 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 5 | java.util.List (1) org.junit.runners.model.FrameworkField (1) ?extendsAnnotation (1) java.lang.annotation.Annotation (1) java.lang.Class (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | getAnnotatedMembers (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | annotationClass (java.lang.Class) |
Modifiers | 1 | public |
Halstead Difficulty | 5.06 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 85.84 | - |
Number of Operands | 9 | - |
Variable References | 2 | fFieldsForAnnotations (1) annotationClass (1) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getAnnotatedMembers(Map, Class) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getAnnotatedMembers | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 3 | - |
Halstead Length | 57 | - |
Halstead Vocabulary | 25 | - |
Halstead Effort | 3297.72 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 8 | java.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 Called | 4 | java.util.Map.containsKey (1) java.util.ArrayList.ArrayList (1) java.util.Map.get (1) java.util.Map.put (1) |
Local Methods Called | 0 | |
Lines Of Code | 6 | - |
Number of Comments | 0 | - |
Arguments | 2 | map (java.util.Map) type (java.lang.Class) |
Modifiers | 1 | private |
Halstead Difficulty | 12.46 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 264.70 | - |
Number of Operands | 23 | - |
Variable References | 6 | type (3) map (3) |
Number of Operators | 34 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 5 | - |
Number of Loops | 0 | - |
Analysis of Method : getAnnotatedMethods(Class) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getAnnotatedMethods | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 17 | - |
Halstead Effort | 434.55 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 5 | java.util.List (1) org.junit.runners.model.FrameworkMethod (1) ?extendsAnnotation (1) java.lang.annotation.Annotation (1) java.lang.Class (1) |
External Methods Called | 0 | |
Local Methods Called | 1 | getAnnotatedMembers (1) |
Lines Of Code | 4 | - |
Number of Comments | 1 | - |
Arguments | 1 | annotationClass (java.lang.Class) |
Modifiers | 1 | public |
Halstead Difficulty | 5.06 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 85.84 | - |
Number of Operands | 9 | - |
Variable References | 2 | fMethodsForAnnotations (1) annotationClass (1) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getAnnotations() in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getAnnotations | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 3 | - |
Halstead Length | 23 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 718.87 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | java.lang.annotation.Annotation (2) |
External Methods Called | 2 | java.lang.Class.getAnnotations (1) java.lang.annotation.Annotation.Annotation (1) |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 8.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 89.86 | - |
Number of Operands | 8 | - |
Variable References | 2 | fClass (2) |
Number of Operators | 15 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : getJavaClass() in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getJavaClass | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 11 | - |
Halstead Effort | 152.21 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 2 | java.lang.Class (1) ? (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 4.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 38.05 | - |
Number of Operands | 3 | - |
Variable References | 1 | fClass (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : getName() in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getName | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 3 | - |
Halstead Length | 19 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 393.73 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 1 | java.lang.Class.getName (1) |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 5.60 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 70.31 | - |
Number of Operands | 7 | - |
Variable References | 2 | fClass (2) |
Number of Operators | 12 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : getOnlyConstructor() in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getOnlyConstructor | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 4 | - |
Halstead Length | 34 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 1067.77 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 3 | org.junit.Assert (1) java.lang.reflect.Constructor (2) ? (2) |
External Methods Called | 2 | org.junit.Assert.assertEquals (1) java.lang.Class.getConstructors (1) |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 7.15 | - |
Variable Declarations | 1 | constructors (Constructor<?>[]) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 149.34 | - |
Number of Operands | 13 | - |
Variable References | 4 | fClass (1) length (1) constructors (2) |
Number of Operators | 21 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 4 | - |
Number of Loops | 0 | - |
Analysis of Method : getSuperClasses(Class) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | getSuperClasses | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 7 | - |
Halstead Length | 65 | - |
Halstead Vocabulary | 23 | - |
Halstead Effort | 4204.65 | - |
Halstead Bugs | 0.10 | - |
Classes Referenced | 4 | java.util.List (1) java.util.ArrayList (2) java.lang.Class (5) ? (5) |
External Methods Called | 3 | ArrayList java.util.ArrayList.ArrayList (1) Class>.getSuperclass (1) |
Local Methods Called | 0 | |
Lines Of Code | 9 | - |
Number of Comments | 0 | - |
Arguments | 1 | testClass (java.lang.Class) |
Modifiers | 1 | private |
Halstead Difficulty | 14.30 | - |
Variable Declarations | 2 | results (ArrayList<Class<?>>) current (Class<?>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 1 | - |
Halstead Volume | 294.03 | - |
Number of Operands | 22 | - |
Variable References | 7 | results (2) current (4) testClass (1) |
Number of Operators | 43 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 7 | - |
Number of Loops | 1 | - |
Analysis of Method : runsTopToBottom(Class) in Class : org.junit.runners.model.TestClass | ||
---|---|---|
Feature | Number | Values |
Name | runsTopToBottom | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 29 | - |
Halstead Vocabulary | 20 | - |
Halstead Effort | 1034.02 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 5 | ?extendsAnnotation (1) java.lang.annotation.Annotation (1) BeforeClass.class (1) java.lang.Class (1) Before.class (1) |
External Methods Called | 1 | java.lang.Class.equals (2) |
Local Methods Called | 0 | |
Lines Of Code | 4 | - |
Number of Comments | 0 | - |
Arguments | 1 | annotation (java.lang.Class) |
Modifiers | 1 | private |
Halstead Difficulty | 8.25 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 125.34 | - |
Number of Operands | 11 | - |
Variable References | 2 | annotation (2) |
Number of Operators | 18 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |