-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-springIssue is related to Spring projects supportIssue is related to Spring projects supportctg-bugIssue is a bugIssue is a bugspec-internalInternal issueInternal issue
Description
Description
Junit5 assertTrue is used, but import is missing
To Reproduce
- Install UnitTestBot plugin built from main in IntelliJ IDEA
- Open
sm***t
project - Generate
Unit tests
withNo configuration
tests forFacet
- Check generated test
Expected behavior
Generated test should have import of used asserts.
Actual behavior
Generated test is not compiling, assertTrue import is missing.
Screenshots, logs
The following imports are present:
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.utbot.runtime.utils.java.UtUtils.deepEquals;
The following line is present in generated test, that is not compiling:
assertTrue(deepEquals(arrayList, actual));
Environment
IntelliJ IDEA version - 2023.2 Ultimate
Project - Maven
JDK - 1.8
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-springIssue is related to Spring projects supportIssue is related to Spring projects supportctg-bugIssue is a bugIssue is a bugspec-internalInternal issueInternal issue
Type
Projects
Status
Todo