![]() | Analysis of Class : junit.framework.TestCase (Includes summary list of methods in class) | Home |
Dashboard for Class : junit.framework.TestCase |
---|
![]() |
Cyclomatic Complexity |
Summary of TestCase | ||
---|---|---|
Feature | Number | Values |
Name | TestCase | - |
Number of Methods | 13 | - |
LCOM | 0.67 | - |
Average Cyclomatic Complexity | 1.62 | - |
Number of Statements | 48 | - |
Halstead Cumulative Bugs | 0.41 | - |
Halstead Effort | 11388.30 | - |
UnWeighted Class Size | 14 | - |
Instance Variables | 1 | fName (java.lang.String) |
Imported Packages | 3 | java.lang.reflect.InvocationTargetException java.lang.reflect.Method java.lang.reflect.Modifier |
Response For class | 13 | - |
CBO | 8 | - |
Maintainability Index | 79.92 | - |
Cumulative Number of Comment Lines | 127 | - |
Lines Of Code | 77 | - |
Fan In | 6 | - |
DIT | 1 | - |
Maintainability Index (NC) | 129.92 | - |
Specialization ratio | 0.00 | - |
Reuse Ratio | 0.50 | - |
COH | 0.38 | - |
Local Method Calls | 6 | setUp (1) tearDown (1) runTest (1) getName (1) run (1) createResult (1) |
LCOM2 | 28.00 | - |
Max Complexity | 5 | - |
Halstead Cumulative Volume | 1231.93 | - |
Hierarchy Method Calls | 3 | assertNotNull (1) fail (2) getClass (2) |
Number of Queries | 5 | - |
Fan Out | 3 | - |
SuperClass Name | junit.framework.Assert | - |
SIX | 0.00 | - |
External Method Calls | 0 | e().getName (1) java.lang.reflect.Modifier.isPublic (1) junit.framework.TestResult.run (1) java.lang.reflect.Method.invoke (1) junit.framework.TestResult.TestResult (1) java.lang.reflect.Method.getModifiers (1) e.fillInStackTrace (2) e.getTargetException (1) runMethod().getMethod (1) |
Superclasses | 1 | junit.framework.Assert |
Total Complexity | 21 | - |
Subclasses | 0 | - |
Message Passing Coupling | 0 | - |
Number of Commands | 8 | - |
Interfaces | 1 | junit.framework.Test |
Cumulative Number of Comments | 19 | - |
Halstead Cumulative Length | 290 | - |
Modifiers | 0 | - |
Methods in Class : junit.framework.TestCase | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
![]() | TestCase | 1 | 4 | 2 | 8 | 8 | 60.00 | 0.01 | 0 | 0 | 0 | 3 | 1 | 0 | 2 | 2.50 | 0 | 0 | 0 | 0 | 0 | 24.00 | 3 | 1 | 5 | 0 | 1 | 0 |
![]() | TestCase | 1 | 3 | 2 | 10 | 9 | 99.06 | 0.01 | 1 | 0 | 0 | 3 | 1 | 1 | 1 | 3.12 | 0 | 0 | 0 | 0 | 0 | 31.70 | 5 | 2 | 5 | 0 | 1 | 0 |
![]() | countTestCases | 1 | 3 | 2 | 8 | 8 | 60.00 | 0.01 | 0 | 0 | 0 | 3 | 1 | 0 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 24.00 | 3 | 0 | 5 | 0 | 0 | 0 |
![]() | createResult | 1 | 5 | 2 | 10 | 8 | 135.00 | 0.01 | 1 | 1 | 0 | 3 | 1 | 0 | 1 | 4.50 | 0 | 0 | 0 | 0 | 0 | 30.00 | 3 | 0 | 7 | 0 | 1 | 0 |
![]() | getName | 1 | 4 | 2 | 8 | 8 | 60.00 | 0.01 | 1 | 0 | 0 | 3 | 1 | 0 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 24.00 | 3 | 1 | 5 | 0 | 0 | 0 |
![]() | run | 1 | 6 | 4 | 18 | 10 | 358.77 | 0.02 | 1 | 0 | 2 | 5 | 1 | 0 | 1 | 6.00 | 1 | 0 | 0 | 0 | 0 | 59.79 | 8 | 2 | 10 | 0 | 3 | 0 |
![]() | run | 1 | 3 | 2 | 13 | 10 | 151.15 | 0.01 | 1 | 1 | 0 | 3 | 1 | 1 | 1 | 3.50 | 0 | 0 | 0 | 0 | 0 | 43.19 | 7 | 1 | 6 | 0 | 1 | 0 |
![]() | runBare | 5 | 4 | 10 | 58 | 23 | 3751.84 | 0.09 | 1 | 0 | 3 | 17 | 1 | 0 | 1 | 14.30 | 1 | 1 | 1 | 0 | 5 | 262.37 | 22 | 7 | 36 | 2 | 8 | 0 |
![]() | runTest | 5 | 8 | 14 | 102 | 41 | 6092.13 | 0.18 | 7 | 6 | 3 | 23 | 6 | 0 | 1 | 11.15 | 1 | 1 | 3 | 1 | 6 | 546.47 | 43 | 11 | 59 | 1 | 18 | 0 |
![]() | setName | 1 | 4 | 2 | 11 | 10 | 109.62 | 0.01 | 1 | 0 | 0 | 3 | 1 | 1 | 1 | 3.00 | 0 | 0 | 0 | 0 | 0 | 36.54 | 6 | 2 | 5 | 0 | 1 | 0 |
![]() | setUp | 1 | 4 | 1 | 7 | 7 | 39.30 | 0.01 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 2.00 | 0 | 1 | 0 | 0 | 0 | 19.65 | 3 | 0 | 4 | 0 | 0 | 0 |
![]() | tearDown | 1 | 4 | 1 | 7 | 7 | 39.30 | 0.01 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 2.00 | 0 | 1 | 0 | 0 | 0 | 19.65 | 3 | 0 | 4 | 0 | 0 | 0 |
![]() | toString | 1 | 3 | 2 | 21 | 15 | 375.06 | 0.03 | 1 | 1 | 2 | 3 | 1 | 0 | 2 | 4.57 | 0 | 0 | 0 | 0 | 0 | 82.04 | 8 | 0 | 13 | 0 | 6 | 0 |
Analysis of Method : TestCase() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | TestCase | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | private public |
Halstead Difficulty | 2.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 24.00 | - |
Number of Operands | 3 | - |
Variable References | 1 | fName (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : TestCase(String) in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | TestCase | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 99.06 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | name (java.lang.String) |
Modifiers | 1 | public |
Halstead Difficulty | 3.12 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 31.70 | - |
Number of Operands | 5 | - |
Variable References | 2 | name (1) fName (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : countTestCases() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | countTestCases | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 2.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 24.00 | - |
Number of Operands | 3 | - |
Variable References | 0 | |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : createResult() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | createResult | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 2 | - |
Halstead Length | 10 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 135.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | junit.framework.TestResult (2) |
External Methods Called | 1 | junit.framework.TestResult.TestResult (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 4.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 30.00 | - |
Number of Operands | 3 | - |
Variable References | 0 | |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : getName() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | getName | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 60.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 2.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 24.00 | - |
Number of Operands | 3 | - |
Variable References | 1 | fName (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : run() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | run | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 6 | - |
Number of Statements | 4 | - |
Halstead Length | 18 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 358.77 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 1 | junit.framework.TestResult (2) |
External Methods Called | 0 | |
Local Methods Called | 2 | run (1) createResult (1) |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 6.00 | - |
Variable Declarations | 1 | result (TestResult) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 59.79 | - |
Number of Operands | 8 | - |
Variable References | 2 | result (2) |
Number of Operators | 10 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : run(TestResult) in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | run | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 13 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 151.15 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | junit.framework.TestResult (1) |
External Methods Called | 1 | junit.framework.TestResult.run (1) |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | result (TestResult) |
Modifiers | 1 | public |
Halstead Difficulty | 3.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 43.19 | - |
Number of Operands | 7 | - |
Variable References | 1 | result (1) |
Number of Operators | 6 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : runBare() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | runBare | - |
Cyclomatic Complexity | 5 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 10 | - |
Halstead Length | 58 | - |
Halstead Vocabulary | 23 | - |
Halstead Effort | 3751.84 | - |
Halstead Bugs | 0.09 | - |
Classes Referenced | 1 | java.lang.Throwable (4) |
External Methods Called | 0 | |
Local Methods Called | 3 | tearDown (1) setUp (1) runTest (1) |
Lines Of Code | 17 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | public |
Halstead Difficulty | 14.30 | - |
Variable Declarations | 1 | exception (java.lang.Throwable) |
Exceptions Thrown | 1 | java.lang.Throwable (1) |
Exceptions Referenced | 1 | java.lang.Throwable (2) |
Number of casts | 0 | - |
Total Depth of Nesting | 5 | - |
Halstead Volume | 262.37 | - |
Number of Operands | 22 | - |
Variable References | 7 | running (1) exception (5) tearingDown (1) |
Number of Operators | 36 | - |
Max. depth of nesting | 2 | - |
Number of Expressions | 8 | - |
Number of Loops | 0 | - |
Analysis of Method : runTest() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | runTest | - |
Cyclomatic Complexity | 5 | - |
Number of Comment Lines | 8 | - |
Number of Statements | 14 | - |
Halstead Length | 102 | - |
Halstead Vocabulary | 41 | - |
Halstead Effort | 6092.13 | - |
Halstead Bugs | 0.18 | - |
Classes Referenced | 7 | java.lang.NoSuchMethodException (1) java.lang.reflect.InvocationTargetException (1) java.lang.reflect.Modifier (1) java.lang.IllegalAccessException (1) java.lang.Throwable (1) java.lang.Class (2) java.lang.reflect.Method (1) |
External Methods Called | 6 | e.fillInStackTrace (2) runMethod().getMethod (1) java.lang.reflect.Modifier.isPublic (1) java.lang.reflect.Method.getModifiers (1) e.getTargetException (1) java.lang.reflect.Method.invoke (1) |
Local Methods Called | 3 | assertNotNull (1) fail (2) getClass (1) |
Lines Of Code | 23 | - |
Number of Comments | 6 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 11.15 | - |
Variable Declarations | 1 | runMethod (java.lang.reflect.Method) |
Exceptions Thrown | 1 | java.lang.Throwable (1) |
Exceptions Referenced | 3 | java.lang.NoSuchMethodException (1) java.lang.reflect.InvocationTargetException (1) java.lang.IllegalAccessException (1) |
Number of casts | 1 | - |
Total Depth of Nesting | 6 | - |
Halstead Volume | 546.47 | - |
Number of Operands | 43 | - |
Variable References | 11 | fName (4) e (4) runMethod (3) |
Number of Operators | 59 | - |
Max. depth of nesting | 1 | - |
Number of Expressions | 18 | - |
Number of Loops | 0 | - |
Analysis of Method : setName(String) in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | setName | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 10 | - |
Halstead Effort | 109.62 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 1 | name (java.lang.String) |
Modifiers | 1 | public |
Halstead Difficulty | 3.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 36.54 | - |
Number of Operands | 6 | - |
Variable References | 2 | name (1) fName (1) |
Number of Operators | 5 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : setUp() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | setUp | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 1 | - |
Halstead Length | 7 | - |
Halstead Vocabulary | 7 | - |
Halstead Effort | 39.30 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.Exception (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 2 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 2.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 1 | java.lang.Exception (1) |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 19.65 | - |
Number of Operands | 3 | - |
Variable References | 0 | |
Number of Operators | 4 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : tearDown() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | tearDown | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 1 | - |
Halstead Length | 7 | - |
Halstead Vocabulary | 7 | - |
Halstead Effort | 39.30 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | java.lang.Exception (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 2 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 2.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 1 | java.lang.Exception (1) |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 19.65 | - |
Number of Operands | 3 | - |
Variable References | 0 | |
Number of Operators | 4 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Analysis of Method : toString() in Class : junit.framework.TestCase | ||
---|---|---|
Feature | Number | Values |
Name | toString | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 3 | - |
Number of Statements | 2 | - |
Halstead Length | 21 | - |
Halstead Vocabulary | 15 | - |
Halstead Effort | 375.06 | - |
Halstead Bugs | 0.03 | - |
Classes Referenced | 1 | java.lang.String (1) |
External Methods Called | 1 | e().getName (1) |
Local Methods Called | 2 | getClass (1) getName (1) |
Lines Of Code | 3 | - |
Number of Comments | 1 | - |
Arguments | 0 | - |
Modifiers | 2 | @Override public |
Halstead Difficulty | 4.57 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 82.04 | - |
Number of Operands | 8 | - |
Variable References | 0 | |
Number of Operators | 13 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |