-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a bug
Description
To Reproduce
Run UtBot via plugin on the following class
public class Test {
public boolean foo(boolean b) {
return !b;
}
}
Generated tests looks like
@Test
@DisplayName("foo: return !b : False -> return !b")
public void testFoo_NotB() {
Test test = new Test();
boolean actual = test.foo(true);
assertFalse(actual);
}
Actual behavior
This code does not compile because Test
as a name of the class conflicts with a name from JUnit imports org.junit.jupiter.api.Test
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a bug
Type
Projects
Status
Done