-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from afet-yonetim-sistemi/bug/164/fix-assignm…
…ent-detail-response #164 | Updated the Assignment Detail Service Response
- Loading branch information
Showing
7 changed files
with
140 additions
and
11 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
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
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
46 changes: 46 additions & 0 deletions
46
src/test/java/com/ays/location/model/entity/UserLocationEntityBuilder.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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.ays.location.model.entity; | ||
|
||
import com.ays.common.model.TestDataBuilder; | ||
import com.ays.user.model.entity.UserEntity; | ||
import com.ays.user.model.entity.UserEntityBuilder; | ||
|
||
public class UserLocationEntityBuilder extends TestDataBuilder<UserLocationEntity> { | ||
|
||
public UserLocationEntityBuilder() { | ||
super(UserLocationEntity.class); | ||
} | ||
|
||
public UserLocationEntityBuilder withValidFields() { | ||
|
||
UserEntity userEntity = new UserEntityBuilder() | ||
.withValidFields() | ||
.build(); | ||
|
||
return this | ||
.withId(1L) | ||
.withUserId(userEntity.getId()) | ||
.withUser(userEntity) | ||
.withPoint(1.0, 2.0); | ||
} | ||
|
||
public UserLocationEntityBuilder withId(Long id) { | ||
data.setId(id); | ||
return this; | ||
} | ||
|
||
public UserLocationEntityBuilder withUserId(String userId) { | ||
data.setUserId(userId); | ||
return this; | ||
} | ||
|
||
public UserLocationEntityBuilder withUser(UserEntity userEntity) { | ||
data.setUser(userEntity); | ||
return this; | ||
} | ||
|
||
public UserLocationEntityBuilder withPoint(Double longitude, Double latitude) { | ||
data.setPoint(longitude, latitude); | ||
return this; | ||
} | ||
|
||
} |