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-bug
    comp-codegen
    on Jun 20, 2022
  2. added
    ctg-enhancement
    and removed
    ctg-bug
    on Jun 30, 2022
  3. 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
  4. moved this from Todo to In Progress in UTBot Javaon Jul 7, 2022
  5. linked a pull request that will close this issueMinimize exceptions in signature #418on Jul 7, 2022
  6. 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-codegenctg-enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions