@Test
public void ignoreTranslationsFromObsoleteProjectAndVersion()
throws Exception {
ProjectIterationDAO projectIterationDAO =
seam.autowire(ProjectIterationDAO.class);
ProjectDAO projectDAO = seam.autowire(ProjectDAO.class);
// Make versions and projects obsolete
HProjectIteration version =
projectIterationDAO.getBySlug("same-project", "same-version");
assert version != null;
version.setStatus(EntityStatus.OBSOLETE);
projectIterationDAO.makePersistent(version);
HProject project = projectDAO.getBySlug("different-project");
assert project != null;
project.setStatus(EntityStatus.OBSOLETE);
projectDAO.makePersistent(project);
// Run the copy trans scenario (very liberal, but nothing should be
// translated)
CopyTransExecution execution =
new CopyTransExecution(IGNORE, IGNORE, IGNORE, true, true,