package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends TestBase {

  @Test
  public void testNonEmptyContactCreation() throws Exception {
	openMainPage();
	addNewPage();
	ContactData contact = new ContactData();
	contact.fname = "First name";
	contact.lname = "Last name";
	contact.address = "Moscow, Leningradsky st., 81";
	contact.hphone = "495 555 5555";
	contact.mphone = "901 555 5555";
	contact.wphone = "499 999 9999";
	contact.email = "local@localhost.ru";
	contact.email2 = "ex@ex.ru";
	contact.byear = "1980";
	contact.sgroup = "Rob";
	contact.address2 = "Moscow, Tretiakovsky st., 1";
	contact.phone2 = "112";
	contact.bday = "15";
	contact.bmonth = "September";
	fillContactForm(contact);
	submitContactCreation();
	gotoHomePage();
  }
  @Test
  public void testEmptyContactCreation() throws Exception {
	openMainPage();
	addNewPage();
	fillContactForm(new ContactData("", "", "","", "", "","", "", "","", "", "", "", ""));
	submitContactCreation();
	gotoHomePage();
  }
 
}


@@ -797,244 +797,7 @@
   %7D%0A
-  @Test%0A  public void testEmptyContactCreation() throws Exception %7B%0A%09openMainPage();%0A%09addNewPage();%0A%09fillContactForm(new ContactData(%22%22, %22%22, %22%22,%22%22, %22%22, %22%22,%22%22, %22%22, %22%22,%22%22, %22%22, %22%22, %22%22, %22%22));%0A%09submitContactCreation();%0A%09gotoHomePage();%0A  %7D%0A %0A
 %7D%0A%0A

Update ContactCreationTests.java