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

Dashboard for Class : junit.framework.JUnit4TestAdapterCache
Cyclomatic Complexity

Summary of JUnit4TestAdapterCache
FeatureNumberValues
NameJUnit4TestAdapterCache-
Number of Methods5-
LCOM0.50-
Average Cyclomatic Complexity2.20-
Number of Statements30-
Halstead Cumulative Bugs0.43-
Halstead Effort12513.35-
UnWeighted Class Size7-
Instance Variables2fInstance (junit.framework.JUnit4TestAdapterCache)
serialVersionUID (long)
Imported Packages8java.util.ArrayList
java.util.Arrays
java.util.HashMap
java.util.List
org.junit.runner.Description
org.junit.runner.notification.Failure
org.junit.runner.notification.RunListener
org.junit.runner.notification.RunNotifier
Response For class6-
CBO10-
Maintainability Index115.03-
Cumulative Number of Comment Lines0-
Lines Of Code42-
Fan In2-
DIT1-
Maintainability Index (NC)115.03-
Specialization ratio0.00-
Reuse Ratio0.50-
COH0.10-
Local Method Calls2createTest (2)
asTest (3)
LCOM28.00-
Max Complexity3-
Halstead Cumulative Volume1280.04-
Hierarchy Method Calls3get (1)
containsKey (1)
put (1)
Number of Queries5-
Fan Out9-
SuperClass Namejava.util.HashMap-
SIX0.00-
External Method Calls1junit.framework.TestSuite.TestSuite (1)
org.junit.runner.notification.RunNotifier.addListener (1)
junit.framework.JUnit4TestAdapterCache.JUnit4TestAdapterCache (1)
org.junit.runner.Description.isTest (2)
List.add (1)
org.junit.runner.notification.RunNotifier.RunNotifier (1)
junit.framework.TestSuite.addTest (1)
java.util.Arrays.asList (1)
org.junit.runner.Description.isSuite (1)
org.junit.runner.notification.RunListener.RunListener (1)
java.util.ArrayList.ArrayList (1)
org.junit.runner.Description.getChildren (2)
junit.framework.JUnit4TestCaseFacade.JUnit4TestCaseFacade (1)
org.junit.runner.Description.getDisplayName (1)
Superclasses1java.util.HashMap
Total Complexity11-
Subclasses0 -
Message Passing Coupling1-
Number of Commands0-
Interfaces0 -
Cumulative Number of Comments0-
Halstead Cumulative Length273-
Modifiers0 -
Summary of methods in junit.framework.JUnit4TestAdapterCache
Methods in Class : junit.framework.JUnit4TestAdapterCache
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
asTest30438181267.660.0521490118.0000001158.4616622160
asTestList30961283665.610.105511101112.5010002293.2525636281
createTest30851242176.450.08461100109.3110001233.8322729181
getDefault1029985.590.0110030083.000000028.53316000
getNotifier10494364918.050.164302102110.1210000485.9746248040


Analysis of Method : asTest(Description) in Class : junit.framework.JUnit4TestAdapterCache
FeatureNumberValues
NameasTest-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements4-
Halstead Length38-
Halstead Vocabulary18-
Halstead Effort1267.66-
Halstead Bugs0.05-
Classes Referenced2org.junit.runner.Description (1)
junit.framework.Test (1)
External Methods Called1org.junit.runner.Description.isSuite (1)
Local Methods Called4createTest (2)
get (1)
containsKey (1)
put (1)
Lines Of Code9-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers1public
Halstead Difficulty8.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume158.46-
Number of Operands16-
Variable References6description (6)
Number of Operators22-
Max. depth of nesting1-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : asTestList(Description) in Class : junit.framework.JUnit4TestAdapterCache
FeatureNumberValues
NameasTestList-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements9-
Halstead Length61-
Halstead Vocabulary28-
Halstead Effort3665.61-
Halstead Bugs0.10-
Classes Referenced5java.util.List (2)
org.junit.runner.Description (2)
java.util.ArrayList (1)
java.util.Arrays (1)
junit.framework.Test (3)
External Methods Called5org.junit.runner.Description.isTest (1)
java.util.Arrays.asList (1)
List.add (1)
java.util.ArrayList.ArrayList (1)
org.junit.runner.Description.getChildren (1)
Local Methods Called1asTest (2)
Lines Of Code11-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers1public
Halstead Difficulty12.50-
Variable Declarations1returnThis (List<Test>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting2-
Halstead Volume293.25-
Number of Operands25-
Variable References6description (3)
child (1)
returnThis (2)
Number of Operators36-
Max. depth of nesting2-
Number of Expressions8-
Number of Loops1-

Top of this page

Analysis of Method : createTest(Description) in Class : junit.framework.JUnit4TestAdapterCache
FeatureNumberValues
NamecreateTest-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements8-
Halstead Length51-
Halstead Vocabulary24-
Halstead Effort2176.45-
Halstead Bugs0.08-
Classes Referenced4org.junit.runner.Description (2)
junit.framework.TestSuite (2)
junit.framework.JUnit4TestCaseFacade (1)
junit.framework.Test (1)
External Methods Called6org.junit.runner.Description.isTest (1)
org.junit.runner.Description.getChildren (1)
junit.framework.TestSuite.TestSuite (1)
junit.framework.JUnit4TestCaseFacade.JUnit4TestCaseFacade (1)
org.junit.runner.Description.getDisplayName (1)
junit.framework.TestSuite.addTest (1)
Local Methods Called1asTest (1)
Lines Of Code10-
Number of Comments0-
Arguments1description (org.junit.runner.Description)
Modifiers0 -
Halstead Difficulty9.31-
Variable Declarations1suite (TestSuite)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume233.83-
Number of Operands22-
Variable References7suite (2)
description (4)
child (1)
Number of Operators29-
Max. depth of nesting1-
Number of Expressions8-
Number of Loops1-

Top of this page

Analysis of Method : getDefault() in Class : junit.framework.JUnit4TestAdapterCache
FeatureNumberValues
NamegetDefault-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length9-
Halstead Vocabulary9-
Halstead Effort85.59-
Halstead Bugs0.01-
Classes Referenced1junit.framework.JUnit4TestAdapterCache (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers8private
static
final
private
static
final
public
static
Halstead Difficulty3.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume28.53-
Number of Operands3-
Variable References1fInstance (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : getNotifier(TestResult, JUnit4TestAdapter) in Class : junit.framework.JUnit4TestAdapterCache
FeatureNumberValues
NamegetNotifier-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements4-
Halstead Length94-
Halstead Vocabulary36-
Halstead Effort4918.05-
Halstead Bugs0.16-
Classes Referenced4org.junit.runner.notification.RunNotifier (3)
org.junit.runner.notification.RunListener (1)
junit.framework.TestResult (1)
junit.framework.JUnit4TestAdapter (1)
External Methods Called3org.junit.runner.notification.RunNotifier.RunNotifier (1)
org.junit.runner.notification.RunNotifier.addListener (1)
org.junit.runner.notification.RunListener.RunListener (1)
Local Methods Called0
Lines Of Code21-
Number of Comments0-
Arguments2result (TestResult)
adapter (junit.framework.JUnit4TestAdapter)
Modifiers1public
Halstead Difficulty10.12-
Variable Declarations1notifier (org.junit.runner.notification.RunNotifier)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume485.97-
Number of Operands46-
Variable References2notifier (2)
Number of Operators48-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

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