DATACMNS-1289 - Polishing.

Original pull request: #280.
This commit is contained in:
Oliver Gierke
2018-04-06 15:14:49 +02:00
parent 142c9ddb5c
commit 5e2e51b7a0
2 changed files with 7 additions and 1 deletions

View File

@@ -26,8 +26,8 @@ import org.junit.Test;
*/
public class RepositoryFragmentUnitTests {
@SuppressWarnings("unchecked")
@Test // DATACMNS-1289
@SuppressWarnings("unchecked")
public void fragmentCreationFromUnrelatedTypesShouldFail() {
assertThatThrownBy(() -> RepositoryFragment.implemented((Class) CustomFragment.class, new UnrelatedImpl()))