File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed
hibernate-core/src/test/java/org/hibernate/test/subselect
hibernate-java8/src/test/java/org/hibernate/test/type Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import static org .hamcrest .core .Is .is ;
18
18
import static org .junit .Assert .assertThat ;
19
+ import static org .junit .Assert .fail ;
19
20
20
21
/**
21
22
* @author Andrea Boriero
@@ -57,6 +58,7 @@ public void testSubselect() {
57
58
if ( s .getTransaction ().getStatus () == TransactionStatus .ACTIVE ) {
58
59
s .getTransaction ().rollback ();
59
60
}
61
+ fail ( e .getMessage () );
60
62
}
61
63
finally {
62
64
s .close ();
Original file line number Diff line number Diff line change 23
23
24
24
import static org .hamcrest .core .Is .is ;
25
25
import static org .junit .Assert .assertThat ;
26
+ import static org .junit .Assert .fail ;
26
27
27
28
/**
28
29
* @author Andrea Boriero
@@ -49,7 +50,7 @@ public void setUp() {
49
50
if ( s .getTransaction () != null && s .getTransaction ().getStatus () == TransactionStatus .ACTIVE ) {
50
51
s .getTransaction ().rollback ();
51
52
}
52
- throw e ;
53
+ fail ( e . getMessage () ) ;
53
54
}
54
55
finally {
55
56
s .close ();
Original file line number Diff line number Diff line change 26
26
27
27
import static org .hamcrest .core .Is .is ;
28
28
import static org .junit .Assert .assertThat ;
29
+ import static org .junit .Assert .fail ;
29
30
30
31
/**
31
32
* @author Andrea Boriero
@@ -144,7 +145,7 @@ private void saveOffsetDateTimeEventWithStartDate(OffsetDateTime startdate) {
144
145
if ( s .getTransaction () != null && s .getTransaction ().getStatus () == TransactionStatus .ACTIVE ) {
145
146
s .getTransaction ().rollback ();
146
147
}
147
- throw e ;
148
+ fail ( e . getMessage () ) ;
148
149
}
149
150
finally {
150
151
s .close ();
Original file line number Diff line number Diff line change 25
25
26
26
import static org .hamcrest .core .Is .is ;
27
27
import static org .junit .Assert .assertThat ;
28
+ import static org .junit .Assert .fail ;
28
29
29
30
/**
30
31
* @author Andrea Boriero
@@ -141,7 +142,7 @@ private void saveZoneDateTimeEventWithStartDate(ZonedDateTime startdate) {
141
142
if ( s .getTransaction () != null && s .getTransaction ().getStatus () == TransactionStatus .ACTIVE ) {
142
143
s .getTransaction ().rollback ();
143
144
}
144
- throw e ;
145
+ fail ( e . getMessage () ) ;
145
146
}
146
147
finally {
147
148
s .close ();
You can’t perform that action at this time.
0 commit comments