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

Dashboard for Class : org.junit.rules.ExpectedException
Cyclomatic Complexity

Summary of ExpectedException
FeatureNumberValues
NameExpectedException-
Number of Methods8-
LCOM1.00-
Average Cyclomatic Complexity1.12-
Number of Statements18-
Halstead Cumulative Bugs0.27-
Halstead Effort5623.69-
UnWeighted Class Size9-
Instance Variables1fMatcher (org.hamcrest.Matcher)
Imported Packages10org.hamcrest.CoreMatchers.instanceOf
org.hamcrest.Description
org.hamcrest.Matcher
org.hamcrest.StringDescription
org.junit.Assert
org.junit.internal.matchers.TypeSafeMatcher
org.junit.matchers.JUnitMatchers.both
org.junit.matchers.JUnitMatchers.containsString
org.junit.runners.model.FrameworkMethod
org.junit.runners.model.Statement
Response For class8-
CBO6-
Maintainability Index105.10-
Cumulative Number of Comment Lines51-
Lines Of Code29-
Fan In1-
DIT1-
Maintainability Index (NC)137.32-
Specialization ratio0.00-
Reuse Ratio0.00-
COH0.12-
Local Method Calls3hasMessage (1)
expectMessage (1)
expect (2)
LCOM214.00-
Max Complexity2-
Halstead Cumulative Volume800.58-
Hierarchy Method Calls3containsString (1)
instanceOf (1)
both (1)
Number of Queries3-
Fan Out5-
SuperClass Namejava.lang.Object-
SIX0.00-
External Method Calls0org.junit.internal.matchers.TypeSafeMatcher.TypeSafeMatcher (1)
org.junit.rules.ExpectedException.ExpectedException (1)
org.junit.rules.ExpectedExceptionStatement.ExpectedExceptionStatement (1)
fMatcher().and (1)
Superclasses0 -
Total Complexity9-
Subclasses0 -
Message Passing Coupling0-
Number of Commands5-
Interfaces1org.junit.rules.MethodRule
Cumulative Number of Comments7-
Halstead Cumulative Length191-
Modifiers0 -
Summary of methods in org.junit.rules.ExpectedException
Methods in Class : org.junit.rules.ExpectedException
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
ExpectedException1014412.000.0000020021.50000008.00103000
apply1021714242.720.0241030313.750000064.731017010
expect1421814365.510.0230231115.330000068.538110020
expect24339241796.260.06311621210.0500010178.8117622060
expectMessage142139115.390.0110231112.800000041.21716020
expectMessage1421613203.000.0220231113.430000059.21818020
hasMessage10261312576.700.10410120118.5300000302.2127034010
none142119183.060.0111031025.250000034.87308010


Analysis of Method : ExpectedException() in Class : org.junit.rules.ExpectedException
FeatureNumberValues
NameExpectedException-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements1-
Halstead Length4-
Halstead Vocabulary4-
Halstead Effort12.00-
Halstead Bugs0.00-
Classes Referenced0
External Methods Called0
Local Methods Called0
Lines Of Code2-
Number of Comments0-
Arguments0 -
Modifiers2private
private
Halstead Difficulty1.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume8.00-
Number of Operands1-
Variable References0
Number of Operators3-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Analysis of Method : apply(Statement, FrameworkMethod, Object) in Class : org.junit.rules.ExpectedException
FeatureNumberValues
Nameapply-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length17-
Halstead Vocabulary14-
Halstead Effort242.72-
Halstead Bugs0.02-
Classes Referenced4org.junit.runners.model.Statement (2)
org.junit.runners.model.FrameworkMethod (1)
java.lang.Object (1)
org.junit.rules.ExpectedExceptionStatement (1)
External Methods Called1org.junit.rules.ExpectedExceptionStatement.ExpectedExceptionStatement (1)
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments3base (org.junit.runners.model.Statement)
method (org.junit.runners.model.FrameworkMethod)
target (java.lang.Object)
Modifiers1public
Halstead Difficulty3.75-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume64.73-
Number of Operands10-
Variable References1base (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : expect(Class) in Class : org.junit.rules.ExpectedException
FeatureNumberValues
Nameexpect-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length18-
Halstead Vocabulary14-
Halstead Effort365.51-
Halstead Bugs0.02-
Classes Referenced3?extendsThrowable (1)
java.lang.Class (1)
java.lang.Throwable (1)
External Methods Called0
Local Methods Called2instanceOf (1)
expect (1)
Lines Of Code3-
Number of Comments1-
Arguments1type (java.lang.Class)
Modifiers1public
Halstead Difficulty5.33-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume68.53-
Number of Operands8-
Variable References1type (1)
Number of Operators10-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : expect(Matcher) in Class : org.junit.rules.ExpectedException
FeatureNumberValues
Nameexpect-
Cyclomatic Complexity2-
Number of Comment Lines4-
Number of Statements3-
Halstead Length39-
Halstead Vocabulary24-
Halstead Effort1796.26-
Halstead Bugs0.06-
Classes Referenced3? (1)
org.hamcrest.Matcher (3)
java.lang.Object (3)
External Methods Called1fMatcher().and (1)
Local Methods Called1both (1)
Lines Of Code6-
Number of Comments2-
Arguments1matcher (org.hamcrest.Matcher)
Modifiers2@SuppressWarnings("unchecked")
public
Halstead Difficulty10.05-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts1-
Total Depth of Nesting0-
Halstead Volume178.81-
Number of Operands17-
Variable References6matcher (2)
fMatcher (4)
Number of Operators22-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : expectMessage(String) in Class : org.junit.rules.ExpectedException
FeatureNumberValues
NameexpectMessage-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length13-
Halstead Vocabulary9-
Halstead Effort115.39-
Halstead Bugs0.01-
Classes Referenced1java.lang.String (1)
External Methods Called0
Local Methods Called2expectMessage (1)
containsString (1)
Lines Of Code3-
Number of Comments1-
Arguments1substring (java.lang.String)
Modifiers1public
Halstead Difficulty2.80-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume41.21-
Number of Operands7-
Variable References1substring (1)
Number of Operators6-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : expectMessage(Matcher) in Class : org.junit.rules.ExpectedException
FeatureNumberValues
NameexpectMessage-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length16-
Halstead Vocabulary13-
Halstead Effort203.00-
Halstead Bugs0.02-
Classes Referenced2java.lang.String (2)
org.hamcrest.Matcher (1)
External Methods Called0
Local Methods Called2hasMessage (1)
expect (1)
Lines Of Code3-
Number of Comments1-
Arguments1matcher (org.hamcrest.Matcher)
Modifiers1public
Halstead Difficulty3.43-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume59.21-
Number of Operands8-
Variable References1matcher (1)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions2-
Number of Loops0-

Top of this page

Analysis of Method : hasMessage(Matcher) in Class : org.junit.rules.ExpectedException
FeatureNumberValues
NamehasMessage-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length61-
Halstead Vocabulary31-
Halstead Effort2576.70-
Halstead Bugs0.10-
Classes Referenced4java.lang.String (2)
org.hamcrest.Matcher (2)
org.junit.internal.matchers.TypeSafeMatcher (1)
java.lang.Throwable (1)
External Methods Called1org.junit.internal.matchers.TypeSafeMatcher.TypeSafeMatcher (1)
Local Methods Called0
Lines Of Code12-
Number of Comments0-
Arguments1matcher (org.hamcrest.Matcher)
Modifiers1private
Halstead Difficulty8.53-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume302.21-
Number of Operands27-
Variable References0
Number of Operators34-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : none() in Class : org.junit.rules.ExpectedException
FeatureNumberValues
Namenone-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary9-
Halstead Effort183.06-
Halstead Bugs0.01-
Classes Referenced1org.junit.rules.ExpectedException (2)
External Methods Called1org.junit.rules.ExpectedException.ExpectedException (1)
Local Methods Called0
Lines Of Code3-
Number of Comments1-
Arguments0 -
Modifiers2public
static
Halstead Difficulty5.25-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume34.87-
Number of Operands3-
Variable References0
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