@Test public void convertTest() { User user = ModelUtils.getUser(); Habit expected = Habit.builder() .createDate(ZonedDateTime.now()) .statusHabit(true) .build(); assertEquals(expected, habitMapper.convert(user)); }
@Override protected Habit convert(User user) { List<User> users = new ArrayList<>(); users.add(user); return Habit.builder() .createDate(ZonedDateTime.now()) .users(users) .statusHabit(true) .build(); }
HabitMapper extends AbstractConverter<User, Habit> { @Override protected Habit convert(User user) { List<User> users = new ArrayList<>(); users.add(user); return Habit.builder() .createDate(ZonedDateTime.now()) .users(users) .statusHabit(true) .build(); } }
HabitMapper extends AbstractConverter<User, Habit> { @Override protected Habit convert(User user) { List<User> users = new ArrayList<>(); users.add(user); return Habit.builder() .createDate(ZonedDateTime.now()) .users(users) .statusHabit(true) .build(); }  }
HabitMapper extends AbstractConverter<User, Habit> { @Override protected Habit convert(User user) { List<User> users = new ArrayList<>(); users.add(user); return Habit.builder() .createDate(ZonedDateTime.now()) .users(users) .statusHabit(true) .build(); }   }
HabitMapper extends AbstractConverter<User, Habit> { @Override protected Habit convert(User user) { List<User> users = new ArrayList<>(); users.add(user); return Habit.builder() .createDate(ZonedDateTime.now()) .users(users) .statusHabit(true) .build(); }    }