use of org.rembx.jeeshop.catalog.model.Presentation in project jeeshop by remibantos.
the class PresentationResourceCT method createTestPresentation.
private Presentation createTestPresentation() {
entityManager.getTransaction().begin();
Presentation presentation = new Presentation("fr_FR", "presentation test", "testShortDesc", "testLongDesc");
entityManager.persist(presentation);
entityManager.getTransaction().commit();
return presentation;
}
use of org.rembx.jeeshop.catalog.model.Presentation in project jeeshop by remibantos.
the class PresentationResourceCT method find_shouldReturnPresentation.
@Test
public void find_shouldReturnPresentation() {
Presentation presentation = new Presentation("en_GB", "presentation1", "short description", "long description");
service = new PresentationResource(entityManager, null).init(null, null, presentation);
assertThat(service.find()).isEqualTo(presentation);
}
Aggregations