Analysis of Class : junit.textui.ResultPrinter (Includes summary list of methods in class) Home

Dashboard for Class : junit.textui.ResultPrinter
Cyclomatic Complexity

Summary of ResultPrinter
FeatureNumberValues
NameResultPrinter-
Number of Methods17-
LCOM0.44-
Average Cyclomatic Complexity1.29-
Number of Statements59-
Halstead Cumulative Bugs0.67-
Halstead Effort14110.58-
UnWeighted Class Size19-
Instance Variables2fColumn (int)
fWriter (java.io.PrintStream)
Imported Packages9java.io.PrintStream
java.text.NumberFormat
java.util.Enumeration
junit.framework.AssertionFailedError
junit.framework.Test
junit.framework.TestFailure
junit.framework.TestListener
junit.framework.TestResult
junit.runner.BaseTestRunner
Response For class17-
CBO7-
Maintainability Index180.16-
Cumulative Number of Comment Lines22-
Lines Of Code82-
Fan In1-
DIT1-
Maintainability Index (NC)130.16-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.09-
Local Method Calls10printFooter (1)
printErrors (1)
printFailures (1)
printDefectHeader (1)
elapsedTimeAsString (1)
printHeader (1)
printDefectTrace (1)
getWriter (19)
printDefects (2)
printDefect (1)
LCOM258.00-
Max Complexity4-
Halstead Cumulative Volume2005.51-
Hierarchy Method Calls0
Number of Queries2-
Fan Out6-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0junit.framework.TestResult.failures (1)
java.text.NumberFormat.getInstance (1)
junit.runner.BaseTestRunner.getFilteredTrace (1)
junit.framework.TestResult.errorCount (2)
junit.framework.TestFailure.failedTest (1)
junit.framework.TestResult.failureCount (2)
void.println (1)
java.util.Enumeration.hasMoreElements (1)
fColumn().println (1)
getInstance().format (1)
result().println (1)
junit.framework.TestResult.errors (1)
type().println (1)
void.print (2)
println().println (5)
junit.framework.TestResult.runCount (3)
failedTest().print (1)
java.util.Enumeration.nextElement (1)
wasSuccessful().println (1)
println().print (1)
runCount().println (1)
booBoo().print (1)
junit.framework.TestFailure.trace (1)
errorCount().println (1)
junit.framework.TestResult.wasSuccessful (1)
fWriter().print (1)
count().println (1)
Superclasses0 -
Total Complexity22-
Subclasses0 -
Message Passing Coupling0-
Number of Commands15-
Interfaces1junit.framework.TestListener
Cumulative Number of Comments10-
Halstead Cumulative Length469-
Modifiers0 -
Summary of methods in junit.textui.ResultPrinter
Methods in Class : junit.textui.ResultPrinter
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
ResultPrinter10210999.060.0110030113.120000031.70525010
addError1321614152.290.0221131212.500000060.92907020
addFailure1321614152.290.0221131212.500000060.92907020
elapsedTimeAsString1422116326.670.0322031113.890001084.0010111040
endTest1317729.480.0110021111.500000019.65403000
getWriter1028860.000.0110030012.500000024.00315000
print1252514266.510.0310461212.800000095.1814411040
printDefect1031812177.460.0210241212.750000064.531137010
printDefectHeader1222316331.200.0312132213.600000092.0012211050
printDefectTrace1022114222.100.0323130112.780000079.9510111040
printDefects40980375256.810.143421003112.6110001416.763710431171
printErrors1021913219.710.0212130113.120000070.311029020
printFailures1021913219.710.0212130113.120000070.311029020
printFooter209102335273.910.1711011401110.2500002514.53416611310
printHeader1232414376.930.0301241114.120000091.3811113060
printWaitPrompt103179150.890.0202140002.800000053.897010040
startTest2353120712.530.0412171115.3200001133.9813218170


Analysis of Method : ResultPrinter(PrintStream) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameResultPrinter-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length10-
Halstead Vocabulary9-
Halstead Effort99.06-
Halstead Bugs0.01-
Classes Referenced1java.io.PrintStream (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1writer (java.io.PrintStream)
Modifiers1public
Halstead Difficulty3.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume31.70-
Number of Operands5-
Variable References2writer (1)
fWriter (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : addError(Test, Throwable) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameaddError-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort152.29-
Halstead Bugs0.02-
Classes Referenced2junit.framework.Test (1)
java.lang.Throwable (1)
External Methods Called1fWriter().print (1)
Local Methods Called1getWriter (1)
Lines Of Code3-
Number of Comments1-
Arguments2test (junit.framework.Test)
t (java.lang.Throwable)
Modifiers1public
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume60.92-
Number of Operands9-
Variable References0
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : addFailure(Test, AssertionFailedError) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameaddFailure-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort152.29-
Halstead Bugs0.02-
Classes Referenced2junit.framework.AssertionFailedError (1)
junit.framework.Test (1)
External Methods Called1void.print (1)
Local Methods Called1getWriter (1)
Lines Of Code3-
Number of Comments1-
Arguments2test (junit.framework.Test)
t (junit.framework.AssertionFailedError)
Modifiers1public
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume60.92-
Number of Operands9-
Variable References0
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : elapsedTimeAsString(long) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameelapsedTimeAsString-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length21-
Halstead Vocabulary16-
Halstead Effort326.67-
Halstead Bugs0.03-
Classes Referenced2java.lang.String (1)
java.text.NumberFormat (1)
External Methods Called2getInstance().format (1)
java.text.NumberFormat.getInstance (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1runTime (long)
Modifiers1protected
Halstead Difficulty3.89-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts1-
Total Depth of Nesting0-
Halstead Volume84.00-
Number of Operands10-
Variable References1runTime (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : endTest(Test) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameendTest-
Cyclomatic Complexity1-
Number of Comment Lines3-
Number of Statements1-
Halstead Length7-
Halstead Vocabulary7-
Halstead Effort29.48-
Halstead Bugs0.01-
Classes Referenced1junit.framework.Test (1)
External Methods Called0
Local Methods Called0
Lines Of Code2-
Number of Comments1-
Arguments1test (junit.framework.Test)
Modifiers1public
Halstead Difficulty1.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume19.65-
Number of Operands4-
Variable References0
Number of Operators3-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : getWriter() in Class : junit.textui.ResultPrinter
FeatureNumberValues
NamegetWriter-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort60.00-
Halstead Bugs0.01-
Classes Referenced1java.io.PrintStream (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
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 References1fWriter (1)
Number of Operators5-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : print(TestResult, long) in Class : junit.textui.ResultPrinter
FeatureNumberValues
Nameprint-
Cyclomatic Complexity1-
Number of Comment Lines2-
Number of Statements5-
Halstead Length25-
Halstead Vocabulary14-
Halstead Effort266.51-
Halstead Bugs0.03-
Classes Referenced1junit.framework.TestResult (1)
External Methods Called0
Local Methods Called4printFailures (1)
printFooter (1)
printErrors (1)
printHeader (1)
Lines Of Code6-
Number of Comments1-
Arguments2result (junit.framework.TestResult)
runTime (long)
Modifiers1synchronized
Halstead Difficulty2.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume95.18-
Number of Operands14-
Variable References4result (3)
runTime (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : printDefect(TestFailure, int) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintDefect-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length18-
Halstead Vocabulary12-
Halstead Effort177.46-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestFailure (1)
External Methods Called0
Local Methods Called2printDefectHeader (1)
printDefectTrace (1)
Lines Of Code4-
Number of Comments1-
Arguments2booBoo (junit.framework.TestFailure)
count (int)
Modifiers1public
Halstead Difficulty2.75-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume64.53-
Number of Operands11-
Variable References3count (1)
booBoo (2)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : printDefectHeader(TestFailure, int) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintDefectHeader-
Cyclomatic Complexity1-
Number of Comment Lines2-
Number of Statements2-
Halstead Length23-
Halstead Vocabulary16-
Halstead Effort331.20-
Halstead Bugs0.03-
Classes Referenced1junit.framework.TestFailure (1)
External Methods Called2junit.framework.TestFailure.failedTest (1)
booBoo().print (1)
Local Methods Called1getWriter (1)
Lines Of Code3-
Number of Comments2-
Arguments2booBoo (junit.framework.TestFailure)
count (int)
Modifiers1protected
Halstead Difficulty3.60-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume92.00-
Number of Operands12-
Variable References2booBoo (1)
count (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : printDefectTrace(TestFailure) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintDefectTrace-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length21-
Halstead Vocabulary14-
Halstead Effort222.10-
Halstead Bugs0.03-
Classes Referenced2junit.framework.TestFailure (1)
junit.runner.BaseTestRunner (1)
External Methods Called3failedTest().print (1)
junit.framework.TestFailure.trace (1)
junit.runner.BaseTestRunner.getFilteredTrace (1)
Local Methods Called1getWriter (1)
Lines Of Code3-
Number of Comments0-
Arguments1booBoo (junit.framework.TestFailure)
Modifiers1protected
Halstead Difficulty2.78-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume79.95-
Number of Operands10-
Variable References1booBoo (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : printDefects(Enumeration, int, String) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintDefects-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements9-
Halstead Length80-
Halstead Vocabulary37-
Halstead Effort5256.81-
Halstead Bugs0.14-
Classes Referenced3java.util.Enumeration (1)
java.lang.String (1)
junit.framework.TestFailure (2)
External Methods Called4type().println (1)
count().println (1)
java.util.Enumeration.hasMoreElements (1)
java.util.Enumeration.nextElement (1)
Local Methods Called2getWriter (2)
printDefect (1)
Lines Of Code10-
Number of Comments0-
Arguments3booBoos (java.util.Enumeration)
count (int)
type (java.lang.String)
Modifiers1protected
Halstead Difficulty12.61-
Variable Declarations1i (int)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume416.76-
Number of Operands37-
Variable References10booBoos (2)
i (2)
type (2)
count (4)
Number of Operators43-
Max. depth of nesting1-
Number of Expressions17-
Number of Loops1-

Top of this page

Analysis of Method : printErrors(TestResult) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintErrors-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length19-
Halstead Vocabulary13-
Halstead Effort219.71-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestResult (1)
External Methods Called2junit.framework.TestResult.errors (1)
junit.framework.TestResult.errorCount (1)
Local Methods Called1printDefects (1)
Lines Of Code3-
Number of Comments0-
Arguments1result (junit.framework.TestResult)
Modifiers1protected
Halstead Difficulty3.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume70.31-
Number of Operands10-
Variable References2result (2)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : printFailures(TestResult) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintFailures-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length19-
Halstead Vocabulary13-
Halstead Effort219.71-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestResult (1)
External Methods Called2junit.framework.TestResult.failures (1)
junit.framework.TestResult.failureCount (1)
Local Methods Called1printDefects (1)
Lines Of Code3-
Number of Comments0-
Arguments1result (junit.framework.TestResult)
Modifiers1protected
Halstead Difficulty3.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume70.31-
Number of Operands10-
Variable References2result (2)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : printFooter(TestResult) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintFooter-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements9-
Halstead Length102-
Halstead Vocabulary33-
Halstead Effort5273.91-
Halstead Bugs0.17-
Classes Referenced1junit.framework.TestResult (1)
External Methods Called10errorCount().println (1)
runCount().println (1)
println().print (1)
junit.framework.TestResult.failureCount (1)
junit.framework.TestResult.runCount (3)
junit.framework.TestResult.wasSuccessful (1)
println().println (2)
junit.framework.TestResult.errorCount (1)
void.println (1)
wasSuccessful().println (1)
Local Methods Called1getWriter (7)
Lines Of Code14-
Number of Comments0-
Arguments1result (junit.framework.TestResult)
Modifiers1protected
Halstead Difficulty10.25-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting2-
Halstead Volume514.53-
Number of Operands41-
Variable References6result (6)
Number of Operators61-
Max. depth of nesting1-
Number of Expressions31-
Number of Loops0-

Top of this page

Analysis of Method : printHeader(long) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintHeader-
Cyclomatic Complexity1-
Number of Comment Lines2-
Number of Statements3-
Halstead Length24-
Halstead Vocabulary14-
Halstead Effort376.93-
Halstead Bugs0.03-
Classes Referenced0
External Methods Called1println().println (2)
Local Methods Called2getWriter (2)
elapsedTimeAsString (1)
Lines Of Code4-
Number of Comments1-
Arguments1runTime (long)
Modifiers1protected
Halstead Difficulty4.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume91.38-
Number of Operands11-
Variable References1runTime (1)
Number of Operators13-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : printWaitPrompt() in Class : junit.textui.ResultPrinter
FeatureNumberValues
NameprintWaitPrompt-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length17-
Halstead Vocabulary9-
Halstead Effort150.89-
Halstead Bugs0.02-
Classes Referenced0
External Methods Called2result().println (1)
println().println (1)
Local Methods Called1getWriter (2)
Lines Of Code4-
Number of Comments0-
Arguments0 -
Modifiers0 -
Halstead Difficulty2.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume53.89-
Number of Operands7-
Variable References0
Number of Operators10-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : startTest(Test) in Class : junit.textui.ResultPrinter
FeatureNumberValues
NamestartTest-
Cyclomatic Complexity2-
Number of Comment Lines3-
Number of Statements5-
Halstead Length31-
Halstead Vocabulary20-
Halstead Effort712.53-
Halstead Bugs0.04-
Classes Referenced1junit.framework.Test (1)
External Methods Called2void.print (1)
fColumn().println (1)
Local Methods Called1getWriter (2)
Lines Of Code7-
Number of Comments1-
Arguments1test (junit.framework.Test)
Modifiers1public
Halstead Difficulty5.32-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume133.98-
Number of Operands13-
Variable References2fColumn (2)
Number of Operators18-
Max. depth of nesting1-
Number of Expressions7-
Number of Loops0-

Top of this page

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