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

Dashboard for Class : org.junit.internal.runners.MethodRoadie
Cyclomatic Complexity

Summary of MethodRoadie
FeatureNumberValues
NameMethodRoadie-
Number of Methods9-
LCOM0.19-
Average Cyclomatic Complexity3.22-
Number of Statements64-
Halstead Cumulative Bugs0.90-
Halstead Effort29116.35-
UnWeighted Class Size13-
Instance Variables4fDescription (org.junit.runner.Description)
fNotifier (org.junit.runner.notification.RunNotifier)
fTest (java.lang.Object)
fTestMethod (TestMethod)
Imported Packages14java.lang.reflect.InvocationTargetException
java.lang.reflect.Method
java.util.List
java.util.concurrent.Callable
java.util.concurrent.ExecutorService
java.util.concurrent.Executors
java.util.concurrent.Future
java.util.concurrent.TimeUnit
java.util.concurrent.TimeoutException
org.junit.internal.AssumptionViolatedException
org.junit.runner.Description
org.junit.runner.notification.Failure
org.junit.runner.notification.RunNotifier
org.junit.runners.BlockJUnit4ClassRunner
Response For class9-
CBO8-
Maintainability Index111.57-
Cumulative Number of Comment Lines5-
Lines Of Code99-
Fan In1-
DIT1-
Maintainability Index (NC)111.57-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.42-
Local Method Calls6runBefores (1)
runTest (1)
addFailure (7)
runWithTimeout (1)
runAfters (1)
runBeforesThenTestThenAfters (2)
LCOM23.00-
Max Complexity7-
Halstead Cumulative Volume2694.39-
Hierarchy Method Calls0
Number of Queries0-
Fan Out7-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0org.junit.internal.runners.TestMethod.isIgnored (1)
java.lang.AssertionError.AssertionError (1)
org.junit.internal.runners.FailedBefore.FailedBefore (2)
org.junit.internal.runners.TestMethod.getExpectedException (2)
getClass().getName (1)
org.junit.internal.runners.TestMethod.getAfters (1)
java.lang.Throwable.getClass (1)
org.junit.internal.runners.TestMethod.isUnexpected (1)
getExpectedException().getName (2)
org.junit.internal.runners.Runnable.run (1)
org.junit.internal.runners.TestMethod.getTimeout (1)
org.junit.internal.runners.Runnable.Runnable (2)
org.junit.runner.notification.Failure.Failure (1)
before.invoke (1)
org.junit.runner.notification.RunNotifier.fireTestFinished (1)
org.junit.runner.notification.RunNotifier.fireTestFailure (1)
org.junit.internal.runners.TestMethod.expectsException (2)
org.junit.internal.runners.TestMethod.getBefores (1)
java.lang.Exception.Exception (1)
after.invoke (1)
org.junit.internal.runners.TestMethod.invoke (1)
org.junit.runner.notification.RunNotifier.fireTestIgnored (1)
org.junit.runner.notification.RunNotifier.fireTestStarted (1)
java.lang.RuntimeException.RuntimeException (1)
e.getTargetException (3)
Superclasses0 -
Total Complexity29-
Subclasses0 -
Message Passing Coupling0-
Number of Commands9-
Interfaces0 -
Cumulative Number of Comments3-
Halstead Cumulative Length541-
Modifiers0 -
Summary of methods in org.junit.internal.runners.MethodRoadie
Methods in Class : org.junit.internal.runners.MethodRoadie
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
MethodRoadie1052818381.710.0440060483.2700000116.7617811040
addFailure1021714218.450.0222030113.380000064.73938020
run301057272385.050.09052160018.8010003271.03221035190
runAfters40951272133.990.08431111018.8010203242.5022629161
runBefores501269323957.350.126411600111.4711305345.0026643271
runBeforesThenTestThenAfters3063822988.510.06422110115.8300204169.4614124140
runTest1022011201.800.0211170012.920000069.197013020
runTestMethod7011117408779.580.2161012000114.1020204622.674715702260
runWithTimeout4021305310021.470.251112611113.4600000744.6357073020


Analysis of Method : MethodRoadie(Object, TestMethod, RunNotifier, Description) in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NameMethodRoadie-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements5-
Halstead Length28-
Halstead Vocabulary18-
Halstead Effort381.71-
Halstead Bugs0.04-
Classes Referenced4org.junit.runner.Description (1)
org.junit.runner.notification.RunNotifier (1)
org.junit.internal.runners.TestMethod (1)
java.lang.Object (1)
External Methods Called0
Local Methods Called0
Lines Of Code6-
Number of Comments0-
Arguments4test (java.lang.Object)
method (TestMethod)
notifier (org.junit.runner.notification.RunNotifier)
description (org.junit.runner.Description)
Modifiers8private
final
private
final
private
final
private
public
Halstead Difficulty3.27-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume116.76-
Number of Operands17-
Variable References8fDescription (1)
fNotifier (1)
fTest (1)
fTestMethod (1)
description (1)
notifier (1)
method (1)
test (1)
Number of Operators11-
Max. depth of nesting0-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : addFailure(Throwable) in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NameaddFailure-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary14-
Halstead Effort218.45-
Halstead Bugs0.02-
Classes Referenced2java.lang.Throwable (1)
org.junit.runner.notification.Failure (1)
External Methods Called2org.junit.runner.notification.RunNotifier.fireTestFailure (1)
org.junit.runner.notification.Failure.Failure (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1e (java.lang.Throwable)
Modifiers1protected
Halstead Difficulty3.38-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume64.73-
Number of Operands9-
Variable References3fDescription (1)
fNotifier (1)
e (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : run() in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
Namerun-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements10-
Halstead Length57-
Halstead Vocabulary27-
Halstead Effort2385.05-
Halstead Bugs0.09-
Classes Referenced0
External Methods Called5org.junit.internal.runners.TestMethod.getTimeout (1)
org.junit.runner.notification.RunNotifier.fireTestIgnored (1)
org.junit.runner.notification.RunNotifier.fireTestStarted (1)
org.junit.runner.notification.RunNotifier.fireTestFinished (1)
org.junit.internal.runners.TestMethod.isIgnored (1)
Local Methods Called2runTest (1)
runWithTimeout (1)
Lines Of Code16-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty8.80-
Variable Declarations1timeout (long)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting3-
Halstead Volume271.03-
Number of Operands22-
Variable References10fDescription (3)
fNotifier (3)
fTestMethod (2)
timeout (2)
Number of Operators35-
Max. depth of nesting1-
Number of Expressions9-
Number of Loops0-

Top of this page

Analysis of Method : runAfters() in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NamerunAfters-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements9-
Halstead Length51-
Halstead Vocabulary27-
Halstead Effort2133.99-
Halstead Bugs0.08-
Classes Referenced4java.util.List (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.Throwable (1)
java.lang.reflect.Method (3)
External Methods Called3after.invoke (1)
org.junit.internal.runners.TestMethod.getAfters (1)
e.getTargetException (1)
Local Methods Called1addFailure (2)
Lines Of Code11-
Number of Comments1-
Arguments0 -
Modifiers1private
Halstead Difficulty8.80-
Variable Declarations1afters (List<Method>)
Exceptions Thrown0
Exceptions Referenced2java.lang.reflect.InvocationTargetException (1)
java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting3-
Halstead Volume242.50-
Number of Operands22-
Variable References6fTest (1)
fTestMethod (1)
e (2)
after (1)
afters (1)
Number of Operators29-
Max. depth of nesting1-
Number of Expressions6-
Number of Loops1-

Top of this page

Analysis of Method : runBefores() in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NamerunBefores-
Cyclomatic Complexity5-
Number of Comment Lines0-
Number of Statements12-
Halstead Length69-
Halstead Vocabulary32-
Halstead Effort3957.35-
Halstead Bugs0.12-
Classes Referenced6java.util.List (1)
org.junit.internal.AssumptionViolatedException (1)
org.junit.internal.runners.FailedBefore (3)
java.lang.reflect.InvocationTargetException (1)
java.lang.Throwable (1)
java.lang.reflect.Method (3)
External Methods Called4org.junit.internal.runners.TestMethod.getBefores (1)
e.getTargetException (1)
before.invoke (1)
org.junit.internal.runners.FailedBefore.FailedBefore (2)
Local Methods Called1addFailure (1)
Lines Of Code16-
Number of Comments0-
Arguments0 -
Modifiers1private
Halstead Difficulty11.47-
Variable Declarations1befores (List<Method>)
Exceptions Thrown1org.junit.internal.runners.FailedBefore (1)
Exceptions Referenced3org.junit.internal.AssumptionViolatedException (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting5-
Halstead Volume345.00-
Number of Operands26-
Variable References6fTest (1)
fTestMethod (1)
before (1)
e (2)
befores (1)
Number of Operators43-
Max. depth of nesting2-
Number of Expressions7-
Number of Loops1-

Top of this page

Analysis of Method : runBeforesThenTestThenAfters(Runnable) in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NamerunBeforesThenTestThenAfters-
Cyclomatic Complexity3-
Number of Comment Lines0-
Number of Statements6-
Halstead Length38-
Halstead Vocabulary22-
Halstead Effort988.51-
Halstead Bugs0.06-
Classes Referenced4org.junit.internal.runners.FailedBefore (1)
java.lang.RuntimeException (1)
org.junit.internal.runners.Runnable (1)
java.lang.Exception (1)
External Methods Called2org.junit.internal.runners.Runnable.run (1)
java.lang.RuntimeException.RuntimeException (1)
Local Methods Called2runBefores (1)
runAfters (1)
Lines Of Code11-
Number of Comments0-
Arguments1test (org.junit.internal.runners.Runnable)
Modifiers1public
Halstead Difficulty5.83-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced2org.junit.internal.runners.FailedBefore (1)
java.lang.Exception (1)
Number of casts0-
Total Depth of Nesting4-
Halstead Volume169.46-
Number of Operands14-
Variable References1test (1)
Number of Operators24-
Max. depth of nesting1-
Number of Expressions4-
Number of Loops0-

Top of this page

Analysis of Method : runTest() in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NamerunTest-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length20-
Halstead Vocabulary11-
Halstead Effort201.80-
Halstead Bugs0.02-
Classes Referenced1org.junit.internal.runners.Runnable (1)
External Methods Called1org.junit.internal.runners.Runnable.Runnable (1)
Local Methods Called1runBeforesThenTestThenAfters (1)
Lines Of Code7-
Number of Comments0-
Arguments0 -
Modifiers1public
Halstead Difficulty2.92-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume69.19-
Number of Operands7-
Variable References0
Number of Operators13-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : runTestMethod() in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NamerunTestMethod-
Cyclomatic Complexity7-
Number of Comment Lines0-
Number of Statements11-
Halstead Length117-
Halstead Vocabulary40-
Halstead Effort8779.58-
Halstead Bugs0.21-
Classes Referenced6org.junit.internal.AssumptionViolatedException (1)
java.lang.AssertionError (1)
java.lang.String (1)
java.lang.reflect.InvocationTargetException (1)
java.lang.Throwable (2)
java.lang.Exception (1)
External Methods Called10e.getTargetException (1)
org.junit.internal.runners.TestMethod.getExpectedException (2)
org.junit.internal.runners.TestMethod.expectsException (2)
java.lang.Throwable.getClass (1)
org.junit.internal.runners.TestMethod.invoke (1)
java.lang.Exception.Exception (1)
java.lang.AssertionError.AssertionError (1)
getExpectedException().getName (2)
getClass().getName (1)
org.junit.internal.runners.TestMethod.isUnexpected (1)
Local Methods Called1addFailure (4)
Lines Of Code20-
Number of Comments0-
Arguments0 -
Modifiers1protected
Halstead Difficulty14.10-
Variable Declarations2message (java.lang.String)
actual (java.lang.Throwable)
Exceptions Thrown0
Exceptions Referenced2java.lang.reflect.InvocationTargetException (1)
java.lang.Throwable (1)
Number of casts0-
Total Depth of Nesting4-
Halstead Volume622.67-
Number of Operands47-
Variable References15fTest (1)
fTestMethod (6)
message (1)
e (2)
actual (5)
Number of Operators70-
Max. depth of nesting2-
Number of Expressions26-
Number of Loops0-

Top of this page

Analysis of Method : runWithTimeout(long) in Class : org.junit.internal.runners.MethodRoadie
FeatureNumberValues
NamerunWithTimeout-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements2-
Halstead Length130-
Halstead Vocabulary53-
Halstead Effort10021.47-
Halstead Bugs0.25-
Classes Referenced1org.junit.internal.runners.Runnable (1)
External Methods Called1org.junit.internal.runners.Runnable.Runnable (1)
Local Methods Called1runBeforesThenTestThenAfters (1)
Lines Of Code26-
Number of Comments1-
Arguments1timeout (long)
Modifiers1private
Halstead Difficulty13.46-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume744.63-
Number of Operands57-
Variable References0
Number of Operators73-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

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