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

Dashboard for Class : junit.framework.JUnit4TestAdapter
Cyclomatic Complexity

Summary of JUnit4TestAdapter
FeatureNumberValues
NameJUnit4TestAdapter-
Number of Methods12-
LCOM0.00-
Average Cyclomatic Complexity1.25-
Number of Statements39-
Halstead Cumulative Bugs0.34-
Halstead Effort6433.94-
UnWeighted Class Size15-
Instance Variables3fCache (JUnit4TestAdapterCache)
fRunner (org.junit.runner.Runner)
fNewTestClass (java.lang.Class)
Imported Packages11java.util.List
org.junit.Ignore
org.junit.runner.Describable
org.junit.runner.Description
org.junit.runner.Request
org.junit.runner.Runner
org.junit.runner.manipulation.Filter
org.junit.runner.manipulation.Filterable
org.junit.runner.manipulation.NoTestsRemainException
org.junit.runner.manipulation.Sortable
org.junit.runner.manipulation.Sorter
Response For class12-
CBO12-
Maintainability Index131.66-
Cumulative Number of Comment Lines2-
Lines Of Code54-
Fan In1-
DIT1-
Maintainability Index (NC)131.66-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.33-
Local Method Calls3removeIgnored (2)
isIgnored (1)
getDescription (1)
LCOM222.00-
Max Complexity4-
Halstead Cumulative Volume1023.24-
Hierarchy Method Calls1this (1)
Number of Queries7-
Fan Out12-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0org.junit.runner.Description.getAnnotation (1)
org.junit.runner.Runner.run (1)
org.junit.runner.Description.childlessCopy (1)
org.junit.runner.Description.addChild (1)
org.junit.runner.Description.getChildren (1)
org.junit.runner.manipulation.Sorter.apply (1)
java.lang.Class.getName (1)
junit.framework.JUnit4TestAdapterCache.asTestList (1)
org.junit.runner.Runner.getDescription (1)
org.junit.runner.manipulation.Filter.apply (1)
newTestClass().getRunner (1)
org.junit.runner.Description.isEmpty (1)
junit.framework.JUnit4TestAdapterCache.getNotifier (1)
org.junit.runner.Request.classWithoutSuiteMethod (1)
org.junit.runner.Runner.testCount (1)
junit.framework.JUnit4TestAdapterCache.getDefault (1)
Superclasses0 -
Total Complexity15-
Subclasses0 -
Message Passing Coupling0-
Number of Commands5-
Interfaces1Test,Filterable,Sortable,Describable
Cumulative Number of Comments2-
Halstead Cumulative Length258-
Modifiers0 -
Summary of methods in junit.framework.JUnit4TestAdapter
Methods in Class : junit.framework.JUnit4TestAdapter
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
JUnit4TestAdapter1021714302.050.0231130154.670000064.737110010
JUnit4TestAdapter1043121866.480.0542060216.3600000136.1614617050
countTestCases1021110109.620.0101030013.000000036.54417010
filter1021512215.100.0221030114.000100053.77827010
getDescription1031812361.360.0211140015.601000064.538210030
getTestClass1121111152.210.0120031014.000000038.05318000
getTests1121614243.670.0221131014.000000060.926110020
isIgnored1021815321.480.0221030114.570000070.328110020
removeIgnored401058233126.540.091421101111.9220001262.3726932191
run1021813208.150.0212030113.120000066.611038020
sort1021311131.170.0111030112.920000044.97726010
toString1021312163.120.0211030023.500000046.60518010


Analysis of Method : JUnit4TestAdapter(Class) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NameJUnit4TestAdapter-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary14-
Halstead Effort302.05-
Halstead Bugs0.02-
Classes Referenced3? (1)
java.lang.Class (1)
junit.framework.JUnit4TestAdapterCache (1)
External Methods Called1junit.framework.JUnit4TestAdapterCache.getDefault (1)
Local Methods Called1this (1)
Lines Of Code3-
Number of Comments0-
Arguments1newTestClass (java.lang.Class)
Modifiers5private
final
private
private
public
Halstead Difficulty4.67-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume64.73-
Number of Operands7-
Variable References1newTestClass (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : JUnit4TestAdapter(Class, JUnit4TestAdapterCache) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NameJUnit4TestAdapter-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements4-
Halstead Length31-
Halstead Vocabulary21-
Halstead Effort866.48-
Halstead Bugs0.05-
Classes Referenced4org.junit.runner.Request (1)
? (1)
java.lang.Class (1)
junit.framework.JUnit4TestAdapterCache (1)
External Methods Called2org.junit.runner.Request.classWithoutSuiteMethod (1)
newTestClass().getRunner (1)
Local Methods Called0
Lines Of Code6-
Number of Comments0-
Arguments2newTestClass (java.lang.Class)
cache (JUnit4TestAdapterCache)
Modifiers1public
Halstead Difficulty6.36-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume136.16-
Number of Operands14-
Variable References6cache (1)
newTestClass (2)
fRunner (1)
fNewTestClass (1)
fCache (1)
Number of Operators17-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : countTestCases() in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NamecountTestCases-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary10-
Halstead Effort109.62-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called1org.junit.runner.Runner.testCount (1)
Local Methods Called0
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 References1fRunner (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : filter(Filter) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
Namefilter-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary12-
Halstead Effort215.10-
Halstead Bugs0.02-
Classes Referenced2org.junit.runner.manipulation.NoTestsRemainException (1)
org.junit.runner.manipulation.Filter (1)
External Methods Called1org.junit.runner.manipulation.Filter.apply (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1filter (org.junit.runner.manipulation.Filter)
Modifiers1public
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown1org.junit.runner.manipulation.NoTestsRemainException (1)
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume53.77-
Number of Operands8-
Variable References2filter (1)
fRunner (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getDescription() in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NamegetDescription-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length18-
Halstead Vocabulary12-
Halstead Effort361.36-
Halstead Bugs0.02-
Classes Referenced1org.junit.runner.Description (2)
External Methods Called1org.junit.runner.Runner.getDescription (1)
Local Methods Called1removeIgnored (1)
Lines Of Code4-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty5.60-
Variable Declarations1description (org.junit.runner.Description)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume64.53-
Number of Operands8-
Variable References2description (1)
fRunner (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : getTestClass() in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NamegetTestClass-
Cyclomatic Complexity1-
Number of Comment Lines1-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary11-
Halstead Effort152.21-
Halstead Bugs0.01-
Classes Referenced2? (1)
java.lang.Class (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume38.05-
Number of Operands3-
Variable References1fNewTestClass (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : getTests() in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NamegetTests-
Cyclomatic Complexity1-
Number of Comment Lines1-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary14-
Halstead Effort243.67-
Halstead Bugs0.02-
Classes Referenced2java.util.List (1)
junit.framework.Test (1)
External Methods Called1junit.framework.JUnit4TestAdapterCache.asTestList (1)
Local Methods Called1getDescription (1)
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers1public
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume60.92-
Number of Operands6-
Variable References1fCache (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : isIgnored(Description) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NameisIgnored-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary15-
Halstead Effort321.48-
Halstead Bugs0.02-
Classes Referenced2org.junit.runner.Description (1)
Ignore.class (1)
External Methods Called1org.junit.runner.Description.getAnnotation (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers1private
Halstead Difficulty4.57-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume70.32-
Number of Operands8-
Variable References1description (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : removeIgnored(Description) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NameremoveIgnored-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements10-
Halstead Length58-
Halstead Vocabulary23-
Halstead Effort3126.54-
Halstead Bugs0.09-
Classes Referenced1org.junit.runner.Description (6)
External Methods Called4org.junit.runner.Description.isEmpty (1)
org.junit.runner.Description.getChildren (1)
org.junit.runner.Description.addChild (1)
org.junit.runner.Description.childlessCopy (1)
Local Methods Called2removeIgnored (1)
isIgnored (1)
Lines Of Code11-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers1private
Halstead Difficulty11.92-
Variable Declarations2result (org.junit.runner.Description)
child (org.junit.runner.Description)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume262.37-
Number of Operands26-
Variable References9result (2)
description (3)
each (1)
EMPTY (1)
child (2)
Number of Operators32-
Max. depth of nesting1-
Number of Expressions9-
Number of Loops1-

Top of this page

Analysis of Method : run(TestResult) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
Namerun-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary13-
Halstead Effort208.15-
Halstead Bugs0.02-
Classes Referenced1junit.framework.TestResult (1)
External Methods Called2org.junit.runner.Runner.run (1)
junit.framework.JUnit4TestAdapterCache.getNotifier (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1result (TestResult)
Modifiers1public
Halstead Difficulty3.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume66.61-
Number of Operands10-
Variable References3result (1)
fCache (1)
fRunner (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : sort(Sorter) in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
Namesort-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary11-
Halstead Effort131.17-
Halstead Bugs0.01-
Classes Referenced1org.junit.runner.manipulation.Sorter (1)
External Methods Called1org.junit.runner.manipulation.Sorter.apply (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1sorter (org.junit.runner.manipulation.Sorter)
Modifiers1public
Halstead Difficulty2.92-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume44.97-
Number of Operands7-
Variable References2fRunner (1)
sorter (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : toString() in Class : junit.framework.JUnit4TestAdapter
FeatureNumberValues
NametoString-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary12-
Halstead Effort163.12-
Halstead Bugs0.02-
Classes Referenced1java.lang.String (1)
External Methods Called1java.lang.Class.getName (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers2@Override
public
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume46.60-
Number of Operands5-
Variable References1fNewTestClass (1)
Number of Operators8-
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