@@ -0,0 +1,1606 @@
+package ca.ulaval.ticketmaster.web.converter;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Test;%0A%0Aimport ca.ulaval.ticketmaster.dao.util.DataManager;%0Aimport ca.ulaval.ticketmaster.model.Ticket;%0Aimport ca.ulaval.ticketmaster.web.viewmodels.TicketViewModel;%0A%0Apublic class TicketConverterTest %7B%0A%09%0A%09@Test%0A%09public void convertEntryToviewmodel() %7B%0A%09%09Ticket t = new Ticket(1);%0A%09%09t.setEvent(null);%0A%09%09t.setOwner(%22owner%22);%0A%09%09t.setPrice(1.0);%0A%09%09t.setResellprice(1.0);%0A%09%09t.setSeat(%22seat%22);%0A%09%09t.setSection(%22section%22);%0A%09%09%0A%09%09TicketViewModel viewmodel = TicketConverter.convert(t);%0A%09%09%0A%09%09assertEquals(t.getEvent(), viewmodel.event);%0A%09%09assertEquals(t.getOwner(), viewmodel.owner);%0A%09%09assertEquals(t.getPrice(), viewmodel.price, 0.001);%0A%09%09assertEquals(t.getResellprice(), viewmodel.resellprice, 0.001);%0A%09%09assertEquals(t.getSeat(), viewmodel.seat);%0A%09%09assertEquals(t.getSection(), viewmodel.section);%0A%09%7D%0A%09%0A%09@Test%0A%09public void convertviewmodelToEntry() %7B%0A%09%09TicketViewModel viewmodel = new TicketViewModel();%0A%09%09viewmodel.setEvent(null);%0A%09%09viewmodel.setOwner(%22owner%22);%0A%09%09viewmodel.setPrice(1.0);%0A%09%09viewmodel.setResellprice(1.0);%0A%09%09viewmodel.setSeat(%22seat%22);%0A%09%09viewmodel.setSection(%22section%22);%0A%09%09%0A%09%09Ticket t = TicketConverter.convert(viewmodel, new DataManager());%0A%09%09%0A%09%09assertEquals(t.getEvent(), viewmodel.getEvent());%0A%09%09assertEquals(t.getOwner(), viewmodel.getOwner());%0A%09%09assertEquals(t.getPrice(), viewmodel.getPrice(), 0.001);%0A%09%09assertEquals(t.getResellprice(), viewmodel.getResellprice(), 0.001);%0A%09%09assertEquals(t.getSeat(), viewmodel.getSeat());%0A%09%09assertEquals(t.getSection(), viewmodel.getSection());%0A%09%7D%0A%7D%0A

Add test for my converter