Analysis of Class : junit.framework.TestCase (Includes summary list of methods in class) Home

Dashboard for Class : junit.framework.TestCase
Cyclomatic Complexity

Summary of TestCase
FeatureNumberValues
NameTestCase-
Number of Methods13-
LCOM0.67-
Average Cyclomatic Complexity1.62-
Number of Statements48-
Halstead Cumulative Bugs0.41-
Halstead Effort11388.30-
UnWeighted Class Size14-
Instance Variables1fName (java.lang.String)
Imported Packages3java.lang.reflect.InvocationTargetException
java.lang.reflect.Method
java.lang.reflect.Modifier
Response For class13-
CBO8-
Maintainability Index79.92-
Cumulative Number of Comment Lines127-
Lines Of Code77-
Fan In6-
DIT1-
Maintainability Index (NC)129.92-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.38-
Local Method Calls6setUp (1)
tearDown (1)
runTest (1)
getName (1)
run (1)
createResult (1)
LCOM228.00-
Max Complexity5-
Halstead Cumulative Volume1231.93-
Hierarchy Method Calls3assertNotNull (1)
fail (2)
getClass (2)
Number of Queries5-
Fan Out3-
SuperClass Namejunit.framework.Assert-
SIX0.00-
External Method Calls0e().getName (1)
java.lang.reflect.Modifier.isPublic (1)
junit.framework.TestResult.run (1)
java.lang.reflect.Method.invoke (1)
junit.framework.TestResult.TestResult (1)
java.lang.reflect.Method.getModifiers (1)
e.fillInStackTrace (2)
e.getTargetException (1)
runMethod().getMethod (1)
Superclasses1junit.framework.Assert
Total Complexity21-
Subclasses0 -
Message Passing Coupling0-
Number of Commands8-
Interfaces1junit.framework.Test
Cumulative Number of Comments19-
Halstead Cumulative Length290-
Modifiers0 -
Summary of methods in junit.framework.TestCase
Methods in Class : junit.framework.TestCase
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TestCase1428860.000.0100031022.500000024.00315010
TestCase13210999.060.0110031113.120000031.70525010
countTestCases1328860.000.0100031012.500000024.00305000
createResult152108135.000.0111031014.500000030.00307010
getName1428860.000.0110031012.500000024.00315000
run1641810358.770.0210251016.001000059.798210030
run1321310151.150.0111031113.500000043.19716010
runBare541058233751.840.091031710114.3011105262.3722736280
runTest5814102416092.130.187632360111.1511316546.474311591180
setName1421110109.620.0110031113.000000036.54625010
setUp1417739.300.0110021012.000100019.65304000
tearDown1417739.300.0110021012.000100019.65304000
toString1322115375.060.0311231024.570000082.048013060


Analysis of Method : TestCase() in Class : junit.framework.TestCase
FeatureNumberValues
NameTestCase-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2private
public
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume24.00-
Number of Operands3-
Variable References1fName (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : TestCase(String) in Class : junit.framework.TestCase
FeatureNumberValues
NameTestCase-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary9-
Halstead Effort99.06-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1name (java.lang.String)
Modifiers1public
Halstead Difficulty3.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume31.70-
Number of Operands5-
Variable References2name (1)
fName (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : countTestCases() in Class : junit.framework.TestCase
FeatureNumberValues
NamecountTestCases-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume24.00-
Number of Operands3-
Variable References0
Number of Operators5-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : createResult() in Class : junit.framework.TestCase
FeatureNumberValues
NamecreateResult-
Cyclomatic Complexity1-
Number of Comment Lines5-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary8-
Halstead Effort135.00-
Halstead Bugs0.01-
Classes Referenced1junit.framework.TestResult (2)
External Methods Called1junit.framework.TestResult.TestResult (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers1protected
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume30.00-
Number of Operands3-
Variable References0
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getName() in Class : junit.framework.TestCase
FeatureNumberValues
NamegetName-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume24.00-
Number of Operands3-
Variable References1fName (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : run() in Class : junit.framework.TestCase
FeatureNumberValues
Namerun-
Cyclomatic Complexity1-
Number of Comment Lines6-
Number of Statements4-
Halstead Length18-
Halstead Vocabulary10-
Halstead Effort358.77-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestResult (2)
External Methods Called0
Local Methods Called2run (1)
createResult (1)
Lines Of Code5-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty6.00-
Variable Declarations1result (TestResult)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume59.79-
Number of Operands8-
Variable References2result (2)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : run(TestResult) in Class : junit.framework.TestCase
FeatureNumberValues
Namerun-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary10-
Halstead Effort151.15-
Halstead Bugs0.01-
Classes Referenced1junit.framework.TestResult (1)
External Methods Called1junit.framework.TestResult.run (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1result (TestResult)
Modifiers1public
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume43.19-
Number of Operands7-
Variable References1result (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : runBare() in Class : junit.framework.TestCase
FeatureNumberValues
NamerunBare-
Cyclomatic Complexity5-
Number of Comment Lines4-
Number of Statements10-
Halstead Length58-
Halstead Vocabulary23-
Halstead Effort3751.84-
Halstead Bugs0.09-
Classes Referenced1java.lang.Throwable (4)
External Methods Called0
Local Methods Called3tearDown (1)
setUp (1)
runTest (1)
Lines Of Code17-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty14.30-
Variable Declarations1exception (java.lang.Throwable)
Exceptions Thrown1java.lang.Throwable (1)
Exceptions Referenced1java.lang.Throwable (2)
Number of casts0-
Total Depth of Nesting5-
Halstead Volume262.37-
Number of Operands22-
Variable References7running (1)
exception (5)
tearingDown (1)
Number of Operators36-
Max. depth of nesting2-
Number of Expressions8-
Number of Loops0-

Top of this page

Analysis of Method : runTest() in Class : junit.framework.TestCase
FeatureNumberValues
NamerunTest-
Cyclomatic Complexity5-
Number of Comment Lines8-
Number of Statements14-
Halstead Length102-
Halstead Vocabulary41-
Halstead Effort6092.13-
Halstead Bugs0.18-
Classes Referenced7java.lang.NoSuchMethodException (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.reflect.Modifier (1)
java.lang.IllegalAccessException (1)
java.lang.Throwable (1)
java.lang.Class (2)
java.lang.reflect.Method (1)
External Methods Called6e.fillInStackTrace (2)
runMethod().getMethod (1)
java.lang.reflect.Modifier.isPublic (1)
java.lang.reflect.Method.getModifiers (1)
e.getTargetException (1)
java.lang.reflect.Method.invoke (1)
Local Methods Called3assertNotNull (1)
fail (2)
getClass (1)
Lines Of Code23-
Number of Comments6-
Arguments0 -
Modifiers1protected
Halstead Difficulty11.15-
Variable Declarations1runMethod (java.lang.reflect.Method)
Exceptions Thrown1java.lang.Throwable (1)
Exceptions Referenced3java.lang.NoSuchMethodException (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.IllegalAccessException (1)
Number of casts1-
Total Depth of Nesting6-
Halstead Volume546.47-
Number of Operands43-
Variable References11fName (4)
e (4)
runMethod (3)
Number of Operators59-
Max. depth of nesting1-
Number of Expressions18-
Number of Loops0-

Top of this page

Analysis of Method : setName(String) in Class : junit.framework.TestCase
FeatureNumberValues
NamesetName-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary10-
Halstead Effort109.62-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1name (java.lang.String)
Modifiers1public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume36.54-
Number of Operands6-
Variable References2name (1)
fName (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : setUp() in Class : junit.framework.TestCase
FeatureNumberValues
NamesetUp-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements1-
Halstead Length7-
Halstead Vocabulary7-
Halstead Effort39.30-
Halstead Bugs0.01-
Classes Referenced1java.lang.Exception (1)
External Methods Called0
Local Methods Called0
Lines Of Code2-
Number of Comments1-
Arguments0 -
Modifiers1protected
Halstead Difficulty2.00-
Variable Declarations0
Exceptions Thrown1java.lang.Exception (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume19.65-
Number of Operands3-
Variable References0
Number of Operators4-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : tearDown() in Class : junit.framework.TestCase
FeatureNumberValues
NametearDown-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements1-
Halstead Length7-
Halstead Vocabulary7-
Halstead Effort39.30-
Halstead Bugs0.01-
Classes Referenced1java.lang.Exception (1)
External Methods Called0
Local Methods Called0
Lines Of Code2-
Number of Comments1-
Arguments0 -
Modifiers1protected
Halstead Difficulty2.00-
Variable Declarations0
Exceptions Thrown1java.lang.Exception (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume19.65-
Number of Operands3-
Variable References0
Number of Operators4-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : toString() in Class : junit.framework.TestCase
FeatureNumberValues
NametoString-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length21-
Halstead Vocabulary15-
Halstead Effort375.06-
Halstead Bugs0.03-
Classes Referenced1java.lang.String (1)
External Methods Called1e().getName (1)
Local Methods Called2getClass (1)
getName (1)
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2@Override
public
Halstead Difficulty4.57-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume82.04-
Number of Operands8-
Variable References0
Number of Operators13-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

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