UpdateSocialSecurityIncomeTest.java
package durbodax.commands.customer;
import durbodax.customers.CustomerData;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Kirk Seddon
*/
public class UpdateSocialSecurityIncomeTest {
public UpdateSocialSecurityIncomeTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of execute method, of class UpdateSocialSecurityIncome.
*/
@Test
public void testExecute() {
//Random replace here as well
System.out.println("execute");
String[] input = new String[] { "command", "31257" }; //10456->31257
UpdateSocialSecurityIncome instance = new UpdateSocialSecurityIncome();
instance.execute(input);
assertEquals(10456, CustomerData.CUSTOMER.getCustomer().getSocialSecurityIncome());
}
}