1
0

fixing pitest failure by excluding purely generated code etc.

also removed unused methods and added a unit test to improve coverage
and setting thresholds now to 90% each
This commit is contained in:
Michael Hoennig
2019-04-21 11:53:30 +02:00
parent 1ac8df5ed9
commit 1bc7044527
4 changed files with 36 additions and 43 deletions

View File

@ -195,16 +195,6 @@ public class Customer implements Serializable {
return this;
}
public Customer removeMembership(Membership membership) {
this.memberships.remove(membership);
membership.setCustomer(null);
return this;
}
public void setMemberships(Set<Membership> memberships) {
this.memberships = memberships;
}
public Set<SepaMandate> getSepamandates() {
return sepamandates;
}
@ -220,15 +210,6 @@ public class Customer implements Serializable {
return this;
}
public Customer removeSepamandate(SepaMandate sepaMandate) {
this.sepamandates.remove(sepaMandate);
sepaMandate.setCustomer(null);
return this;
}
public void setSepamandates(Set<SepaMandate> sepaMandates) {
this.sepamandates = sepaMandates;
}
// jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove
@Override

View File

@ -129,16 +129,6 @@ public class Membership implements Serializable {
return this;
}
public Membership removeShare(Share share) {
this.shares.remove(share);
share.setMembership(null);
return this;
}
public void setShares(Set<Share> shares) {
this.shares = shares;
}
public Set<Asset> getAssets() {
return assets;
}
@ -154,16 +144,6 @@ public class Membership implements Serializable {
return this;
}
public Membership removeAsset(Asset asset) {
this.assets.remove(asset);
asset.setMembership(null);
return this;
}
public void setAssets(Set<Asset> assets) {
this.assets = assets;
}
public Customer getCustomer() {
return customer;
}