Skip to content

Commit

Permalink
a little more clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dickschoeller committed Mar 29, 2018
1 parent bebe10c commit 891d56a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.schoellerfamily.gedbrowser.api.Application;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiAttribute;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiFamily;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiLifespan;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiPerson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.embedded.LocalServerPort;
Expand Down Expand Up @@ -437,7 +436,7 @@ private ApiPerson createAlexander() {
.add(new ApiAttribute("attribute", "Sex", "M"))
.surname("Romanov")
.indexName("Romanov, Alexander")
.lifespan(new ApiLifespan());
.build();
return new ApiPerson(builder);
}

Expand All @@ -451,7 +450,7 @@ private ApiPerson createAlexandra() {
.add(new ApiAttribute("attribute", "Sex", "F"))
.surname("Romanov")
.indexName("Romanov, Alexandra")
.lifespan(new ApiLifespan());
.build();
return new ApiPerson(builder);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.junit.runner.RunWith;
import org.schoellerfamily.gedbrowser.api.Application;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiAttribute;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiLifespan;
import org.schoellerfamily.gedbrowser.api.datamodel.ApiPerson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.embedded.LocalServerPort;
Expand Down Expand Up @@ -179,7 +178,7 @@ private ApiPerson createRJS() {
.add(new ApiAttribute("attribute", "Sex", "M"))
.surname("Schoeller")
.indexName("Schoeller, Richard")
.lifespan(new ApiLifespan());
.build();
return new ApiPerson(builder);
}

Expand All @@ -193,7 +192,7 @@ private ApiPerson createAlexander() {
.add(new ApiAttribute("attribute", "Sex", "M"))
.surname("Romanov")
.indexName("Romanov, Alexander")
.lifespan(new ApiLifespan());
.build();
return new ApiPerson(builder);
}

Expand All @@ -207,7 +206,7 @@ private ApiPerson createAlexandra() {
.add(new ApiAttribute("attribute", "Sex", "F"))
.surname("Romanov")
.indexName("Romanov, Alexandra")
.lifespan(new ApiLifespan());
.build();
return new ApiPerson(builder);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ public void testConstructorWithAttributes() {
final ApiPerson.Builder builder = new ApiPerson.Builder()
.id("string")
.add(new ApiAttribute("a string", "attribute", ""))
.indexName("indexName")
.surname("surname")
.lifespan(new ApiLifespan());
.build();
final ApiPerson o = new ApiPerson(builder);
assertEquals("attributes mismatch", 1, o.getAttributes().size());
}
Expand All @@ -94,9 +92,7 @@ public void testIsType() {
final ApiPerson.Builder builder = new ApiPerson.Builder()
.id("string")
.add(new ApiAttribute("a string", "attribute", ""))
.indexName("indexName")
.surname("surname")
.lifespan(new ApiLifespan());
.build();
final ApiPerson o = new ApiPerson(builder);
assertTrue("type mismatch", o.isType("person"));
}
Expand Down
1 change: 0 additions & 1 deletion gedbrowser-client/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"variable-declaration": "nospace"
}
],
"typeof-compare": true,
"unified-signatures": true,
"variable-name": false,
"whitespace": [
Expand Down

0 comments on commit 891d56a

Please sign in to comment.