Skip to content

Commit

Permalink
HHH-16261 - Check if address field has been generated in Author_ class
Browse files Browse the repository at this point in the history
  • Loading branch information
cigaly authored and beikov committed Apr 25, 2023
1 parent de8b40e commit d9c074d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -6,6 +6,8 @@
import org.junit.Test;

import static org.hibernate.jpamodelgen.test.util.TestUtil.assertMetamodelClassGeneratedFor;
import static org.hibernate.jpamodelgen.test.util.TestUtil.getFieldFromMetamodelFor;
import static org.junit.Assert.assertNotNull;

public class Java14RecordsTest extends CompilationTest {

Expand All @@ -15,5 +17,6 @@ public class Java14RecordsTest extends CompilationTest {
public void testEmbeddableRecordProperty() {
assertMetamodelClassGeneratedFor(Address.class);
assertMetamodelClassGeneratedFor(Author.class);
assertNotNull("Author must contain 'address' field", getFieldFromMetamodelFor(Author.class, "address"));
}
}

0 comments on commit d9c074d

Please sign in to comment.