@Test public void testEnrichModel() { BaseProjectItem ret = projectActivityGenerator.enrichModel(project); verify(mockedProjectService, times(1)).getById(anyInt()); assertEquals(ret.getId(), new Integer(ModuleHelper.projectId)); assertEquals(ret.getCompanyId(), new Integer(ModuleHelper.companyId)); assertEquals(ret.getCreatorId(), new Integer(ModuleHelper.creatorId)); assertEquals(ret.getProjectId(), new Integer(ModuleHelper.projectId)); }
@Override public BaseProjectItem enrichModel(BaseProjectItem identifiable) { return new Project(projectService.getById(identifiable.getId())); }
ProjectActivityGenerator implements ActivityGenerator { @Override public BaseProjectItem enrichModel(BaseProjectItem identifiable) { return new Project(projectService.getById(identifiable.getId())); } }
ProjectActivityGenerator implements ActivityGenerator { @Override public BaseProjectItem enrichModel(BaseProjectItem identifiable) { return new Project(projectService.getById(identifiable.getId())); }  }
ProjectActivityGenerator implements ActivityGenerator { @Override public BaseProjectItem enrichModel(BaseProjectItem identifiable) { return new Project(projectService.getById(identifiable.getId())); }  @Override Activity generateCreateActivity(BaseProjectItem item); @Override Activity generateUpdateActivity(BaseProjectItem item, BaseProjectItem modifiedItem); @Override String modelType(); @Override BaseProjectItem enrichModel(BaseProjectItem identifiable); @Override String modelService(); }
ProjectActivityGenerator implements ActivityGenerator { @Override public BaseProjectItem enrichModel(BaseProjectItem identifiable) { return new Project(projectService.getById(identifiable.getId())); }  @Override Activity generateCreateActivity(BaseProjectItem item); @Override Activity generateUpdateActivity(BaseProjectItem item, BaseProjectItem modifiedItem); @Override String modelType(); @Override BaseProjectItem enrichModel(BaseProjectItem identifiable); @Override String modelService(); static final String CREATE_SUBJECT; static final String UPDATE_SUBJECT; static final String DISCARD_SUBJECT; static final String RECOVER_SUBJECT; static final String ARCHIVE_SUBJECT; static final String ACTIVATE_SUBJECT; static final String NAME_UPDATE; static final String DESCRIPTION_UPDATE; static final String NAME_AND_DESCRIPTION_UPDATE; }