Skip to content

Commit

Permalink
added another Bic8 test (PR068)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHossfeld committed Dec 2, 2020
1 parent 69af7f1 commit 0bd8b06
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public void testBicConstructionWithValueOfShouldReturnBic() {
}

public void testBicShouldReturnBic8Code() {
Bic bic = Bic.valueOf("DEUTDEFF500");
Bic bic01 = Bic.valueOf("DEUTDEFF500");
assertEquals(bic01.getBic8(), "DEUTDEFF");

assertEquals(bic.getBic8(), "DEUTDEFF");
Bic bic02 = Bic.valueOf("DEUTDEFF");
assertEquals(bic02.getBic8(), "DEUTDEFF");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ public void testBicConstructionWithValueOfShouldReturnBic() {

@Test
public void bicShouldReturnBic8Code() {
Bic bic = Bic.valueOf("DEUTDEFF500");
Bic bic01 = Bic.valueOf("DEUTDEFF500");
assertEquals(bic01.getBic8(), "DEUTDEFF");

assertEquals(bic.getBic8(), "DEUTDEFF");
Bic bic02 = Bic.valueOf("DEUTDEFF");
assertEquals(bic02.getBic8(), "DEUTDEFF");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ public void bicToStringShouldReturnString() {

@Test
public void bicShouldReturnBic8Code() {
Bic bic = Bic.valueOf("DEUTDEFF500");
Bic bic01 = Bic.valueOf("DEUTDEFF500");
assertThat(bic01.getBic8(), is(equalTo("DEUTDEFF")));

assertThat(bic.getBic8(), is(equalTo("DEUTDEFF")));
Bic bic02 = Bic.valueOf("DEUTDEFF");
assertThat(bic02.getBic8(), is(equalTo("DEUTDEFF")));
}

@RunWith(Parameterized.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public String getLocationCode() {
public String getBic8() {
return getBankCode() + getCountryCode() + getLocationCode();
}

/**
* Returns the branch code from the Bic.
*
Expand Down

0 comments on commit 0bd8b06

Please sign in to comment.