Skip to content

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

Open
@alisevych

Description

@alisevych

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)

Metadata

Metadata

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions