package org.appfuse.model;
import junit.framework.TestCase;
public class ResumeTest extends TestCase
{
org.appfuse.model.Resume resume = null;
public ResumeTest(String name) {
super(name);
}
public org.appfuse.model.Resume createInstance()
throws Exception {
return new org.appfuse.model.Resume();
}
protected void setUp() throws Exception {
super.setUp();
resume = createInstance();
}
protected void tearDown() throws Exception {
resume = null;
super.tearDown();
}
public void testSetGetDescription() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
resume.setDescription(tests[i]);
assertEquals(tests[i], resume.getDescription());
}
}
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++) {
resume.setId(tests[i]);
assertEquals(tests[i], resume.getId());
}
}
public void testSetGetName() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
resume.setName(tests[i]);
assertEquals(tests[i], resume.getName());
}
}
public void testSetGetObjective() throws Exception {
java.lang.String[] tests =
{ "", " ", "a", "A", "ä", "ß", "0123456789", "012345678901234567890", "\n", null };
for (int i = 0; i < tests.length; i++) {
resume.setObjective(tests[i]);
assertEquals(tests[i], resume.getObjective());
}
}
public void testSetGetUserId() 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++) {
resume.setUserId(tests[i]);
assertEquals(tests[i], resume.getUserId());
}
}
public void testVault() throws Exception {
}
public static void main(String[] args) {
junit.textui.TestRunner.run(ResumeTest.class);
}
}