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

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

Summary of TestMethod
FeatureNumberValues
NameTestMethod-
Number of Methods9-
LCOM0.06-
Average Cyclomatic Complexity1.22-
Number of Statements27-
Halstead Cumulative Bugs0.26-
Halstead Effort5434.61-
UnWeighted Class Size11-
Instance Variables2fMethod (java.lang.reflect.Method)
fTestClass (org.junit.internal.runners.TestClass)
Imported Packages9java.lang.reflect.InvocationTargetException
java.lang.reflect.Method
java.util.List
org.junit.After
org.junit.Before
org.junit.Ignore
org.junit.Test
org.junit.Test.None
org.junit.runners.BlockJUnit4ClassRunner
Response For class9-
CBO4-
Maintainability Index131.26-
Cumulative Number of Comment Lines5-
Lines Of Code40-
Fan In2-
DIT1-
Maintainability Index (NC)131.26-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.44-
Local Method Calls1getExpectedException (2)
LCOM26.00-
Max Complexity2-
Halstead Cumulative Volume785.80-
Hierarchy Method Calls0
Number of Queries7-
Fan Out2-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0org.junit.Test.timeout (1)
java.lang.reflect.Method.getAnnotation (3)
org.junit.Test.expected (2)
java.lang.Throwable.getClass (1)
java.lang.reflect.Method.invoke (1)
org.junit.internal.runners.TestClass.getAnnotatedMethods (2)
expected().isAssignableFrom (1)
Superclasses0 -
Total Complexity11-
Subclasses0 -
Message Passing Coupling0-
Number of Commands2-
Interfaces0 -
Cumulative Number of Comments1-
Halstead Cumulative Length197-
Modifiers0 -
Summary of methods in org.junit.internal.runners.TestMethod
Methods in Class : org.junit.internal.runners.TestMethod
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TestMethod1031612184.370.0220040243.210000057.36947020
expectsException10210979.250.0100130002.500000031.70406020
getAfters1021614243.670.0231030004.000000060.926110010
getBefores1021614243.670.0231030004.000000060.926110010
getExpectedException20445262707.450.07520700112.8010000211.5216429070
getTimeout20535191238.980.0522070018.3320000148.6815420050
invoke1021714242.720.0241030113.750300064.731027010
isIgnored1021614243.670.0211030014.000000060.926110020
isUnexpected1021813228.370.0212130103.430000066.618110040


Analysis of Method : TestMethod(Method, TestClass) in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NameTestMethod-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length16-
Halstead Vocabulary12-
Halstead Effort184.37-
Halstead Bugs0.02-
Classes Referenced2org.junit.internal.runners.TestClass (1)
java.lang.reflect.Method (1)
External Methods Called0
Local Methods Called0
Lines Of Code4-
Number of Comments0-
Arguments2method (java.lang.reflect.Method)
testClass (org.junit.internal.runners.TestClass)
Modifiers4private
final
private
public
Halstead Difficulty3.21-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.36-
Number of Operands9-
Variable References4fMethod (1)
fTestClass (1)
testClass (1)
method (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : expectsException() in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NameexpectsException-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary9-
Halstead Effort79.25-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called1getExpectedException (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers0 -
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume31.70-
Number of Operands4-
Variable References0
Number of Operators6-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : getAfters() in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NamegetAfters-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort243.67-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
After.class (1)
java.lang.reflect.Method (1)
External Methods Called1org.junit.internal.runners.TestClass.getAnnotatedMethods (1)
Local Methods Called0
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 Volume60.92-
Number of Operands6-
Variable References1fTestClass (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getBefores() in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NamegetBefores-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort243.67-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
Before.class (1)
java.lang.reflect.Method (1)
External Methods Called1org.junit.internal.runners.TestClass.getAnnotatedMethods (1)
Local Methods Called0
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 Volume60.92-
Number of Operands6-
Variable References1fTestClass (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getExpectedException() in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NamegetExpectedException-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements4-
Halstead Length45-
Halstead Vocabulary26-
Halstead Effort2707.45-
Halstead Bugs0.07-
Classes Referenced5?extendsThrowable (1)
java.lang.Class (1)
org.junit.Test (1)
None.class (1)
Test.class (1)
External Methods Called2org.junit.Test.expected (2)
java.lang.reflect.Method.getAnnotation (1)
Local Methods Called0
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers1protected
Halstead Difficulty12.80-
Variable Declarations1annotation (org.junit.Test)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume211.52-
Number of Operands16-
Variable References4annotation (3)
fMethod (1)
Number of Operators29-
Max. depth of nesting0-
Number of Expressions7-
Number of Loops0-

Top of this page

Analysis of Method : getTimeout() in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NamegetTimeout-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements5-
Halstead Length35-
Halstead Vocabulary19-
Halstead Effort1238.98-
Halstead Bugs0.05-
Classes Referenced2org.junit.Test (1)
Test.class (1)
External Methods Called2org.junit.Test.timeout (1)
java.lang.reflect.Method.getAnnotation (1)
Local Methods Called0
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty8.33-
Variable Declarations2annotation (org.junit.Test)
timeout (long)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume148.68-
Number of Operands15-
Variable References4annotation (2)
fMethod (1)
timeout (1)
Number of Operators20-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : invoke(Object) in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
Nameinvoke-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary14-
Halstead Effort242.72-
Halstead Bugs0.02-
Classes Referenced4java.lang.reflect.InvocationTargetException (1)
java.lang.IllegalArgumentException (1)
java.lang.IllegalAccessException (1)
java.lang.Object (1)
External Methods Called1java.lang.reflect.Method.invoke (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1test (java.lang.Object)
Modifiers1public
Halstead Difficulty3.75-
Variable Declarations0
Exceptions Thrown3java.lang.reflect.InvocationTargetException (1)
java.lang.IllegalAccessException (1)
java.lang.IllegalArgumentException (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume64.73-
Number of Operands10-
Variable References2fMethod (1)
test (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : isIgnored() in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NameisIgnored-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort243.67-
Halstead Bugs0.02-
Classes Referenced1Ignore.class (1)
External Methods Called1java.lang.reflect.Method.getAnnotation (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 Volume60.92-
Number of Operands6-
Variable References1fMethod (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : isUnexpected(Throwable) in Class : org.junit.internal.runners.TestMethod
FeatureNumberValues
NameisUnexpected-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary13-
Halstead Effort228.37-
Halstead Bugs0.02-
Classes Referenced1java.lang.Throwable (1)
External Methods Called2java.lang.Throwable.getClass (1)
expected().isAssignableFrom (1)
Local Methods Called1getExpectedException (1)
Lines Of Code3-
Number of Comments0-
Arguments1exception (java.lang.Throwable)
Modifiers0 -
Halstead Difficulty3.43-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume66.61-
Number of Operands8-
Variable References1exception (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

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