Package fr.iut.montreuil.model

Examples of fr.iut.montreuil.model.Media


 
 
  @Test
  public void addElement()
  {
    dao.add(new Media());
   
    Collection<Media>medias = dao.findAll();
   
    Assert.assertNotNull(medias);
    Assert.assertEquals(1,medias.size());
View Full Code Here


  }
 
  @Test
  public void removeElement()
  {
    dao.add(new Media("Autant en emporte le vent"));
   
    Collection<Media>medias = dao.findAll();
    Assert.assertEquals(1,medias.size());
   
    dao.removeByName("Autant en emporte le vent");
View Full Code Here

 
  @Override
  public void init() throws ServletException {
   
    dao  = new MediaDao();
    dao.add(new Media("Fight Club"));
    dao.add(new Media("Blade Runner"));
    dao.add(new Media("Dark City"));
   
    super.init();
  }
View Full Code Here

TOP

Related Classes of fr.iut.montreuil.model.Media

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.