![]() | 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 | ||
---|---|---|
Feature | Number | Values |
Name | ExpectedException | - |
Number of Methods | 8 | - |
LCOM | 1.00 | - |
Average Cyclomatic Complexity | 1.12 | - |
Number of Statements | 18 | - |
Halstead Cumulative Bugs | 0.27 | - |
Halstead Effort | 5623.69 | - |
UnWeighted Class Size | 9 | - |
Instance Variables | 1 | fMatcher (org.hamcrest.Matcher) |
Imported Packages | 10 | org.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 class | 8 | - |
CBO | 6 | - |
Maintainability Index | 105.10 | - |
Cumulative Number of Comment Lines | 51 | - |
Lines Of Code | 29 | - |
Fan In | 1 | - |
DIT | 1 | - |
Maintainability Index (NC) | 137.32 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.00 | - |
COH | 0.12 | - |
Local Method Calls | 3 | hasMessage (1) expectMessage (1) expect (2) |
LCOM2 | 14.00 | - |
Max Complexity | 2 | - |
Halstead Cumulative Volume | 800.58 | - |
Hierarchy Method Calls | 3 | containsString (1) instanceOf (1) both (1) |
Number of Queries | 3 | - |
Fan Out | 5 | - |
SuperClass Name | java.lang.Object | - |
SIX | 0.00 | - |
External Method Calls | 0 | org.junit.internal.matchers.TypeSafeMatcher.TypeSafeMatcher (1) org.junit.rules.ExpectedException.ExpectedException (1) org.junit.rules.ExpectedExceptionStatement.ExpectedExceptionStatement (1) fMatcher().and (1) |
Superclasses | 0 | - |
Total Complexity | 9 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 5 | - |
Interfaces | 1 | org.junit.rules.MethodRule |
Cumulative Number of Comments | 7 | - |
Halstead Cumulative Length | 191 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.rules.ExpectedException | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | COMP | NOCL | NOS | HLTH | HVOC | HEFF | HBUG | CREF | XMET | LMET | NLOC | NOC | NOA | MOD | HDIF | VDEC | EXCT | EXCR | CAST | TDN | HVOL | NAND | VREF | NOPR | MDN | NEXP | LOOP | |
![]() | ExpectedException | 1 | 0 | 1 | 4 | 4 | 12.00 | 0.00 | 0 | 0 | 0 | 2 | 0 | 0 | 2 | 1.50 | 0 | 0 | 0 | 0 | 0 | 8.00 | 1 | 0 | 3 | 0 | 0 | 0 |
![]() | apply | 1 | 0 | 2 | 17 | 14 | 242.72 | 0.02 | 4 | 1 | 0 | 3 | 0 | 3 | 1 | 3.75 | 0 | 0 | 0 | 0 | 0 | 64.73 | 10 | 1 | 7 | 0 | 1 | 0 |
![]() | expect | 1 | 4 | 2 | 18 | 14 | 365.51 | 0.02 | 3 | 0 | 2 | 3 | 1 | 1 | 1 | 5.33 | 0 | 0 | 0 | 0 | 0 | 68.53 | 8 | 1 | 10 | 0 | 2 | 0 |
![]() | expect | 2 | 4 | 3 | 39 | 24 | 1796.26 | 0.06 | 3 | 1 | 1 | 6 | 2 | 1 | 2 | 10.05 | 0 | 0 | 0 | 1 | 0 | 178.81 | 17 | 6 | 22 | 0 | 6 | 0 |
![]() | expectMessage | 1 | 4 | 2 | 13 | 9 | 115.39 | 0.01 | 1 | 0 | 2 | 3 | 1 | 1 | 1 | 2.80 | 0 | 0 | 0 | 0 | 0 | 41.21 | 7 | 1 | 6 | 0 | 2 | 0 |
![]() | expectMessage | 1 | 4 | 2 | 16 | 13 | 203.00 | 0.02 | 2 | 0 | 2 | 3 | 1 | 1 | 1 | 3.43 | 0 | 0 | 0 | 0 | 0 | 59.21 | 8 | 1 | 8 | 0 | 2 | 0 |
![]() | hasMessage | 1 | 0 | 2 | 61 | 31 | 2576.70 | 0.10 | 4 | 1 | 0 | 12 | 0 | 1 | 1 | 8.53 | 0 | 0 | 0 | 0 | 0 | 302.21 | 27 | 0 | 34 | 0 | 1 | 0 |
![]() | none | 1 | 4 | 2 | 11 | 9 | 183.06 | 0.01 | 1 | 1 | 0 | 3 | 1 | 0 | 2 | 5.25 | 0 | 0 | 0 | 0 | 0 | 34.87 | 3 | 0 | 8 | 0 | 1 | 0 |
Analysis of Method : ExpectedException() in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | ExpectedException | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 1 | - |
Halstead Length | 4 | - |
Halstead Vocabulary | 4 | - |
Halstead Effort | 12.00 | - |
Halstead Bugs | 0.00 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 2 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 2 | private private |
Halstead Difficulty | 1.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 8.00 | - |
Number of Operands | 1 | - |
Variable References | 0 | |
Number of Operators | 3 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : apply(Statement, FrameworkMethod, Object) in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | apply | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 17 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 242.72 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 4 | org.junit.runners.model.Statement (2) org.junit.runners.model.FrameworkMethod (1) java.lang.Object (1) org.junit.rules.ExpectedExceptionStatement (1) |
External Methods Called | 1 | org.junit.rules.ExpectedExceptionStatement.ExpectedExceptionStatement (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 3 | base (org.junit.runners.model.Statement) method (org.junit.runners.model.FrameworkMethod) target (java.lang.Object) |
Modifiers | 1 | public |
Halstead Difficulty | 3.75 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 64.73 | - |
Number of Operands | 10 | - |
Variable References | 1 | base (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : expect(Class) in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | expect | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 14 | - |
Halstead Effort | 365.51 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 3 | ?extendsThrowable (1) java.lang.Class (1) java.lang.Throwable (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | instanceOf (1) expect (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | type (java.lang.Class) |
Modifiers | 1 | public |
Halstead Difficulty | 5.33 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 68.53 | - |
Number of Operands | 8 | - |
Variable References | 1 | type (1) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : expect(Matcher) in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | expect | - |
Cyclomatic Complexity | 2 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 3 | - |
Halstead Length | 39 | - |
Halstead Vocabulary | 24 | - |
Halstead Effort | 1796.26 | - |
Halstead Bugs | 0.06 | - |
Classes Referenced | 3 | ? (1) org.hamcrest.Matcher (3) java.lang.Object (3) |
External Methods Called | 1 | fMatcher().and (1) |
Local Methods Called | 1 | both (1) |
Lines Of Code | 6 | - |
Number of Comments | 2 | - |
Arguments | 1 | matcher (org.hamcrest.Matcher) |
Modifiers | 2 | @SuppressWarnings("unchecked") public |
Halstead Difficulty | 10.05 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 1 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 178.81 | - |
Number of Operands | 17 | - |
Variable References | 6 | matcher (2) fMatcher (4) |
Number of Operators | 22 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : expectMessage(String) in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | expectMessage | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 115.39 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | expectMessage (1) containsString (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | substring (java.lang.String) |
Modifiers | 1 | public |
Halstead Difficulty | 2.80 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 41.21 | - |
Number of Operands | 7 | - |
Variable References | 1 | substring (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : expectMessage(Matcher) in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | expectMessage | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 16 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 203.00 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.lang.String (2) org.hamcrest.Matcher (1) |
External Methods Called | 0 | |
Local Methods Called | 2 | hasMessage (1) expect (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | matcher (org.hamcrest.Matcher) |
Modifiers | 1 | public |
Halstead Difficulty | 3.43 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 59.21 | - |
Number of Operands | 8 | - |
Variable References | 1 | matcher (1) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 2 | - |
Number of Loops | 0 | - |
Analysis of Method : hasMessage(Matcher) in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | hasMessage | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 61 | - |
Halstead Vocabulary | 31 | - |
Halstead Effort | 2576.70 | - |
Halstead Bugs | 0.10 | - |
Classes Referenced | 4 | java.lang.String (2) org.hamcrest.Matcher (2) org.junit.internal.matchers.TypeSafeMatcher (1) java.lang.Throwable (1) |
External Methods Called | 1 | org.junit.internal.matchers.TypeSafeMatcher.TypeSafeMatcher (1) |
Local Methods Called | 0 | |
Lines Of Code | 12 | - |
Number of Comments | 0 | - |
Arguments | 1 | matcher (org.hamcrest.Matcher) |
Modifiers | 1 | private |
Halstead Difficulty | 8.53 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 302.21 | - |
Number of Operands | 27 | - |
Variable References | 0 | |
Number of Operators | 34 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : none() in Class : org.junit.rules.ExpectedException | ||
---|---|---|
Feature | Number | Values |
Name | none | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 183.06 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | org.junit.rules.ExpectedException (2) |
External Methods Called | 1 | org.junit.rules.ExpectedException.ExpectedException (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | public static |
Halstead Difficulty | 5.25 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 34.87 | - |
Number of Operands | 3 | - |
Variable References | 0 | |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |