Skip to content

Redundant exceptions in parametrized tests data provider methods signatures #250

Closed

Description

@EgorkaKulikov

Description

Parametrized tests produce warnings related to exceptions in method signatures.

For example, this throws is redundant. But sometimes we should render them.

 public static ArrayList<Arguments> provideDataForContainsCompare() throws Exception {
        ArrayList<Arguments> argList = new ArrayList<Arguments>();

        {
            IntExamples intExamples = new IntExamples();

            argList.add(Arguments.arguments(intExamples, 1, 1, 1));
        }

        return argList;
    }

Activity

  1. added
    ctg-enhancementNew feature, improvement or change request
    and removed
    ctg-bugIssue is a bug
    on Jun 30, 2022
  2. changed the title [-]Empty lines, unnecessary types and exception in parametrized tests generated code[/-] [+]Redundant exceptions in parametrized tests data provider methods signatures[/+] on Jul 7, 2022
  3. moved this from Todo to In Progress in UTBot Javaon Jul 7, 2022
  4. linked a pull request that will close this issueMinimize exceptions in signature #418on Jul 7, 2022
  5. Repository owner moved this from In Progress to Done in UTBot Javaon Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

comp-codegenIssue is related to code generatorctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions