Closed
Description
To Reproduce
All mentioned classes and methods are taken from this project https://github.com/spring-projects/spring-petclinic
Generate tests for method Pet.getType
Expected behavior
Compilable tests are generated.
Actual behavior
Generated test looks as follows:
@Test
public void testGetType1() throws Exception {
PetType petType = ((PetType) createInstance("org.springframework.samples.petclinic.owner.PetType"));
PetType actual = pet.getType();
// java.util.LinkedHashSet is iterable or Map, use outer deep equals to iterate over
assertTrue(deepEquals(linkedHashSet, actual));
}
Variable linkedHashSet
was never declared.
It is not obvious why HashSets are used.
Metadata
Metadata
Assignees
Type
Projects
Status
Done