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

Dashboard for Class : junit.framework.TestFailure
Cyclomatic Complexity

Summary of TestFailure
FeatureNumberValues
NameTestFailure-
Number of Methods7-
LCOM0.08-
Average Cyclomatic Complexity1.00-
Number of Statements24-
Halstead Cumulative Bugs0.18-
Halstead Effort2642.69-
UnWeighted Class Size9-
Instance Variables2fThrownException (java.lang.Throwable)
fFailedTest (junit.framework.Test)
Imported Packages2java.io.PrintWriter
java.io.StringWriter
Response For class7-
CBO4-
Maintainability Index172.79-
Cumulative Number of Comment Lines17-
Lines Of Code33-
Fan In2-
DIT1-
Maintainability Index (NC)132.91-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.43-
Local Method Calls1thrownException (3)
LCOM27.00-
Max Complexity1-
Halstead Cumulative Volume533.29-
Hierarchy Method Calls0
Number of Queries6-
Fan Out2-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0java.io.StringWriter.StringWriter (1)
java.lang.StringBuffer.append (1)
java.io.PrintWriter.PrintWriter (1)
java.lang.StringBuffer.toString (2)
java.io.StringWriter.getBuffer (1)
java.lang.StringBuffer.StringBuffer (1)
java.lang.Throwable.getMessage (1)
java.lang.String.getMessage (1)
stringWriter().printStackTrace (1)
Superclasses1java.lang.Object
Total Complexity7-
Subclasses0 -
Message Passing Coupling0-
Number of Commands1-
Interfaces0 -
Cumulative Number of Comments5-
Halstead Cumulative Length139-
Modifiers0 -
Summary of methods in junit.framework.TestFailure
Methods in Class : junit.framework.TestFailure
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TestFailure1331612184.370.0220041233.210000057.36947020
exceptionMessage1021210119.590.0111130013.000000039.86408020
failedTest1328860.000.0110031012.500000024.00315000
isFailure1021110109.620.0110130013.000000036.54407020
thrownException1328860.000.0110031012.500000024.00315000
toString1343320998.370.0524051027.0010000142.6214419070
trace10641201063.190.0645170016.0030000177.2018423090


Analysis of Method : TestFailure(Test, Throwable) in Class : junit.framework.TestFailure
FeatureNumberValues
NameTestFailure-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements3-
Halstead Length16-
Halstead Vocabulary12-
Halstead Effort184.37-
Halstead Bugs0.02-
Classes Referenced2junit.framework.Test (1)
java.lang.Throwable (1)
External Methods Called0
Local Methods Called0
Lines Of Code4-
Number of Comments1-
Arguments2failedTest (junit.framework.Test)
thrownException (java.lang.Throwable)
Modifiers3protected
protected
public
Halstead Difficulty3.21-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.36-
Number of Operands9-
Variable References4fThrownException (1)
fFailedTest (1)
thrownException (1)
failedTest (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : exceptionMessage() in Class : junit.framework.TestFailure
FeatureNumberValues
NameexceptionMessage-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length12-
Halstead Vocabulary10-
Halstead Effort119.59-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called1java.lang.String.getMessage (1)
Local Methods Called1thrownException (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume39.86-
Number of Operands4-
Variable References0
Number of Operators8-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : failedTest() in Class : junit.framework.TestFailure
FeatureNumberValues
NamefailedTest-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced1junit.framework.Test (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 References1fFailedTest (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : isFailure() in Class : junit.framework.TestFailure
FeatureNumberValues
NameisFailure-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary10-
Halstead Effort109.62-
Halstead Bugs0.01-
Classes Referenced1junit.framework.AssertionFailedError (1)
External Methods Called0
Local Methods Called1thrownException (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume36.54-
Number of Operands4-
Variable References0
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : thrownException() in Class : junit.framework.TestFailure
FeatureNumberValues
NamethrownException-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced1java.lang.Throwable (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 References1fThrownException (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : toString() in Class : junit.framework.TestFailure
FeatureNumberValues
NametoString-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements4-
Halstead Length33-
Halstead Vocabulary20-
Halstead Effort998.37-
Halstead Bugs0.05-
Classes Referenced2java.lang.String (1)
java.lang.StringBuffer (2)
External Methods Called4java.lang.Throwable.getMessage (1)
java.lang.StringBuffer.append (1)
java.lang.StringBuffer.toString (1)
java.lang.StringBuffer.StringBuffer (1)
Local Methods Called0
Lines Of Code5-
Number of Comments1-
Arguments0 -
Modifiers2@Override
public
Halstead Difficulty7.00-
Variable Declarations1buffer (java.lang.StringBuffer)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume142.62-
Number of Operands14-
Variable References4buffer (2)
fThrownException (1)
fFailedTest (1)
Number of Operators19-
Max. depth of nesting0-
Number of Expressions7-
Number of Loops0-

Top of this page

Analysis of Method : trace() in Class : junit.framework.TestFailure
FeatureNumberValues
Nametrace-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements6-
Halstead Length41-
Halstead Vocabulary20-
Halstead Effort1063.19-
Halstead Bugs0.06-
Classes Referenced4java.io.StringWriter (2)
java.io.PrintWriter (2)
java.lang.String (1)
java.lang.StringBuffer (1)
External Methods Called5java.io.StringWriter.getBuffer (1)
stringWriter().printStackTrace (1)
java.io.PrintWriter.PrintWriter (1)
java.io.StringWriter.StringWriter (1)
java.lang.StringBuffer.toString (1)
Local Methods Called1thrownException (1)
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty6.00-
Variable Declarations3buffer (java.lang.StringBuffer)
stringWriter (java.io.StringWriter)
writer (java.io.PrintWriter)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume177.20-
Number of Operands18-
Variable References4buffer (1)
stringWriter (2)
writer (1)
Number of Operators23-
Max. depth of nesting0-
Number of Expressions9-
Number of Loops0-

Top of this page

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