package org.appfuse.model;
import junit.framework.TestCase;
public class UserTest extends TestCase
{
org.appfuse.model.User user = null;
public UserTest(String name) {
super(name);
}
public org.appfuse.model.User createInstance()
throws Exception {
return new org.appfuse.model.User();
}
protected void setUp() throws Exception {
super.setUp();
user = createInstance();
}
protected void tearDown() throws Exception {
user = null;
super.tearDown();
}
public void testAddRole() throws Exception {
}
public void testAddResume() throws Exception {
}
public void testSetGetId() throws Exception {
java.lang.Long[] tests =
{
new Long(Long.MIN_VALUE), new Long(-1), new Long(0), new Long(1),
new Long(Long.MAX_VALUE), null
};
for (int i = 0; i < tests.length; i++) {
user.setId(tests[i]);
assertEquals(tests[i], user.getId());
}
}
public void testSetGetAddress() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setAddress(tests[i]);
assertEquals(tests[i], user.getAddress());
}
}
public void testSetGetCity() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setCity(tests[i]);
assertEquals(tests[i], user.getCity());
}
}
public void testSetGetCountry() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setCountry(tests[i]);
assertEquals(tests[i], user.getCountry());
}
}
public void testSetGetEmail() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setEmail(tests[i]);
assertEquals(tests[i], user.getEmail());
}
}
public void testSetGetFirstName() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setFirstName(tests[i]);
assertEquals(tests[i], user.getFirstName());
}
}
public void testSetGetLastName() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setLastName(tests[i]);
assertEquals(tests[i], user.getLastName());
}
}
public void testSetGetPassword() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setPassword(tests[i]);
assertEquals(tests[i], user.getPassword());
}
}
public void testSetGetPhoneNumber() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setPhoneNumber(tests[i]);
assertEquals(tests[i], user.getPhoneNumber());
}
}
public void testSetGetPostalCode() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setPostalCode(tests[i]);
assertEquals(tests[i], user.getPostalCode());
}
}
public void testSetGetProvince() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setProvince(tests[i]);
assertEquals(tests[i], user.getProvince());
}
}
public void testSetGetUsername() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setUsername(tests[i]);
assertEquals(tests[i], user.getUsername());
}
}
public void testSetGetWebsite() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
user.setWebsite(tests[i]);
assertEquals(tests[i], user.getWebsite());
}
}
public void testSetGetRoles() throws Exception {
java.util.List[] tests = { new java.util.ArrayList(), null };
for (int i = 0; i < tests.length; i++) {
user.setRoles(tests[i]);
assertEquals(tests[i], user.getRoles());
}
}
public void testVault() throws Exception {
}
public static void main(String[] args) {
junit.textui.TestRunner.run(UserTest.class);
}
}