@Test public void testMain() { String[] args = {}; App.main(args); }
public static void main(String[] args) { Converter<UserDto, User> userConverter = new UserConverter(); UserDto dtoUser = new UserDto("John", "Doe", true, "whatever[at]wherever.com"); User user = userConverter.convertFromDto(dtoUser); System.out.println("Entity converted from DTO:" + user); ArrayList<User> users = Lists.newArrayList(new User("Camile", "Tough", false, "124sad"), new User("Marti", "Luther", true, "42309fd"), new User("Kate", "Smith", true, "if0243")); System.out.println("Domain entities:"); users.forEach(System.out::println); System.out.println("DTO entities converted from domain:"); List<UserDto> dtoEntities = userConverter.createFromEntities(users); dtoEntities.forEach(System.out::println); }
App { public static void main(String[] args) { Converter<UserDto, User> userConverter = new UserConverter(); UserDto dtoUser = new UserDto("John", "Doe", true, "whatever[at]wherever.com"); User user = userConverter.convertFromDto(dtoUser); System.out.println("Entity converted from DTO:" + user); ArrayList<User> users = Lists.newArrayList(new User("Camile", "Tough", false, "124sad"), new User("Marti", "Luther", true, "42309fd"), new User("Kate", "Smith", true, "if0243")); System.out.println("Domain entities:"); users.forEach(System.out::println); System.out.println("DTO entities converted from domain:"); List<UserDto> dtoEntities = userConverter.createFromEntities(users); dtoEntities.forEach(System.out::println); } }
App { public static void main(String[] args) { Converter<UserDto, User> userConverter = new UserConverter(); UserDto dtoUser = new UserDto("John", "Doe", true, "whatever[at]wherever.com"); User user = userConverter.convertFromDto(dtoUser); System.out.println("Entity converted from DTO:" + user); ArrayList<User> users = Lists.newArrayList(new User("Camile", "Tough", false, "124sad"), new User("Marti", "Luther", true, "42309fd"), new User("Kate", "Smith", true, "if0243")); System.out.println("Domain entities:"); users.forEach(System.out::println); System.out.println("DTO entities converted from domain:"); List<UserDto> dtoEntities = userConverter.createFromEntities(users); dtoEntities.forEach(System.out::println); }  }
App { public static void main(String[] args) { Converter<UserDto, User> userConverter = new UserConverter(); UserDto dtoUser = new UserDto("John", "Doe", true, "whatever[at]wherever.com"); User user = userConverter.convertFromDto(dtoUser); System.out.println("Entity converted from DTO:" + user); ArrayList<User> users = Lists.newArrayList(new User("Camile", "Tough", false, "124sad"), new User("Marti", "Luther", true, "42309fd"), new User("Kate", "Smith", true, "if0243")); System.out.println("Domain entities:"); users.forEach(System.out::println); System.out.println("DTO entities converted from domain:"); List<UserDto> dtoEntities = userConverter.createFromEntities(users); dtoEntities.forEach(System.out::println); }  static void main(String[] args); }
App { public static void main(String[] args) { Converter<UserDto, User> userConverter = new UserConverter(); UserDto dtoUser = new UserDto("John", "Doe", true, "whatever[at]wherever.com"); User user = userConverter.convertFromDto(dtoUser); System.out.println("Entity converted from DTO:" + user); ArrayList<User> users = Lists.newArrayList(new User("Camile", "Tough", false, "124sad"), new User("Marti", "Luther", true, "42309fd"), new User("Kate", "Smith", true, "if0243")); System.out.println("Domain entities:"); users.forEach(System.out::println); System.out.println("DTO entities converted from domain:"); List<UserDto> dtoEntities = userConverter.createFromEntities(users); dtoEntities.forEach(System.out::println); }  static void main(String[] args);  }