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

Dashboard for Class : org.junit.runners.BlockJUnit4ClassRunner
Cyclomatic Complexity

Summary of BlockJUnit4ClassRunner
FeatureNumberValues
NameBlockJUnit4ClassRunner-
Number of Methods30-
LCOM0.00-
Average Cyclomatic Complexity1.50-
Number of Statements114-
Halstead Cumulative Bugs1.50-
Halstead Effort37980.67-
UnWeighted Class Size30-
Instance Variables0 -
Imported Packages27java.lang.reflect.Field
java.lang.reflect.Modifier
java.util.ArrayList
java.util.List
org.junit.After
org.junit.Before
org.junit.Ignore
org.junit.Rule
org.junit.Test
org.junit.Test.None
org.junit.internal.AssumptionViolatedException
org.junit.internal.runners.model.EachTestNotifier
org.junit.internal.runners.model.MultipleFailureException
org.junit.internal.runners.model.ReflectiveCallable
org.junit.internal.runners.statements.ExpectException
org.junit.internal.runners.statements.Fail
org.junit.internal.runners.statements.FailOnTimeout
org.junit.internal.runners.statements.InvokeMethod
org.junit.internal.runners.statements.RunAfters
org.junit.internal.runners.statements.RunBefores
org.junit.rules.MethodRule
org.junit.runner.Description
org.junit.runner.notification.RunNotifier
org.junit.runners.model.FrameworkField
org.junit.runners.model.FrameworkMethod
org.junit.runners.model.InitializationError
org.junit.runners.model.Statement
Response For class30-
CBO22-
Maintainability Index128.91-
Cumulative Number of Comment Lines142-
Lines Of Code179-
Fan In5-
DIT2-
Maintainability Index (NC)128.68-
Specialization ratio1.50-
Reuse Ratio0.33-
COH0.00-
Local Method Calls25validateRuleField (1)
withRules (1)
possiblyExpectingExceptions (1)
getExpectedException (2)
methodBlock (1)
validateFields (1)
expectsException (1)
testName (1)
makeNotifier (1)
validateOnlyOneConstructor (1)
validateTestMethods (1)
ruleFields (2)
rules (1)
describeChild (1)
hasOneConstructor (2)
validateZeroArgConstructor (1)
methodInvoker (1)
createRule (1)
withAfters (1)
getTimeout (1)
computeTestMethods (2)
withPotentialTimeout (1)
validateInstanceMethods (1)
validateConstructor (1)
withBefores (1)
LCOM230.00-
Max Complexity4-
Halstead Cumulative Volume4492.81-
Hierarchy Method Calls3validatePublicVoidNoArgMethods (3)
getTestClass (8)
super.collectInitializationErrors (1)
Number of Queries20-
Fan Out18-
SuperClass Nameorg.junit.runners.ParentRunner-
SIX0.04-
External Method Calls0java.lang.reflect.Field.getType (1)
org.junit.internal.runners.statements.RunAfters.RunAfters (1)
java.lang.reflect.Field.getName (2)
org.junit.Test.timeout (1)
org.junit.internal.runners.model.EachTestNotifier.addFailure (1)
next().getAnnotatedMethods (1)
org.junit.internal.runners.model.EachTestNotifier.fireTestStarted (1)
java.util.ArrayList.ArrayList (1)
List.isEmpty (2)
java.lang.reflect.Field.getModifiers (1)
org.junit.internal.runners.model.EachTestNotifier.fireTestIgnored (1)
org.junit.internal.runners.statements.RunBefores.RunBefores (1)
createTestDescription().getJavaClass (1)
org.junit.internal.runners.statements.InvokeMethod.InvokeMethod (1)
each.apply (1)
method().evaluate (1)
org.junit.internal.runners.statements.ExpectException.ExpectException (1)
java.util.List.add (5)
getJavaClass().getConstructors (1)
org.junit.runners.model.FrameworkField.get (1)
org.junit.internal.runners.model.EachTestNotifier.EachTestNotifier (1)
getAnnotations().getAnnotatedMethods (1)
List.add (1)
errors().getOnlyConstructor (1)
org.junit.runner.Description.createTestDescription (1)
java.lang.Exception.Exception (5)
getOnlyConstructor().newInstance (1)
java.lang.RuntimeException.RuntimeException (1)
org.junit.internal.runners.model.ReflectiveCallable.ReflectiveCallable (1)
org.junit.runners.model.FrameworkMethod.getName (1)
org.junit.Test.expected (2)
target().getAnnotatedMethods (1)
org.junit.internal.runners.model.EachTestNotifier.addFailedAssumption (1)
org.junit.runners.model.FrameworkMethod.getAnnotations (1)
getOnlyConstructor().getParameterTypes (1)
org.junit.runners.model.FrameworkMethod.getAnnotation (3)
errors().size (1)
results().getAnnotatedFields (1)
gripe().getOnlyConstructor (1)
gripe().getJavaClass (1)
org.junit.internal.runners.model.EachTestNotifier.fireTestFinished (1)
org.junit.internal.runners.statements.Fail.Fail (1)
each.getField (1)
java.lang.reflect.Modifier.isPublic (1)
org.junit.internal.runners.statements.FailOnTimeout.FailOnTimeout (1)
Superclasses2org.junit.runner.Runner
org.junit.runners.ParentRunner
Total Complexity45-
Subclasses3org.junit.experimental.theories.Theories
org.junit.runners.JUnit4
org.junit.runners.Parameterized$TestClassRunnerForParameters
Message Passing Coupling0-
Number of Commands10-
Interfaces0 -
Cumulative Number of Comments26-
Halstead Cumulative Length993-
Modifiers0 -
Summary of methods in org.junit.runners.BlockJUnit4ClassRunner
Methods in Class : org.junit.runners.BlockJUnit4ClassRunner
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
BlockJUnit4ClassRunner1621513266.430.0220031114.800000055.51619010
collectInitializationErrors1053018750.590.0420460126.0000000125.1015415040
computeTestMethods1821815316.460.0231134014.500000070.326012020
createRule2043121866.480.0552090216.3600112136.1614217130
createTest1521713220.180.0222131013.500100062.916011030
describeChild1022717502.140.0423240124.5500000110.3613214050
expectsException1021412175.660.0210130113.500000050.19717020
getChildren1021413207.220.0220130024.000000051.81509010
getExpectedException20336231984.710.05410601112.1900000162.8513323050
getTimeout2032115421.940.0311050115.140000082.049212020
hasOneConstructor1021914253.190.0202130013.500000072.347112050
makeNotifier1032316465.110.0341150215.061000092.0013310030
methodBlock2321297336850.290.166262011114.0020102489.314925481110
methodInvoker1621613228.370.0241034213.860000059.21927010
possiblyExpectingExceptions18339261649.850.0662261329.0010000183.3221518060
ruleFields1021815316.460.0231130014.500000070.326012020
rules24742241829.400.0652261119.5010000192.5719423041
runChild431181374494.850.146721732210.6510205421.973511461100
testName1421311161.900.0121031113.600000044.97617010
validateConstructor1531813256.920.0220241113.860000066.61929020
validateFields2052519573.470.0431240115.4000000106.2012213021
validateInstanceMethods27550291971.770.0853371128.1200000242.9023427060
validateOnlyOneConstructor2443022869.590.0442161116.5010001133.7813217150
validateRuleField30368313085.160.1166080219.1600000336.89296390160
validateTestMethods1421816324.000.0230131114.500000072.00919000
validateZeroArgConstructor25444291563.060.0744271117.3110001213.75183261110
withAfters19343292144.640.07631613210.2710000208.8922521060
withBefores17343292144.640.07631613210.2710000208.8922521060
withPotentialTimeout17339281706.130.0652151329.1010000187.4921518060
withRules20737211340.750.0541170318.2510000162.5222815041


Analysis of Method : BlockJUnit4ClassRunner(Class) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NameBlockJUnit4ClassRunner-
Cyclomatic Complexity1-
Number of Comment Lines6-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary13-
Halstead Effort266.43-
Halstead Bugs0.02-
Classes Referenced2? (1)
java.lang.Class (1)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1klass (java.lang.Class)
Modifiers1public
Halstead Difficulty4.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume55.51-
Number of Operands6-
Variable References1klass (1)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : collectInitializationErrors(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamecollectInitializationErrors-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements5-
Halstead Length30-
Halstead Vocabulary18-
Halstead Effort750.59-
Halstead Bugs0.04-
Classes Referenced2java.util.List (1)
java.lang.Throwable (2)
External Methods Called0
Local Methods Called4validateInstanceMethods (1)
validateConstructor (1)
super.collectInitializationErrors (1)
validateFields (1)
Lines Of Code6-
Number of Comments0-
Arguments1errors (java.util.List)
Modifiers2@Override
protected
Halstead Difficulty6.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume125.10-
Number of Operands15-
Variable References4errors (4)
Number of Operators15-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : computeTestMethods() in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamecomputeTestMethods-
Cyclomatic Complexity1-
Number of Comment Lines8-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary15-
Halstead Effort316.46-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
org.junit.runners.model.FrameworkMethod (1)
Test.class (1)
External Methods Called1getAnnotations().getAnnotatedMethods (1)
Local Methods Called1getTestClass (1)
Lines Of Code3-
Number of Comments4-
Arguments0 -
Modifiers1protected
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume70.32-
Number of Operands6-
Variable References0
Number of Operators12-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : createRule(Object, FrameworkField) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamecreateRule-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements4-
Halstead Length31-
Halstead Vocabulary21-
Halstead Effort866.48-
Halstead Bugs0.05-
Classes Referenced5java.lang.RuntimeException (1)
org.junit.runners.model.FrameworkField (1)
org.junit.rules.MethodRule (3)
java.lang.IllegalAccessException (1)
java.lang.Object (1)
External Methods Called2java.lang.RuntimeException.RuntimeException (1)
org.junit.runners.model.FrameworkField.get (1)
Local Methods Called0
Lines Of Code9-
Number of Comments0-
Arguments2test (java.lang.Object)
each (org.junit.runners.model.FrameworkField)
Modifiers1private
Halstead Difficulty6.36-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced1java.lang.IllegalAccessException (1)
Number of casts1-
Total Depth of Nesting2-
Halstead Volume136.16-
Number of Operands14-
Variable References2each (1)
test (1)
Number of Operators17-
Max. depth of nesting1-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : createTest() in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamecreateTest-
Cyclomatic Complexity1-
Number of Comment Lines5-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary13-
Halstead Effort220.18-
Halstead Bugs0.02-
Classes Referenced2java.lang.Object (1)
java.lang.Exception (1)
External Methods Called2getOnlyConstructor().newInstance (1)
errors().getOnlyConstructor (1)
Local Methods Called1getTestClass (1)
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers1protected
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown1java.lang.Exception (1)
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 Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : describeChild(FrameworkMethod) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamedescribeChild-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length27-
Halstead Vocabulary17-
Halstead Effort502.14-
Halstead Bugs0.04-
Classes Referenced2org.junit.runner.Description (2)
org.junit.runners.model.FrameworkMethod (1)
External Methods Called3org.junit.runner.Description.createTestDescription (1)
org.junit.runners.model.FrameworkMethod.getAnnotations (1)
createTestDescription().getJavaClass (1)
Local Methods Called2testName (1)
getTestClass (1)
Lines Of Code4-
Number of Comments0-
Arguments1method (org.junit.runners.model.FrameworkMethod)
Modifiers2@Override
protected
Halstead Difficulty4.55-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume110.36-
Number of Operands13-
Variable References2method (2)
Number of Operators14-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : expectsException(Test) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NameexpectsException-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length14-
Halstead Vocabulary12-
Halstead Effort175.66-
Halstead Bugs0.02-
Classes Referenced1org.junit.Test (1)
External Methods Called0
Local Methods Called1getExpectedException (1)
Lines Of Code3-
Number of Comments0-
Arguments1annotation (org.junit.Test)
Modifiers1private
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume50.19-
Number of Operands7-
Variable References1annotation (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : getChildren() in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamegetChildren-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length14-
Halstead Vocabulary13-
Halstead Effort207.22-
Halstead Bugs0.02-
Classes Referenced2java.util.List (1)
org.junit.runners.model.FrameworkMethod (1)
External Methods Called0
Local Methods Called1computeTestMethods (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers2@Override
protected
Halstead Difficulty4.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume51.81-
Number of Operands5-
Variable References0
Number of Operators9-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : getExpectedException(Test) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamegetExpectedException-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements3-
Halstead Length36-
Halstead Vocabulary23-
Halstead Effort1984.71-
Halstead Bugs0.05-
Classes Referenced4?extendsThrowable (1)
java.lang.Class (1)
org.junit.Test (1)
None.class (1)
External Methods Called1org.junit.Test.expected (2)
Local Methods Called0
Lines Of Code6-
Number of Comments0-
Arguments1annotation (org.junit.Test)
Modifiers1private
Halstead Difficulty12.19-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume162.85-
Number of Operands13-
Variable References3annotation (3)
Number of Operators23-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : getTimeout(Test) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamegetTimeout-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements3-
Halstead Length21-
Halstead Vocabulary15-
Halstead Effort421.94-
Halstead Bugs0.03-
Classes Referenced1org.junit.Test (1)
External Methods Called1org.junit.Test.timeout (1)
Local Methods Called0
Lines Of Code5-
Number of Comments0-
Arguments1annotation (org.junit.Test)
Modifiers1private
Halstead Difficulty5.14-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume82.04-
Number of Operands9-
Variable References2annotation (2)
Number of Operators12-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : hasOneConstructor() in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamehasOneConstructor-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length19-
Halstead Vocabulary14-
Halstead Effort253.19-
Halstead Bugs0.02-
Classes Referenced0
External Methods Called2gripe().getJavaClass (1)
getJavaClass().getConstructors (1)
Local Methods Called1getTestClass (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty3.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume72.34-
Number of Operands7-
Variable References1length (1)
Number of Operators12-
Max. depth of nesting0-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : makeNotifier(FrameworkMethod, RunNotifier) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamemakeNotifier-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements3-
Halstead Length23-
Halstead Vocabulary16-
Halstead Effort465.11-
Halstead Bugs0.03-
Classes Referenced4org.junit.runner.notification.RunNotifier (1)
org.junit.runner.Description (1)
org.junit.runners.model.FrameworkMethod (1)
org.junit.internal.runners.model.EachTestNotifier (2)
External Methods Called1org.junit.internal.runners.model.EachTestNotifier.EachTestNotifier (1)
Local Methods Called1describeChild (1)
Lines Of Code5-
Number of Comments0-
Arguments2method (org.junit.runners.model.FrameworkMethod)
notifier (org.junit.runner.notification.RunNotifier)
Modifiers1private
Halstead Difficulty5.06-
Variable Declarations1description (org.junit.runner.Description)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume92.00-
Number of Operands13-
Variable References3description (1)
notifier (1)
method (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : methodBlock(FrameworkMethod) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamemethodBlock-
Cyclomatic Complexity2-
Number of Comment Lines32-
Number of Statements12-
Halstead Length97-
Halstead Vocabulary33-
Halstead Effort6850.29-
Halstead Bugs0.16-
Classes Referenced6org.junit.internal.runners.model.ReflectiveCallable (1)
org.junit.internal.runners.statements.Fail (1)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
java.lang.Throwable (1)
org.junit.rules.Statement (2)
External Methods Called2org.junit.internal.runners.model.ReflectiveCallable.ReflectiveCallable (1)
org.junit.internal.runners.statements.Fail.Fail (1)
Local Methods Called6withPotentialTimeout (1)
methodInvoker (1)
withAfters (1)
withBefores (1)
possiblyExpectingExceptions (1)
withRules (1)
Lines Of Code20-
Number of Comments1-
Arguments1method (org.junit.runners.model.FrameworkMethod)
Modifiers1protected
Halstead Difficulty14.00-
Variable Declarations2statement (org.junit.rules.Statement)
test (java.lang.Object)
Exceptions Thrown0
Exceptions Referenced1java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting2-
Halstead Volume489.31-
Number of Operands49-
Variable References25statement (11)
e (1)
method (6)
test (7)
Number of Operators48-
Max. depth of nesting1-
Number of Expressions11-
Number of Loops0-

Top of this page

Analysis of Method : methodInvoker(FrameworkMethod, Object) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamemethodInvoker-
Cyclomatic Complexity1-
Number of Comment Lines6-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary13-
Halstead Effort228.37-
Halstead Bugs0.02-
Classes Referenced4org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
org.junit.internal.runners.statements.InvokeMethod (1)
org.junit.rules.Statement (1)
External Methods Called1org.junit.internal.runners.statements.InvokeMethod.InvokeMethod (1)
Local Methods Called0
Lines Of Code3-
Number of Comments4-
Arguments2method (org.junit.runners.model.FrameworkMethod)
test (java.lang.Object)
Modifiers1protected
Halstead Difficulty3.86-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume59.21-
Number of Operands9-
Variable References2test (1)
method (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : possiblyExpectingExceptions(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamepossiblyExpectingExceptions-
Cyclomatic Complexity1-
Number of Comment Lines8-
Number of Statements3-
Halstead Length39-
Halstead Vocabulary26-
Halstead Effort1649.85-
Halstead Bugs0.06-
Classes Referenced6org.junit.internal.runners.statements.ExpectException (1)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
org.junit.Test (1)
org.junit.rules.Statement (2)
Test.class (1)
External Methods Called2org.junit.internal.runners.statements.ExpectException.ExpectException (1)
org.junit.runners.model.FrameworkMethod.getAnnotation (1)
Local Methods Called2expectsException (1)
getExpectedException (1)
Lines Of Code6-
Number of Comments1-
Arguments3method (org.junit.runners.model.FrameworkMethod)
test (java.lang.Object)
next (org.junit.rules.Statement)
Modifiers2@Deprecated
protected
Halstead Difficulty9.00-
Variable Declarations1annotation (org.junit.Test)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume183.32-
Number of Operands21-
Variable References5annotation (2)
next (2)
method (1)
Number of Operators18-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : ruleFields() in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NameruleFields-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary15-
Halstead Effort316.46-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
Rule.class (1)
org.junit.runners.model.FrameworkField (1)
External Methods Called1results().getAnnotatedFields (1)
Local Methods Called1getTestClass (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume70.32-
Number of Operands6-
Variable References0
Number of Operators12-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : rules(Object) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
Namerules-
Cyclomatic Complexity2-
Number of Comment Lines4-
Number of Statements7-
Halstead Length42-
Halstead Vocabulary24-
Halstead Effort1829.40-
Halstead Bugs0.06-
Classes Referenced5java.util.List (2)
java.util.ArrayList (1)
org.junit.runners.model.FrameworkField (1)
org.junit.rules.MethodRule (3)
java.lang.Object (1)
External Methods Called2List.add (1)
java.util.ArrayList.ArrayList (1)
Local Methods Called2ruleFields (1)
createRule (1)
Lines Of Code6-
Number of Comments1-
Arguments1test (java.lang.Object)
Modifiers1protected
Halstead Difficulty9.50-
Variable Declarations1results (List<MethodRule>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume192.57-
Number of Operands19-
Variable References4results (2)
each (1)
test (1)
Number of Operators23-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops1-

Top of this page

Analysis of Method : runChild(FrameworkMethod, RunNotifier) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamerunChild-
Cyclomatic Complexity4-
Number of Comment Lines3-
Number of Statements11-
Halstead Length81-
Halstead Vocabulary37-
Halstead Effort4494.85-
Halstead Bugs0.14-
Classes Referenced6org.junit.internal.AssumptionViolatedException (1)
org.junit.runner.notification.RunNotifier (1)
Ignore.class (1)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Throwable (1)
org.junit.internal.runners.model.EachTestNotifier (1)
External Methods Called7org.junit.runners.model.FrameworkMethod.getAnnotation (1)
org.junit.internal.runners.model.EachTestNotifier.fireTestStarted (1)
org.junit.internal.runners.model.EachTestNotifier.addFailedAssumption (1)
org.junit.internal.runners.model.EachTestNotifier.addFailure (1)
org.junit.internal.runners.model.EachTestNotifier.fireTestFinished (1)
method().evaluate (1)
org.junit.internal.runners.model.EachTestNotifier.fireTestIgnored (1)
Local Methods Called2makeNotifier (1)
methodBlock (1)
Lines Of Code17-
Number of Comments3-
Arguments2method (org.junit.runners.model.FrameworkMethod)
notifier (org.junit.runner.notification.RunNotifier)
Modifiers2@Override
protected
Halstead Difficulty10.65-
Variable Declarations1eachNotifier (org.junit.internal.runners.model.EachTestNotifier)
Exceptions Thrown0
Exceptions Referenced2org.junit.internal.AssumptionViolatedException (1)
java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting5-
Halstead Volume421.97-
Number of Operands35-
Variable References11notifier (1)
e (2)
eachNotifier (5)
method (3)
Number of Operators46-
Max. depth of nesting1-
Number of Expressions10-
Number of Loops0-

Top of this page

Analysis of Method : testName(FrameworkMethod) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NametestName-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary11-
Halstead Effort161.90-
Halstead Bugs0.01-
Classes Referenced2java.lang.String (1)
org.junit.runners.model.FrameworkMethod (1)
External Methods Called1org.junit.runners.model.FrameworkMethod.getName (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments1method (org.junit.runners.model.FrameworkMethod)
Modifiers1protected
Halstead Difficulty3.60-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume44.97-
Number of Operands6-
Variable References1method (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : validateConstructor(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateConstructor-
Cyclomatic Complexity1-
Number of Comment Lines5-
Number of Statements3-
Halstead Length18-
Halstead Vocabulary13-
Halstead Effort256.92-
Halstead Bugs0.02-
Classes Referenced2java.util.List (1)
java.lang.Throwable (2)
External Methods Called0
Local Methods Called2validateOnlyOneConstructor (1)
validateZeroArgConstructor (1)
Lines Of Code4-
Number of Comments1-
Arguments1errors (java.util.List)
Modifiers1protected
Halstead Difficulty3.86-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume66.61-
Number of Operands9-
Variable References2errors (2)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : validateFields(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateFields-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements5-
Halstead Length25-
Halstead Vocabulary19-
Halstead Effort573.47-
Halstead Bugs0.04-
Classes Referenced3java.util.List (1)
org.junit.runners.model.FrameworkField (1)
java.lang.Throwable (2)
External Methods Called1each.getField (1)
Local Methods Called2ruleFields (1)
validateRuleField (1)
Lines Of Code4-
Number of Comments0-
Arguments1errors (java.util.List)
Modifiers1private
Halstead Difficulty5.40-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume106.20-
Number of Operands12-
Variable References2each (1)
errors (1)
Number of Operators13-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops1-

Top of this page

Analysis of Method : validateInstanceMethods(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateInstanceMethods-
Cyclomatic Complexity2-
Number of Comment Lines7-
Number of Statements5-
Halstead Length50-
Halstead Vocabulary29-
Halstead Effort1971.77-
Halstead Bugs0.08-
Classes Referenced5java.util.List (1)
After.class (1)
java.lang.Throwable (2)
Before.class (1)
java.lang.Exception (1)
External Methods Called3java.lang.Exception.Exception (1)
errors().size (1)
java.util.List.add (1)
Local Methods Called3validateTestMethods (1)
computeTestMethods (1)
validatePublicVoidNoArgMethods (2)
Lines Of Code7-
Number of Comments1-
Arguments1errors (java.util.List)
Modifiers2@Deprecated
protected
Halstead Difficulty8.12-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume242.90-
Number of Operands23-
Variable References4errors (4)
Number of Operators27-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : validateOnlyOneConstructor(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateOnlyOneConstructor-
Cyclomatic Complexity2-
Number of Comment Lines4-
Number of Statements4-
Halstead Length30-
Halstead Vocabulary22-
Halstead Effort869.59-
Halstead Bugs0.04-
Classes Referenced4java.util.List (1)
java.lang.String (1)
java.lang.Throwable (2)
java.lang.Exception (1)
External Methods Called2java.util.List.add (1)
java.lang.Exception.Exception (1)
Local Methods Called1hasOneConstructor (1)
Lines Of Code6-
Number of Comments1-
Arguments1errors (java.util.List)
Modifiers1protected
Halstead Difficulty6.50-
Variable Declarations1gripe (java.lang.String)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume133.78-
Number of Operands13-
Variable References2gripe (1)
errors (1)
Number of Operators17-
Max. depth of nesting1-
Number of Expressions5-
Number of Loops0-

Top of this page

Analysis of Method : validateRuleField(Field, List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateRuleField-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements3-
Halstead Length68-
Halstead Vocabulary31-
Halstead Effort3085.16-
Halstead Bugs0.11-
Classes Referenced6java.util.List (1)
java.lang.reflect.Modifier (1)
java.lang.Throwable (2)
java.lang.Exception (2)
java.lang.reflect.Field (1)
MethodRule.class (1)
External Methods Called6java.util.List.add (2)
java.lang.reflect.Field.getModifiers (1)
java.lang.reflect.Modifier.isPublic (1)
java.lang.reflect.Field.getType (1)
java.lang.Exception.Exception (2)
java.lang.reflect.Field.getName (2)
Local Methods Called0
Lines Of Code8-
Number of Comments0-
Arguments2field (java.lang.reflect.Field)
errors (java.util.List)
Modifiers1private
Halstead Difficulty9.16-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume336.89-
Number of Operands29-
Variable References6field (4)
errors (2)
Number of Operators39-
Max. depth of nesting0-
Number of Expressions16-
Number of Loops0-

Top of this page

Analysis of Method : validateTestMethods(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateTestMethods-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary16-
Halstead Effort324.00-
Halstead Bugs0.02-
Classes Referenced3java.util.List (1)
java.lang.Throwable (2)
Test.class (1)
External Methods Called0
Local Methods Called1validatePublicVoidNoArgMethods (1)
Lines Of Code3-
Number of Comments1-
Arguments1errors (java.util.List)
Modifiers1protected
Halstead Difficulty4.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume72.00-
Number of Operands9-
Variable References1errors (1)
Number of Operators9-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : validateZeroArgConstructor(List) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamevalidateZeroArgConstructor-
Cyclomatic Complexity2-
Number of Comment Lines5-
Number of Statements4-
Halstead Length44-
Halstead Vocabulary29-
Halstead Effort1563.06-
Halstead Bugs0.07-
Classes Referenced4java.util.List (1)
java.lang.String (1)
java.lang.Throwable (2)
java.lang.Exception (1)
External Methods Called4getOnlyConstructor().getParameterTypes (1)
java.lang.Exception.Exception (1)
gripe().getOnlyConstructor (1)
java.util.List.add (1)
Local Methods Called2hasOneConstructor (1)
getTestClass (1)
Lines Of Code7-
Number of Comments1-
Arguments1errors (java.util.List)
Modifiers1protected
Halstead Difficulty7.31-
Variable Declarations1gripe (java.lang.String)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting1-
Halstead Volume213.75-
Number of Operands18-
Variable References3gripe (1)
length (1)
errors (1)
Number of Operators26-
Max. depth of nesting1-
Number of Expressions11-
Number of Loops0-

Top of this page

Analysis of Method : withAfters(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamewithAfters-
Cyclomatic Complexity1-
Number of Comment Lines9-
Number of Statements3-
Halstead Length43-
Halstead Vocabulary29-
Halstead Effort2144.64-
Halstead Bugs0.07-
Classes Referenced6java.util.List (1)
After.class (1)
org.junit.runners.model.FrameworkMethod (3)
java.lang.Object (1)
org.junit.internal.runners.statements.RunAfters (1)
org.junit.rules.Statement (2)
External Methods Called3org.junit.internal.runners.statements.RunAfters.RunAfters (1)
List.isEmpty (1)
target().getAnnotatedMethods (1)
Local Methods Called1getTestClass (1)
Lines Of Code6-
Number of Comments1-
Arguments3method (org.junit.runners.model.FrameworkMethod)
target (java.lang.Object)
statement (org.junit.rules.Statement)
Modifiers2@Deprecated
protected
Halstead Difficulty10.27-
Variable Declarations1afters (List<FrameworkMethod>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume208.89-
Number of Operands22-
Variable References5statement (2)
target (1)
afters (2)
Number of Operators21-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : withBefores(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamewithBefores-
Cyclomatic Complexity1-
Number of Comment Lines7-
Number of Statements3-
Halstead Length43-
Halstead Vocabulary29-
Halstead Effort2144.64-
Halstead Bugs0.07-
Classes Referenced6java.util.List (1)
org.junit.internal.runners.statements.RunBefores (1)
org.junit.runners.model.FrameworkMethod (3)
java.lang.Object (1)
Before.class (1)
org.junit.rules.Statement (2)
External Methods Called3next().getAnnotatedMethods (1)
org.junit.internal.runners.statements.RunBefores.RunBefores (1)
List.isEmpty (1)
Local Methods Called1getTestClass (1)
Lines Of Code6-
Number of Comments1-
Arguments3method (org.junit.runners.model.FrameworkMethod)
target (java.lang.Object)
statement (org.junit.rules.Statement)
Modifiers2@Deprecated
protected
Halstead Difficulty10.27-
Variable Declarations1befores (List<FrameworkMethod>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume208.89-
Number of Operands22-
Variable References5statement (2)
target (1)
befores (2)
Number of Operators21-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : withPotentialTimeout(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamewithPotentialTimeout-
Cyclomatic Complexity1-
Number of Comment Lines7-
Number of Statements3-
Halstead Length39-
Halstead Vocabulary28-
Halstead Effort1706.13-
Halstead Bugs0.06-
Classes Referenced5org.junit.internal.runners.statements.FailOnTimeout (1)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
org.junit.rules.Statement (2)
Test.class (1)
External Methods Called2org.junit.runners.model.FrameworkMethod.getAnnotation (1)
org.junit.internal.runners.statements.FailOnTimeout.FailOnTimeout (1)
Local Methods Called1getTimeout (1)
Lines Of Code5-
Number of Comments1-
Arguments3method (org.junit.runners.model.FrameworkMethod)
test (java.lang.Object)
next (org.junit.rules.Statement)
Modifiers2@Deprecated
protected
Halstead Difficulty9.10-
Variable Declarations1timeout (long)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume187.49-
Number of Operands21-
Variable References5next (2)
timeout (2)
method (1)
Number of Operators18-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : withRules(FrameworkMethod, Object, Statement) in Class : org.junit.runners.BlockJUnit4ClassRunner
FeatureNumberValues
NamewithRules-
Cyclomatic Complexity2-
Number of Comment Lines0-
Number of Statements7-
Halstead Length37-
Halstead Vocabulary21-
Halstead Effort1340.75-
Halstead Bugs0.05-
Classes Referenced4org.junit.rules.MethodRule (1)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
org.junit.rules.Statement (3)
External Methods Called1each.apply (1)
Local Methods Called1rules (1)
Lines Of Code7-
Number of Comments0-
Arguments3method (org.junit.runners.model.FrameworkMethod)
target (java.lang.Object)
statement (org.junit.rules.Statement)
Modifiers1private
Halstead Difficulty8.25-
Variable Declarations1result (org.junit.rules.Statement)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume162.52-
Number of Operands22-
Variable References8result (3)
statement (1)
each (1)
target (2)
method (1)
Number of Operators15-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops1-

Top of this page

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