/** * Tests <code>id</code> property, tests both <code>{@link CopilotProjectInfoType#setId(long)} * </code> and <code>{@link CopilotProjectInfoType#getId()}</code> methods. */ @Test public void testIdProperty() { Assert.assertEquals("Property id should be 0.", 0, instance.getId()); long id = 10l; instance.setId(id); Assert.assertEquals("Invalid id property value.", id, instance.getId()); }
/** * Tests <code>name</code> property, tests both <code> * {@link CopilotProjectInfoType#setName(String)}</code> and <code> * {@link CopilotProjectInfoType#getName()}</code> methods. */ @Test public void testNameProperty() { Assert.assertNull("Property name should be null.", instance.getName()); String name = "name"; instance.setName(name); Assert.assertEquals("Invalid name property value.", name, instance.getName()); }
/** * Tests <code>modifyDate</code> property, tests both <code>{@link * CopilotProjectInfoType#setModifyDate(Date)}</code> and <code> * {@link CopilotProjectInfoType#getModifyDate()}</code> methods. */ @Test public void testModifyDateProperty() { Assert.assertNull("Property modifyDate should be null.", instance.getModifyDate()); Date modifyDate = new Date(); instance.setModifyDate(modifyDate); Assert.assertEquals("Invalid modifyDate property value.", modifyDate, instance.getModifyDate()); }
/** * Tests <code>modifyUser</code> property, tests both <code>{@link * CopilotProjectInfoType#setModifyUser(String)}</code> and <code> * {@link CopilotProjectInfoType#getModifyUser()}</code> methods. */ @Test public void testModifyUserProperty() { Assert.assertNull("Property modifyUser should be null.", instance.getModifyUser()); String modifyUser = "******"; instance.setModifyUser(modifyUser); Assert.assertEquals("Invalid modifyUser property value.", modifyUser, instance.getModifyUser()); }
/** * Tests <code>createDate</code> property, tests both <code>{@link * CopilotProjectInfoType#setCreateDate(java.util.Date)}</code> and <code> * {@link CopilotProjectInfoType#getCreateDate()}</code> methods. */ @Test public void testCreateDateProperty() { Assert.assertNull("Property createDate should be null.", instance.getCreateDate()); Date createDate = new Date(); instance.setCreateDate(createDate); Assert.assertEquals("Invalid createDate property value.", createDate, instance.getCreateDate()); }
/** * Tests <code>createUser</code> property, tests both <code>{@link * CopilotProjectInfoType#setCreateUser(String)}</code> and <code> * {@link CopilotProjectInfoType#getCreateUser()}</code> methods. */ @Test public void testCreateUserProperty() { Assert.assertNull("Property createUser should be null.", instance.getCreateUser()); String createUser = "******"; instance.setCreateUser(createUser); Assert.assertEquals("Invalid createUser property value.", createUser, instance.getCreateUser()); }