|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2016 the original author or authors. |
| 2 | + * Copyright 2002-2019 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -49,30 +49,30 @@ public void setUp() {
|
49 | 49 | this.publisher = mock(ApplicationEventPublisher.class);
|
50 | 50 | }
|
51 | 51 |
|
52 |
| - @Test(expected=IllegalArgumentException.class) |
| 52 | + @Test(expected = IllegalArgumentException.class) |
53 | 53 | public void testWithNoApplicationEventClassSupplied() throws Exception {
|
54 | 54 | EventPublicationInterceptor interceptor = new EventPublicationInterceptor();
|
55 | 55 | interceptor.setApplicationEventPublisher(this.publisher);
|
56 | 56 | interceptor.afterPropertiesSet();
|
57 | 57 | }
|
58 | 58 |
|
59 |
| - @Test(expected=IllegalArgumentException.class) |
| 59 | + @Test(expected = IllegalArgumentException.class) |
60 | 60 | public void testWithNonApplicationEventClassSupplied() throws Exception {
|
61 | 61 | EventPublicationInterceptor interceptor = new EventPublicationInterceptor();
|
62 | 62 | interceptor.setApplicationEventPublisher(this.publisher);
|
63 | 63 | interceptor.setApplicationEventClass(getClass());
|
64 | 64 | interceptor.afterPropertiesSet();
|
65 | 65 | }
|
66 | 66 |
|
67 |
| - @Test(expected=IllegalArgumentException.class) |
| 67 | + @Test(expected = IllegalArgumentException.class) |
68 | 68 | public void testWithAbstractStraightApplicationEventClassSupplied() throws Exception {
|
69 | 69 | EventPublicationInterceptor interceptor = new EventPublicationInterceptor();
|
70 | 70 | interceptor.setApplicationEventPublisher(this.publisher);
|
71 | 71 | interceptor.setApplicationEventClass(ApplicationEvent.class);
|
72 | 72 | interceptor.afterPropertiesSet();
|
73 | 73 | }
|
74 | 74 |
|
75 |
| - @Test(expected=IllegalArgumentException.class) |
| 75 | + @Test(expected = IllegalArgumentException.class) |
76 | 76 | public void testWithApplicationEventClassThatDoesntExposeAValidCtor() throws Exception {
|
77 | 77 | EventPublicationInterceptor interceptor = new EventPublicationInterceptor();
|
78 | 78 | interceptor.setApplicationEventPublisher(this.publisher);
|
@@ -129,7 +129,7 @@ public TestEventWithNoValidOneArgObjectCtor() {
|
129 | 129 | public static class FactoryBeanTestListener extends TestListener implements FactoryBean<Object> {
|
130 | 130 |
|
131 | 131 | @Override
|
132 |
| - public Object getObject() throws Exception { |
| 132 | + public Object getObject() { |
133 | 133 | return "test";
|
134 | 134 | }
|
135 | 135 |
|
|
0 commit comments