Skip to content

Commit

Permalink
For #1333: Review corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulodamaso committed Aug 26, 2018
1 parent 9291eab commit 1fe146d
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions src/test/java/com/zerocracy/pmo/CatalogTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.jcabi.github.Repos;
import com.jcabi.github.mock.MkGithub;
import com.zerocracy.Item;
import com.zerocracy.Par;
import com.zerocracy.Project;
import com.zerocracy.Xocument;
import com.zerocracy.cash.Cash;
Expand Down Expand Up @@ -200,10 +199,10 @@ public void catalogHasBoardPageInfo() throws Exception {
final FkProject project = new FkProject();
new Ledger(project).bootstrap().add(
new Ledger.Transaction(
new Cash.S("$100"),
"assets", "cash",
"income", "zerocracy",
"Project funds"
new Cash.S("$100"),
"assets", "cash",
"income", "zerocracy",
"Current project funds"
)
);
new Catalog(new FkFarm(project)).bootstrap();
Expand All @@ -222,17 +221,9 @@ public void catalogHasBoardPageInfo() throws Exception {
).toString();
wbs.add(one);
for (int cont = 0; cont < Tv.THREE; cont = cont + 1) {
wbs.add(
new Job(
repo.issues().create("Job", "")
).toString()
);
wbs.add(new Job(repo.issues().create("Job", "")).toString());
}
new Orders(project).bootstrap().assign(
one,
dev,
Tv.TEN
);
new Orders(project).bootstrap().assign(one, dev, Tv.TEN);
try (final Item item = CatalogTest.item(project)) {
MatcherAssert.assertThat(
"Architect(s) not found",
Expand All @@ -242,9 +233,7 @@ public void catalogHasBoardPageInfo() throws Exception {
project.pid()
).asString()
),
new IsCollectionContaining<>(
new IsEqual<String>(arc)
)
new IsCollectionContaining<>(new IsEqual<>(arc))
);
MatcherAssert.assertThat(
"Members not found",
Expand All @@ -254,9 +243,7 @@ public void catalogHasBoardPageInfo() throws Exception {
project.pid()
).asString()
),
new IsCollectionContaining<>(
new IsEqual<String>(dev)
)
new IsCollectionContaining<>(new IsEqual<>(dev))
);
MatcherAssert.assertThat(
"Jobs not found",
Expand All @@ -266,9 +253,7 @@ public void catalogHasBoardPageInfo() throws Exception {
project.pid()
).asString()
),
new IsNot<>(
new IsEmptyIterable<>()
)
new IsNot<>(new IsEmptyIterable<>())
);
MatcherAssert.assertThat(
"Assigned jobs not found",
Expand Down Expand Up @@ -298,7 +283,7 @@ public void catalogHasBoardPageInfo() throws Exception {
project.pid()
).asString()
),
new IsEqual<>(100)
new IsEqual<>("$100")
);
}
}
Expand Down

0 comments on commit 1fe146d

Please sign in to comment.