Skip to content

Commit

Permalink
adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
lecousin committed May 8, 2022
1 parent 7da8566 commit 3b1554f
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ public void testDialect() {
@Test
public void testEnhanceAgain() throws Exception {
Collection<Class<?>> entities = getAllCompatibleEntities();
Enhancer.enhance(Arrays.asList(entities.iterator().next().getName()));
Enhancer.enhance(Arrays.asList(entities.iterator().next().getName()));
try {
Enhancer.enhance(Arrays.asList(entities.iterator().next().getName()));
throw new AssertionError();
} catch (Throwable t) {
// expected
}
try {
Enhancer.enhance(Arrays.asList(entities.iterator().next().getName()));
throw new AssertionError();
} catch (Throwable t) {
// expected
}
}

@Test
Expand Down

0 comments on commit 3b1554f

Please sign in to comment.