Search in sources :

Example 16 with ProjectDTO

use of org.activityinfo.shared.dto.ProjectDTO in project activityinfo by bedatadriven.

the class ProjectTest method constraintViolation.

@Test(expected = Exception.class)
public void constraintViolation() {
    setUser(1);
    SchemaDTO schema = execute(new GetSchema());
    ProjectDTO project = schema.getProjectById(2);
    project.setName(null);
    execute(RequestChange.update(project, "name"));
}
Also used : ProjectDTO(org.activityinfo.shared.dto.ProjectDTO) SchemaDTO(org.activityinfo.shared.dto.SchemaDTO) GetSchema(org.activityinfo.shared.command.GetSchema) Test(org.junit.Test)

Aggregations

ProjectDTO (org.activityinfo.shared.dto.ProjectDTO)16 CreateResult (org.activityinfo.shared.command.result.CreateResult)6 PartnerDTO (org.activityinfo.shared.dto.PartnerDTO)6 ActivityDTO (org.activityinfo.shared.dto.ActivityDTO)5 SiteDTO (org.activityinfo.shared.dto.SiteDTO)4 Test (org.junit.Test)4 AsyncCallback (com.google.gwt.user.client.rpc.AsyncCallback)3 GregorianCalendar (java.util.GregorianCalendar)3 FormDialogCallback (org.activityinfo.client.page.common.dialog.FormDialogCallback)3 FormDialogTether (org.activityinfo.client.page.common.dialog.FormDialogTether)3 LockedPeriodDTO (org.activityinfo.shared.dto.LockedPeriodDTO)3 KeyGenerator (org.activityinfo.client.local.command.handler.KeyGenerator)2 AddProject (org.activityinfo.shared.command.AddProject)2 CreateSite (org.activityinfo.shared.command.CreateSite)2 GetSchema (org.activityinfo.shared.command.GetSchema)2 SchemaDTO (org.activityinfo.shared.dto.SchemaDTO)2 UserDatabaseDTO (org.activityinfo.shared.dto.UserDatabaseDTO)2 SqlResultCallback (com.bedatadriven.rebar.sql.client.SqlResultCallback)1 SqlResultSet (com.bedatadriven.rebar.sql.client.SqlResultSet)1 SqlResultSetRow (com.bedatadriven.rebar.sql.client.SqlResultSetRow)1