/** Test of saveNews method, of class JournalistController. */
 @Test
 public void testSaveNews() {
   System.out.println("saveNews");
   String title = "Testing Save";
   String description = "This is junit testing for checking news saving";
   String comment = "nothing";
   String tempLink = "C:\\Users\\Dilip\\Desktop\\NetBeans.zip";
   LoginController.login("dilip", "dilip");
   boolean expResult = true;
   boolean result = JournalistController.saveNews(title, description, comment, tempLink);
   assertEquals(expResult, result);
   System.out.println("");
   // TODO review the generated test code and remove the default call to fail.
   // fail("The test case is a prototype.");
 }
  /** Test of updateJournalist method, of class JournalistController. */
  @Test
  public void testUpdateJournalist() {
    System.out.println("updateJournalist");
    Journalist journalist = new Journalist();
    LoginController.login("dilip", "dilip");
    journalist.setFirstName("Dilip");
    journalist.setLastName("Tharuka");
    journalist.setStreet("Maligagodella");
    journalist.setCity("Mulleriyawa");
    journalist.setCountry("Sri Lanka");
    journalist.addMobile("0719957440");
    journalist.addMobile("0719995064");

    boolean expResult = true;
    boolean result = JournalistController.updateJournalist(journalist);
    assertEquals(expResult, result);
    System.out.println("");
    // TODO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }