Datum extends Feld { @Override public boolean isEmpty() { if (super.isEmpty()) { return true; } try { int n = Integer.parseInt(this.getInhalt()); return n == 0; } catch (NumberFormatException e) { return false; } } Datum(final Enum feldX);  Datum(final Enum feldX, final FeldInfo info);  Datum(final Bezeichner bezeichner, final int start);  Datum(final String name, final int start);  Datum(final String name, final String inhalt);  Datum(Bezeichner bezeichner, int length, int start);  Datum(final Bezeichner bezeichner, final FeldInfo info);  Datum(final String name, final int length, final int start, final String inhalt);  Datum();  Datum(final int start);  Datum(final int length, final int start);  Datum(final Datum other); void setInhalt(final Datum d); void setInhalt(final Date d); Date toDate(); static Datum heute(); @Override boolean isEmpty(); @Override boolean isValid(); @Override boolean isInvalid(); @Override List<ConstraintViolation> validate(); @Override String format(); @SuppressWarnings("squid:S2975") @Override Object clone();  }
@Test public void testIsEmpty() { Datum empty = new Datum("empty", "00000000"); assertTrue(empty + " is empty", empty.isEmpty()); }