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

Dashboard for Class : junit.framework.TestResult
Cyclomatic Complexity

Summary of TestResult
FeatureNumberValues
NameTestResult-
Number of Methods18-
LCOM0.00-
Average Cyclomatic Complexity1.39-
Number of Statements72-
Halstead Cumulative Bugs0.60-
Halstead Effort10804.29-
UnWeighted Class Size23-
Instance Variables5fErrors (java.util.List)
fRunTests (int)
fListeners (java.util.List)
fFailures (java.util.List)
fStop (boolean)
Imported Packages4java.util.ArrayList
java.util.Collections
java.util.Enumeration
java.util.List
Response For class18-
CBO17-
Maintainability Index147.20-
Cumulative Number of Comment Lines62-
Lines Of Code90-
Fan In13-
DIT1-
Maintainability Index (NC)126.59-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.20-
Local Method Calls8addError (1)
endTest (1)
cloneListeners (4)
addFailure (1)
startTest (1)
runProtected (1)
failureCount (1)
errorCount (1)
LCOM2146.00-
Max Complexity4-
Halstead Cumulative Volume1796.70-
Hierarchy Method Calls0
Number of Queries8-
Fan Out6-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0java.util.List.remove (1)
java.util.Collections.enumeration (2)
junit.framework.Protectable.protect (1)
each.endTest (1)
junit.framework.Protectable.Protectable (1)
each.addFailure (1)
java.util.List.add (3)
each.addError (1)
List.addAll (1)
junit.framework.Test.countTestCases (1)
junit.framework.TestFailure.TestFailure (2)
each.startTest (1)
java.util.List.size (2)
java.util.ArrayList.ArrayList (4)
Superclasses1java.lang.Object
Total Complexity25-
Subclasses0 -
Message Passing Coupling0-
Number of Commands10-
Interfaces0 -
Cumulative Number of Comments19-
Halstead Cumulative Length438-
Modifiers0 -
Summary of methods in junit.framework.TestResult
Methods in Class : junit.framework.TestResult
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TestResult1063919843.410.0611070065.0900000165.6714525080
addError24634211008.040.0543151226.7500000149.3418616041
addFailure24634211008.040.0543151226.7500000149.3418616041
addListener1321412175.660.0211031123.500000050.19727010
cloneListeners13431181218.810.0432051029.4310000129.2712319030
endTest2352014380.740.0321141115.000000076.1510210021
errorCount1321211145.300.0101031023.500000041.51418010
errors1321615281.300.0231031024.500000062.516110010
failureCount1321211145.300.0101031023.500000041.51418010
failures1321615281.300.0231031024.500000062.516110010
removeListener1321412175.660.0211031123.500000050.19727010
run13541221447.460.06213101117.9210000182.8419422040
runCount1329985.590.0100031023.000000028.53316000
runProtected43645221458.750.07512142217.2700304200.6721624110
shouldStop1329985.590.0100031023.000000028.53316000
startTest23837231304.110.0622181117.7910001167.3717520151
stop132101099.660.0100031023.000000033.22416010
wasSuccessful1321713301.960.0200231024.800000062.916011050


Analysis of Method : TestResult() in Class : junit.framework.TestResult
FeatureNumberValues
NameTestResult-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements6-
Halstead Length39-
Halstead Vocabulary19-
Halstead Effort843.41-
Halstead Bugs0.06-
Classes Referenced1java.util.ArrayList (3)
External Methods Called1java.util.ArrayList.ArrayList (3)
Local Methods Called0
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers6protected
protected
protected
protected
private
public
Halstead Difficulty5.09-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume165.67-
Number of Operands14-
Variable References5fErrors (1)
fRunTests (1)
fListeners (1)
fFailures (1)
fStop (1)
Number of Operators25-
Max. depth of nesting0-
Number of Expressions8-
Number of Loops0-

Top of this page

Analysis of Method : addError(Test, Throwable) in Class : junit.framework.TestResult
FeatureNumberValues
NameaddError-
Cyclomatic Complexity2-
Number of Comment Lines4-
Number of Statements6-
Halstead Length34-
Halstead Vocabulary21-
Halstead Effort1008.04-
Halstead Bugs0.05-
Classes Referenced4junit.framework.Test (1)
java.lang.Throwable (1)
junit.framework.TestListener (1)
junit.framework.TestFailure (1)
External Methods Called3junit.framework.TestFailure.TestFailure (1)
java.util.List.add (1)
each.addError (1)
Local Methods Called1cloneListeners (1)
Lines Of Code5-
Number of Comments1-
Arguments2test (junit.framework.Test)
t (java.lang.Throwable)
Modifiers2public
synchronized
Halstead Difficulty6.75-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume149.34-
Number of Operands18-
Variable References6fErrors (1)
t (2)
each (1)
test (2)
Number of Operators16-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops1-

Top of this page

Analysis of Method : addFailure(Test, AssertionFailedError) in Class : junit.framework.TestResult
FeatureNumberValues
NameaddFailure-
Cyclomatic Complexity2-
Number of Comment Lines4-
Number of Statements6-
Halstead Length34-
Halstead Vocabulary21-
Halstead Effort1008.04-
Halstead Bugs0.05-
Classes Referenced4junit.framework.AssertionFailedError (1)
junit.framework.Test (1)
junit.framework.TestListener (1)
junit.framework.TestFailure (1)
External Methods Called3java.util.List.add (1)
junit.framework.TestFailure.TestFailure (1)
each.addFailure (1)
Local Methods Called1cloneListeners (1)
Lines Of Code5-
Number of Comments1-
Arguments2test (junit.framework.Test)
t (junit.framework.AssertionFailedError)
Modifiers2public
synchronized
Halstead Difficulty6.75-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume149.34-
Number of Operands18-
Variable References6fFailures (1)
t (2)
each (1)
test (2)
Number of Operators16-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops1-

Top of this page

Analysis of Method : addListener(TestListener) in Class : junit.framework.TestResult
FeatureNumberValues
NameaddListener-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length14-
Halstead Vocabulary12-
Halstead Effort175.66-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestListener (1)
External Methods Called1java.util.List.add (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1listener (junit.framework.TestListener)
Modifiers2public
synchronized
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume50.19-
Number of Operands7-
Variable References2fListeners (1)
listener (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : cloneListeners() in Class : junit.framework.TestResult
FeatureNumberValues
NamecloneListeners-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements4-
Halstead Length31-
Halstead Vocabulary18-
Halstead Effort1218.81-
Halstead Bugs0.04-
Classes Referenced3java.util.List (2)
java.util.ArrayList (1)
junit.framework.TestListener (3)
External Methods Called2java.util.ArrayList.ArrayList (1)
List.addAll (1)
Local Methods Called0
Lines Of Code5-
Number of Comments1-
Arguments0 -
Modifiers2private
synchronized
Halstead Difficulty9.43-
Variable Declarations1result (List<TestListener>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume129.27-
Number of Operands12-
Variable References3result (2)
fListeners (1)
Number of Operators19-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : endTest(Test) in Class : junit.framework.TestResult
FeatureNumberValues
NameendTest-
Cyclomatic Complexity2-
Number of Comment Lines3-
Number of Statements5-
Halstead Length20-
Halstead Vocabulary14-
Halstead Effort380.74-
Halstead Bugs0.03-
Classes Referenced2junit.framework.Test (1)
junit.framework.TestListener (1)
External Methods Called1each.endTest (1)
Local Methods Called1cloneListeners (1)
Lines Of Code4-
Number of Comments1-
Arguments1test (junit.framework.Test)
Modifiers1public
Halstead Difficulty5.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume76.15-
Number of Operands10-
Variable References2each (1)
test (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops1-

Top of this page

Analysis of Method : errorCount() in Class : junit.framework.TestResult
FeatureNumberValues
NameerrorCount-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length12-
Halstead Vocabulary11-
Halstead Effort145.30-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called1java.util.List.size (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume41.51-
Number of Operands4-
Variable References1fErrors (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : errors() in Class : junit.framework.TestResult
FeatureNumberValues
Nameerrors-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary15-
Halstead Effort281.30-
Halstead Bugs0.02-
Classes Referenced3java.util.Enumeration (1)
java.util.Collections (1)
junit.framework.TestFailure (1)
External Methods Called1java.util.Collections.enumeration (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume62.51-
Number of Operands6-
Variable References1fErrors (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : failureCount() in Class : junit.framework.TestResult
FeatureNumberValues
NamefailureCount-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length12-
Halstead Vocabulary11-
Halstead Effort145.30-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called1java.util.List.size (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume41.51-
Number of Operands4-
Variable References1fFailures (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : failures() in Class : junit.framework.TestResult
FeatureNumberValues
Namefailures-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary15-
Halstead Effort281.30-
Halstead Bugs0.02-
Classes Referenced3java.util.Enumeration (1)
java.util.Collections (1)
junit.framework.TestFailure (1)
External Methods Called1java.util.Collections.enumeration (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume62.51-
Number of Operands6-
Variable References1fFailures (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : removeListener(TestListener) in Class : junit.framework.TestResult
FeatureNumberValues
NameremoveListener-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length14-
Halstead Vocabulary12-
Halstead Effort175.66-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestListener (1)
External Methods Called1java.util.List.remove (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1listener (junit.framework.TestListener)
Modifiers2public
synchronized
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume50.19-
Number of Operands7-
Variable References2fListeners (1)
listener (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : run(TestCase) in Class : junit.framework.TestResult
FeatureNumberValues
Namerun-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements5-
Halstead Length41-
Halstead Vocabulary22-
Halstead Effort1447.46-
Halstead Bugs0.06-
Classes Referenced2junit.framework.TestCase (1)
junit.framework.Protectable (2)
External Methods Called1junit.framework.Protectable.Protectable (1)
Local Methods Called3endTest (1)
runProtected (1)
startTest (1)
Lines Of Code10-
Number of Comments1-
Arguments1test (junit.framework.TestCase)
Modifiers1protected
Halstead Difficulty7.92-
Variable Declarations1p (junit.framework.Protectable)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume182.84-
Number of Operands19-
Variable References4p (1)
test (3)
Number of Operators22-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : runCount() in Class : junit.framework.TestResult
FeatureNumberValues
NamerunCount-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length9-
Halstead Vocabulary9-
Halstead Effort85.59-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume28.53-
Number of Operands3-
Variable References1fRunTests (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : runProtected(Test, Protectable) in Class : junit.framework.TestResult
FeatureNumberValues
NamerunProtected-
Cyclomatic Complexity4-
Number of Comment Lines3-
Number of Statements6-
Halstead Length45-
Halstead Vocabulary22-
Halstead Effort1458.75-
Halstead Bugs0.07-
Classes Referenced5junit.framework.AssertionFailedError (1)
ThreadDeath (1)
junit.framework.Test (1)
java.lang.Throwable (1)
junit.framework.Protectable (1)
External Methods Called1junit.framework.Protectable.protect (1)
Local Methods Called2addError (1)
addFailure (1)
Lines Of Code14-
Number of Comments2-
Arguments2test (junit.framework.Test)
p (junit.framework.Protectable)
Modifiers1public
Halstead Difficulty7.27-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced3junit.framework.AssertionFailedError (1)
ThreadDeath (1)
java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting4-
Halstead Volume200.67-
Number of Operands21-
Variable References6e (3)
p (1)
test (2)
Number of Operators24-
Max. depth of nesting1-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : shouldStop() in Class : junit.framework.TestResult
FeatureNumberValues
NameshouldStop-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length9-
Halstead Vocabulary9-
Halstead Effort85.59-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume28.53-
Number of Operands3-
Variable References1fStop (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : startTest(Test) in Class : junit.framework.TestResult
FeatureNumberValues
NamestartTest-
Cyclomatic Complexity2-
Number of Comment Lines3-
Number of Statements8-
Halstead Length37-
Halstead Vocabulary23-
Halstead Effort1304.11-
Halstead Bugs0.06-
Classes Referenced2junit.framework.Test (1)
junit.framework.TestListener (1)
External Methods Called2each.startTest (1)
junit.framework.Test.countTestCases (1)
Local Methods Called1cloneListeners (1)
Lines Of Code8-
Number of Comments1-
Arguments1test (junit.framework.Test)
Modifiers1public
Halstead Difficulty7.79-
Variable Declarations1count (int)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume167.37-
Number of Operands17-
Variable References5fRunTests (1)
count (1)
each (1)
test (2)
Number of Operators20-
Max. depth of nesting1-
Number of Expressions5-
Number of Loops1-

Top of this page

Analysis of Method : stop() in Class : junit.framework.TestResult
FeatureNumberValues
Namestop-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary10-
Halstead Effort99.66-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume33.22-
Number of Operands4-
Variable References1fStop (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : wasSuccessful() in Class : junit.framework.TestResult
FeatureNumberValues
NamewasSuccessful-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary13-
Halstead Effort301.96-
Halstead Bugs0.02-
Classes Referenced0
External Methods Called0
Local Methods Called2errorCount (1)
failureCount (1)
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
synchronized
Halstead Difficulty4.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume62.91-
Number of Operands6-
Variable References0
Number of Operators11-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

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