Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
  • Loading branch information
tadam50 committed Sep 19, 2019
1 parent f94b60c commit d2103dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void testSetterGetter() {
vscConverterStation.getTerminal().setQ(q2);

assertSame(voltageLevel, bus.getVoltageLevel());
assertSame(network, bus.getNetwork());
try {
bus.setV(-1.0);
fail();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;

/**
* @author Luma Zamarreño <zamarrenolm at aia.es>
Expand All @@ -33,6 +34,7 @@ private void checkSameMergedBus(Network n, String ida, String idb) {
assertNotNull(ma);
assertNotNull(mb);
assertEquals(ma, mb);
assertSame(n, ma.getNetwork());
}

private Network createBusBreaker() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public NetworkTest() {
@Test
public void testNetwork1() {
Network network = NetworkTest1Factory.create();
assertSame(network, network.getNetwork());
assertEquals(1, Iterables.size(network.getCountries()));
assertEquals(1, network.getCountryCount());
Country country1 = network.getCountries().iterator().next();
Expand Down

0 comments on commit d2103dd

Please sign in to comment.