/** * Accuracy test for the method <code>setCountry(Country country)</code>.<br> * The value should be properly set. */ @Test public void test_setCountry() { Country value = new Country(); instance.setCountry(value); assertSame("'setCountry' should be correct.", value, TestsHelper.getField(instance, "country")); }
/** * Accuracy test for the method <code>setState(State state)</code>.<br> * The value should be properly set. */ @Test public void test_setState() { State value = new State(); instance.setState(value); assertSame("'setState' should be correct.", value, TestsHelper.getField(instance, "state")); }
/** * Accuracy test for the method <code>setCity(String city)</code>.<br> * The value should be properly set. */ @Test public void test_setCity() { String value = "new_value"; instance.setCity(value); assertEquals("'setCity' should be correct.", value, TestsHelper.getField(instance, "city")); }
/** * Accuracy test for the method <code>setStreet1(String street1)</code>.<br> * The value should be properly set. */ @Test public void test_setStreet1() { String value = "new_value"; instance.setStreet1(value); assertEquals( "'setStreet1' should be correct.", value, TestsHelper.getField(instance, "street1")); }
/** * Accuracy test for the method <code>setZipCode(String zipCode)</code>.<br> * The value should be properly set. */ @Test public void test_setZipCode() { String value = "new_value"; instance.setZipCode(value); assertEquals( "'setZipCode' should be correct.", value, TestsHelper.getField(instance, "zipCode")); }
/** * Accuracy test for the constructor <code>Address()</code>.<br> * Instance should be correctly created. */ @Test public void testCtor() { instance = new Address(); assertNull("'street1' should be correct.", TestsHelper.getField(instance, "street1")); assertNull("'street2' should be correct.", TestsHelper.getField(instance, "street2")); assertNull("'street3' should be correct.", TestsHelper.getField(instance, "street3")); assertNull("'street4' should be correct.", TestsHelper.getField(instance, "street4")); assertNull("'street5' should be correct.", TestsHelper.getField(instance, "street5")); assertNull("'city' should be correct.", TestsHelper.getField(instance, "city")); assertNull("'state' should be correct.", TestsHelper.getField(instance, "state")); assertNull("'zipCode' should be correct.", TestsHelper.getField(instance, "zipCode")); assertNull("'country' should be correct.", TestsHelper.getField(instance, "country")); }