test fix
This commit is contained in:
parent
265315b874
commit
847dd76fc8
@ -48,8 +48,9 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void removeGroup(Long id) {
|
public void removeGroup(Long id) {
|
||||||
final Groups groupToDelete = this.studentRegisteredGrups.stream().filter(e -> e.getId().equals(id)).findFirst().get();
|
final Groups groupToDelete = this.studentRegisteredGrups.stream().filter(e -> e.getId().equals(id)).findFirst()
|
||||||
this.studentRegisteredGrups.remove(groupToDelete);
|
.get();
|
||||||
|
this.studentRegisteredGrups.remove(groupToDelete);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void claimGroup(Groups group) {
|
public void claimGroup(Groups group) {
|
||||||
@ -236,6 +237,9 @@ public class User {
|
|||||||
* @return ranking points [100;500]
|
* @return ranking points [100;500]
|
||||||
*/
|
*/
|
||||||
public Integer getRanking() {
|
public Integer getRanking() {
|
||||||
|
if (ranking == null) {
|
||||||
|
return 100;
|
||||||
|
}
|
||||||
return ranking;
|
return ranking;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user