Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvocationTargetException for constructors with UtMock.assume() and Fuzzing on #1117

Open
alisevych opened this issue Oct 7, 2022 · 0 comments · May be fixed by #1722
Open

InvocationTargetException for constructors with UtMock.assume() and Fuzzing on #1117

alisevych opened this issue Oct 7, 2022 · 0 comments · May be fixed by #1722
Assignees
Labels
ctg-bug Issue is a bug

Comments

@alisevych
Copy link
Member

alisevych commented Oct 7, 2022

Description

InvocationTargetException for code with UtMock.assume() method calls in constructors and Fuzzing on.

To Reproduce

  1. Run the 'UTBotJava' project in IntelliJ Idea
  2. Install release 2022.10 build
  3. Find utbot-sample/src/main/java/org/utbot/examples/make/symbolic/ClassWithComplicatedMethods.java
  4. Use plugin to generate tests for sqrt2()
  5. Open the generated test

Expected behavior

Tests are supposed to be generated.

Actual behavior

An error test is generated with information about errors in the concrete executor.
InvocationTargetException is present in Concrete Executor logs.

Visual proofs (screenshots, logs, images)

   ///region Errors report for sqrt2

    public void testSqrt2_errors() {
        // Couldn't generate some tests. List of errors:
        // 
        // 83 occurrences of:
        // Default concrete execution failed

    }
    ///endregion

Environment

Windows 10 Pro
IntelliJ IDEA 2022.1.4

Additional context

Reproducing on Release 2022.10 (branch unit-test-bot/rc2992022) and on latest main

Originally posted by @alisevych in #1102 (comment)

@alisevych alisevych added the ctg-bug Issue is a bug label Oct 7, 2022
@korifey korifey moved this to Todo in UTBot Java Oct 7, 2022
@alisevych alisevych added this to the 2022.12 Release milestone Oct 7, 2022
@alisevych alisevych removed this from the 2022.12 Release milestone Dec 2, 2022
@SBOne-Kenobi SBOne-Kenobi linked a pull request Jan 19, 2023 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants