Skip to content

Commit d8967a7

Browse files
yrodieregsmet
authored andcommitted
HV-1817 Fix style issues
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
1 parent c4684a6 commit d8967a7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/hv/ScriptAssertValidatorTest.java

+12-6
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ public class ScriptAssertValidatorTest extends AbstractConstrainedTest {
4343

4444
@Test
4545
public void scriptEvaluatesToTrue() throws Exception {
46-
@ScriptAssert(lang = "groovy", script = "true") class TmpType { }
46+
@ScriptAssert(lang = "groovy", script = "true") class TmpType {
47+
}
4748
assertNoViolations( validator.validate( new TmpType() ) );
4849

4950
}
5051

5152
@Test
5253
public void scriptEvaluatesToFalse() throws Exception {
53-
@ScriptAssert(lang = "groovy", script = "false") class TmpType { }
54+
@ScriptAssert(lang = "groovy", script = "false") class TmpType {
55+
}
5456
assertThat( validator.validate( new TmpType() ) ).containsOnlyViolations(
5557
violationOf( ScriptAssert.class )
5658
);
@@ -107,28 +109,32 @@ public void emptyAliasRaisesException() throws Exception {
107109

108110
@Test(expectedExceptions = ConstraintDeclarationException.class)
109111
public void unknownLanguageNameRaisesException() throws Exception {
110-
@ScriptAssert(lang = "foo", script = "script") class TmpType { }
112+
@ScriptAssert(lang = "foo", script = "script") class TmpType {
113+
}
111114

112115
assertNoViolations( validator.validate( new TmpType() ) );
113116
}
114117

115118
@Test(expectedExceptions = ConstraintDeclarationException.class)
116119
public void illegalScriptExpressionRaisesException() throws Exception {
117-
@ScriptAssert(lang = "groovy", script = "foo") class TmpType { }
120+
@ScriptAssert(lang = "groovy", script = "foo") class TmpType {
121+
}
118122

119123
assertNoViolations( validator.validate( new TmpType() ) );
120124
}
121125

122126
@Test(expectedExceptions = ConstraintDeclarationException.class)
123127
public void scriptExpressionReturningNullRaisesException() throws Exception {
124-
@ScriptAssert(lang = "groovy", script = "null") class TmpType { }
128+
@ScriptAssert(lang = "groovy", script = "null") class TmpType {
129+
}
125130

126131
assertNoViolations( validator.validate( new TmpType() ) );
127132
}
128133

129134
@Test(expectedExceptions = ConstraintDeclarationException.class)
130135
public void scriptExpressionReturningNoBooleanRaisesException() throws Exception {
131-
@ScriptAssert(lang = "groovy", script = "new java.util.Date()") class TmpType { }
136+
@ScriptAssert(lang = "groovy", script = "new java.util.Date()") class TmpType {
137+
}
132138

133139
assertNoViolations( validator.validate( new TmpType() ) );
134140
}

0 commit comments

Comments
 (0)