-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test with two models of the same type
- Loading branch information
Showing
5 changed files
with
89 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
.../src/main/java/org/utbot/examples/spring/autowiring/twoAndMoreBeansForOneType/Person.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
package org.utbot.examples.spring.autowiring.twoAndMoreBeansForOneType; | ||
|
||
public class Person { | ||
private Integer age; | ||
private String firstName; | ||
private String lastName; | ||
|
||
private Integer weight; | ||
private Integer age; | ||
|
||
public Person(Integer age, Integer weight) { | ||
public Person(String firstName, String secondName, Integer age) { | ||
this.firstName = firstName; | ||
this.lastName = secondName; | ||
this.age = age; | ||
this.weight = weight; | ||
} | ||
|
||
public Integer getAge(){ | ||
return age; | ||
public String getName() { | ||
return firstName + " " + lastName; | ||
} | ||
|
||
public Integer getWeight() { | ||
return weight; | ||
public Integer getAge(){ | ||
return age; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters