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

Dashboard for Class : org.junit.internal.TextListener
Cyclomatic Complexity

Summary of TextListener
FeatureNumberValues
NameTextListener-
Number of Methods12-
LCOM0.64-
Average Cyclomatic Complexity1.33-
Number of Statements45-
Halstead Cumulative Bugs0.54-
Halstead Effort13360.95-
UnWeighted Class Size13-
Instance Variables1fWriter (java.io.PrintStream)
Imported Packages7java.io.PrintStream
java.text.NumberFormat
java.util.List
org.junit.runner.Description
org.junit.runner.Result
org.junit.runner.notification.Failure
org.junit.runner.notification.RunListener
Response For class12-
CBO7-
Maintainability Index129.14-
Cumulative Number of Comment Lines7-
Lines Of Code65-
Fan In2-
DIT1-
Maintainability Index (NC)129.14-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.42-
Local Method Calls6printFailure (1)
getWriter (13)
printFailures (1)
printHeader (1)
printFooter (1)
elapsedTimeAsString (1)
LCOM222.00-
Max Complexity4-
Halstead Cumulative Volume1617.90-
Hierarchy Method Calls1this (1)
Number of Queries2-
Fan Out5-
SuperClass Nameorg.junit.runner.notification.RunListener-
SIX0.00-
External Method Calls0java.io.PrintStream.append (3)
org.junit.runner.Result.getRunTime (1)
org.junit.runner.notification.Failure.getTestHeader (1)
println().println (3)
println().print (1)
getTestHeader().print (1)
getFailureCount().println (1)
wasSuccessful().println (1)
java.text.NumberFormat.getInstance (1)
getInstance().format (1)
org.junit.runner.Result.wasSuccessful (1)
fWriter().println (1)
org.junit.runner.notification.Failure.getTrace (1)
getRunCount().println (1)
List.size (4)
org.junit.runner.Result.getFailures (1)
org.junit.internal.JUnitSystem.out (1)
org.junit.runner.Result.getRunCount (3)
i().println (1)
org.junit.runner.Result.getFailureCount (1)
size().println (2)
print().println (1)
Superclasses1org.junit.runner.notification.RunListener
Total Complexity16-
Subclasses0 -
Message Passing Coupling0-
Number of Commands10-
Interfaces0 -
Cumulative Number of Comments2-
Halstead Cumulative Length366-
Modifiers0 -
Summary of methods in org.junit.internal.TextListener
Methods in Class : org.junit.internal.TextListener
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TextListener1021211149.450.0110030113.600000041.51626010
TextListener1021310129.560.0111130133.000000043.19617020
elapsedTimeAsString1422116326.670.0322031113.890001084.0010111040
getWriter1328860.000.0110031012.500000024.00315000
printFailure1033318550.430.0524140214.0000000137.6116317080
printFailures401084385931.110.153321201113.4520000440.83378470191
printFooter20995314918.280.161911201110.4500002470.65385571280
printHeader1032414376.930.0302240114.120000091.3811113060
testFailure1021514171.330.0211030123.000000057.11817010
testIgnored1021514171.330.0211030123.000000057.11817010
testRunFinished1042415375.060.0311350124.000000093.7712312040
testStarted1021514171.330.0211030123.000000057.11817010


Analysis of Method : TextListener(PrintStream) in Class : org.junit.internal.TextListener
FeatureNumberValues
NameTextListener-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length12-
Halstead Vocabulary11-
Halstead Effort149.45-
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.60-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume41.51-
Number of Operands6-
Variable References2writer (1)
fWriter (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : TextListener(JUnitSystem) in Class : org.junit.internal.TextListener
FeatureNumberValues
NameTextListener-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary10-
Halstead Effort129.56-
Halstead Bugs0.01-
Classes Referenced1org.junit.internal.JUnitSystem (1)
External Methods Called1org.junit.internal.JUnitSystem.out (1)
Local Methods Called1this (1)
Lines Of Code3-
Number of Comments0-
Arguments1system (org.junit.internal.JUnitSystem)
Modifiers3private
final
public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume43.19-
Number of Operands6-
Variable References1system (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : elapsedTimeAsString(long) in Class : org.junit.internal.TextListener
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 Called2java.text.NumberFormat.getInstance (1)
getInstance().format (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 : getWriter() in Class : org.junit.internal.TextListener
FeatureNumberValues
NamegetWriter-
Cyclomatic Complexity1-
Number of Comment Lines3-
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 Comments1-
Arguments0 -
Modifiers1private
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 : printFailure(Failure, String) in Class : org.junit.internal.TextListener
FeatureNumberValues
NameprintFailure-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length33-
Halstead Vocabulary18-
Halstead Effort550.43-
Halstead Bugs0.05-
Classes Referenced2java.lang.String (1)
org.junit.runner.notification.Failure (1)
External Methods Called4org.junit.runner.notification.Failure.getTestHeader (1)
org.junit.runner.notification.Failure.getTrace (1)
getTestHeader().print (1)
i().println (1)
Local Methods Called1getWriter (2)
Lines Of Code4-
Number of Comments0-
Arguments2each (org.junit.runner.notification.Failure)
prefix (java.lang.String)
Modifiers1protected
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume137.61-
Number of Operands16-
Variable References3each (2)
prefix (1)
Number of Operators17-
Max. depth of nesting0-
Number of Expressions8-
Number of Loops0-

Top of this page

Analysis of Method : printFailures(Result) in Class : org.junit.internal.TextListener
FeatureNumberValues
NameprintFailures-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements10-
Halstead Length84-
Halstead Vocabulary38-
Halstead Effort5931.11-
Halstead Bugs0.15-
Classes Referenced3java.util.List (1)
org.junit.runner.notification.Failure (3)
org.junit.runner.Result (1)
External Methods Called3size().println (2)
List.size (4)
org.junit.runner.Result.getFailures (1)
Local Methods Called2printFailure (1)
getWriter (2)
Lines Of Code12-
Number of Comments0-
Arguments1result (org.junit.runner.Result)
Modifiers1protected
Halstead Difficulty13.45-
Variable Declarations2i (int)
failures (List<Failure>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume440.83-
Number of Operands37-
Variable References8result (1)
i (1)
failures (5)
each (1)
Number of Operators47-
Max. depth of nesting0-
Number of Expressions19-
Number of Loops1-

Top of this page

Analysis of Method : printFooter(Result) in Class : org.junit.internal.TextListener
FeatureNumberValues
NameprintFooter-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements9-
Halstead Length95-
Halstead Vocabulary31-
Halstead Effort4918.28-
Halstead Bugs0.16-
Classes Referenced1org.junit.runner.Result (1)
External Methods Called9org.junit.runner.Result.getFailureCount (1)
org.junit.runner.Result.getRunCount (3)
wasSuccessful().println (1)
getFailureCount().println (1)
println().print (1)
org.junit.runner.Result.wasSuccessful (1)
print().println (1)
println().println (2)
getRunCount().println (1)
Local Methods Called1getWriter (7)
Lines Of Code12-
Number of Comments0-
Arguments1result (org.junit.runner.Result)
Modifiers1protected
Halstead Difficulty10.45-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting2-
Halstead Volume470.65-
Number of Operands38-
Variable References5result (5)
Number of Operators57-
Max. depth of nesting1-
Number of Expressions28-
Number of Loops0-

Top of this page

Analysis of Method : printHeader(long) in Class : org.junit.internal.TextListener
FeatureNumberValues
NameprintHeader-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length24-
Halstead Vocabulary14-
Halstead Effort376.93-
Halstead Bugs0.03-
Classes Referenced0
External Methods Called2println().println (1)
fWriter().println (1)
Local Methods Called2getWriter (2)
elapsedTimeAsString (1)
Lines Of Code4-
Number of Comments0-
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 : testFailure(Failure) in Class : org.junit.internal.TextListener
FeatureNumberValues
NametestFailure-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary14-
Halstead Effort171.33-
Halstead Bugs0.02-
Classes Referenced1org.junit.runner.notification.Failure (1)
External Methods Called1java.io.PrintStream.append (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1failure (org.junit.runner.notification.Failure)
Modifiers2@Override
public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.11-
Number of Operands8-
Variable References1fWriter (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : testIgnored(Description) in Class : org.junit.internal.TextListener
FeatureNumberValues
NametestIgnored-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary14-
Halstead Effort171.33-
Halstead Bugs0.02-
Classes Referenced1org.junit.runner.Description (1)
External Methods Called1java.io.PrintStream.append (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers2@Override
public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.11-
Number of Operands8-
Variable References1fWriter (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : testRunFinished(Result) in Class : org.junit.internal.TextListener
FeatureNumberValues
NametestRunFinished-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements4-
Halstead Length24-
Halstead Vocabulary15-
Halstead Effort375.06-
Halstead Bugs0.03-
Classes Referenced1org.junit.runner.Result (1)
External Methods Called1org.junit.runner.Result.getRunTime (1)
Local Methods Called3printFailures (1)
printFooter (1)
printHeader (1)
Lines Of Code5-
Number of Comments0-
Arguments1result (org.junit.runner.Result)
Modifiers2@Override
public
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume93.77-
Number of Operands12-
Variable References3result (3)
Number of Operators12-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : testStarted(Description) in Class : org.junit.internal.TextListener
FeatureNumberValues
NametestStarted-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary14-
Halstead Effort171.33-
Halstead Bugs0.02-
Classes Referenced1org.junit.runner.Description (1)
External Methods Called1java.io.PrintStream.append (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers2@Override
public
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume57.11-
Number of Operands8-
Variable References1fWriter (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

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