File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
spring-jms/src/test/java/org/springframework/jms/support Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 31
31
* @author Chris Beams
32
32
* @author Vedran Pavic
33
33
*/
34
- public class JmsAccessorTests {
34
+ class JmsAccessorTests {
35
35
36
36
@ Test
37
- public void testChokesIfConnectionFactoryIsNotSupplied () throws Exception {
37
+ void testChokesIfConnectionFactoryIsNotSupplied () {
38
38
JmsAccessor accessor = new StubJmsAccessor ();
39
39
assertThatIllegalArgumentException ().isThrownBy (
40
40
accessor ::afterPropertiesSet );
41
41
}
42
42
43
43
@ Test
44
- public void testSessionTransactedModeReallyDoesDefaultToFalse () throws Exception {
44
+ void testSessionTransactedModeReallyDoesDefaultToFalse () {
45
45
JmsAccessor accessor = new StubJmsAccessor ();
46
46
assertThat (accessor .isSessionTransacted ()).as ("The [sessionTransacted] property of JmsAccessor must default to " +
47
47
"false. Change this test (and the attendant Javadoc) if you have " +
48
48
"changed the default." ).isFalse ();
49
49
}
50
50
51
51
@ Test
52
- public void testAcknowledgeModeReallyDoesDefaultToAutoAcknowledge () throws Exception {
52
+ void testAcknowledgeModeReallyDoesDefaultToAutoAcknowledge () {
53
53
JmsAccessor accessor = new StubJmsAccessor ();
54
54
assertThat (accessor .getSessionAcknowledgeMode ()).as ("The [sessionAcknowledgeMode] property of JmsAccessor must default to " +
55
55
"[Session.AUTO_ACKNOWLEDGE]. Change this test (and the attendant " +
56
56
"Javadoc) if you have changed the default." ).isEqualTo (Session .AUTO_ACKNOWLEDGE );
57
57
}
58
58
59
59
@ Test
60
- public void testSetAcknowledgeModeNameChokesIfBadAckModeIsSupplied () throws Exception {
60
+ void testSetAcknowledgeModeNameChokesIfBadAckModeIsSupplied () {
61
61
assertThatIllegalArgumentException ().isThrownBy (() ->
62
62
new StubJmsAccessor ().setSessionAcknowledgeModeName ("Tally ho chaps!" ));
63
63
}
You can’t perform that action at this time.
0 commit comments