Esempio n. 1
0
 @Override
 protected <S extends ScaleMetrics> Integer actualResult(Decimal<S> operand) {
   if (RND.nextBoolean()) {
     return operand.signum();
   }
   // do some native tests because this is otherwise not covered
   return arithmetic.signum(operand.unscaledValue());
 }
 @Override
 public BuchAbsatz createRandomEntity() {
   final RandomGenerator rnd = RandomGenerator.getInstance();
   final BuchAbsatz absatz = new BuchAbsatz();
   absatz.setFreigeschaltet(RND.nextBoolean());
   absatz.setAbsatznummer(rnd.nextInt(1, 100));
   absatz.setText(rnd.nextSentence(10, 100, 2, 12));
   absatz.setKommentarliste(new BuchAbsatzKommentarEntityFactory().createRandomEntityList(0, 1));
   return absatz;
 }