Skip to content

Commit

Permalink
getSparte() mit Bausparen 0210.580 (Produkt statt Sparte) getestet
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli B committed Mar 16, 2024
1 parent 4a324a3 commit 0818420
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/test/java/gdv/xport/satz/SatzTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,13 @@ public void testHasFeld() {
assertTrue(satz300.hasFeld(ByteAdresse.of(11)));
}

@Test
public void testHasSparteAsProdukt() {
Satz bausparen = SatzRegistry.getInstance().getSatz(SatzTyp.of("0210.580"));
assertTrue(bausparen.hasSparte());
assertEquals(580, bausparen.getSparte());
}



static class TestSatz extends Satz {
Expand Down

0 comments on commit 0818420

Please sign in to comment.