Put back accidentally deleted assertion

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154300634
This commit is contained in:
cgoldfeder 2017-04-26 08:39:07 -07:00 committed by Ben McIlwain
parent 3f9501e469
commit d7da112c19
2 changed files with 5 additions and 1 deletions

View file

@ -1524,7 +1524,6 @@ public class DomainApplicationCreateFlowTest
@Test
public void testFailure_alreadyExists_triggersFailfast() throws Exception {
// This fails fast and throws DomainAlreadyExistsException from init() as a special case.
persistContactsAndHosts();
clock.advanceOneMilli();
persistActiveDomain(getUniqueIdFromCommand());
@ -1536,6 +1535,8 @@ public class DomainApplicationCreateFlowTest
getUniqueIdFromCommand());
} catch (ResourceAlreadyExistsException e) {
assertThat(e.isFailfast()).isTrue();
assertAboutEppExceptions().that(e).marshalsToXml().and().hasMessage(
String.format("Object with given ID (%s) already exists", getUniqueIdFromCommand()));
}
}