@@ -99,22 +99,22 @@ public void after(TestContext context) {
99
99
100
100
@ Test
101
101
public void testValidationSucceed (TestContext context ) {
102
- Configuration createHbm2ddlConf = constructConfiguration ( "validate" );
103
- createHbm2ddlConf .addAnnotatedClass ( ASimpleFirst .class );
104
- createHbm2ddlConf .addAnnotatedClass ( AOther .class );
102
+ Configuration configuration = constructConfiguration ( "validate" );
103
+ configuration .addAnnotatedClass ( ASimpleFirst .class );
104
+ configuration .addAnnotatedClass ( AOther .class );
105
105
106
- test ( context , setupSessionFactory ( createHbm2ddlConf ) );
106
+ test ( context , setupSessionFactory ( configuration ) );
107
107
}
108
108
109
109
//TODO: I'm just checking that the validation fails because the table is missing, but we need more tests to check that
110
110
// it fails for other scenarios: missing column, wrong type (?) and so on. (I don't know exactly what cases `validate`
111
111
// actually checks).
112
112
@ Test
113
113
public void testValidationFails (TestContext context ) {
114
- Configuration createHbm2ddlConf = constructConfiguration ( "validate" );
115
- createHbm2ddlConf .addAnnotatedClass ( AAnother .class );
114
+ Configuration configuration = constructConfiguration ( "validate" );
115
+ configuration .addAnnotatedClass ( AAnother .class );
116
116
117
- test ( context , setupSessionFactory ( createHbm2ddlConf )
117
+ test ( context , setupSessionFactory ( configuration )
118
118
.handle ( (unused , throwable ) -> {
119
119
context .assertNotNull ( throwable );
120
120
context .assertEquals ( throwable .getClass (), SchemaManagementException .class );
0 commit comments