Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.4.0

...

Recommendation type: Uncovered code blocks

Configurable: Yes

Filter category: Uncovered code blocks

Description

This type of recommendations helps you identify blocks of code that is not covered. By default, UTA detects 5 or more subsequent lines of uncovered code.

Click the Clone test action link to display a list of already existing test cases; then select a test case you want to duplicate and modify. UTA preselects a test case to clone based on the test case coverage and name. (This quick fix is available only for regular tests.)

Example

Code Block
 @Test
    public void testTryThis1()
        throws Throwable
    {
        ExampleServlet THIS = new ExampleServlet();
        try {
            THIS.tryThis((ServletContext)null);
        } catch (NullPointerException npe) {
            // expected
            return;
        }
        fail();
    }

...