2020import org .springframework .core .Ordered ;
2121import org .springframework .stereotype .Component ;
2222
23- public class DomaApplicationListenerTest {
23+ class DomaApplicationListenerTest {
2424
2525 @ Nested
26- public static class ConstructorTest {
26+ static class ConstructorTest {
2727
2828 @ SuppressWarnings ("unused" )
2929 @ Test
@@ -37,7 +37,7 @@ void entityOnly() throws Exception {
3737
3838 @ SuppressWarnings ("unused" )
3939 @ Test
40- public void entityWithContext () throws Exception {
40+ void entityWithContext () throws Exception {
4141 String beanName = "" ;
4242 Method method = EntityWithContext .class .getDeclaredMethod ("handle" ,
4343 TestEntity1 .class , PreInsertContext .class );
@@ -47,7 +47,7 @@ public void entityWithContext() throws Exception {
4747
4848 @ SuppressWarnings ("unused" )
4949 @ Test
50- public void multiAnnotations () throws Exception {
50+ void multiAnnotations () throws Exception {
5151 String beanName = "" ;
5252 Method method = MultiAnnotations .class .getDeclaredMethod ("handle" ,
5353 TestEntity1 .class );
@@ -56,7 +56,7 @@ public void multiAnnotations() throws Exception {
5656 }
5757
5858 @ Test
59- public void notEntity () throws Exception {
59+ void notEntity () throws Exception {
6060 String beanName = "" ;
6161 Method method = NotEntity .class
6262 .getDeclaredMethod ("handle" , TestEntity3 .class );
@@ -66,7 +66,7 @@ public void notEntity() throws Exception {
6666 }
6767
6868 @ Test
69- public void invalidContextClass () throws Exception {
69+ void invalidContextClass () throws Exception {
7070 String beanName = "" ;
7171 Method method = InvalidContextClass .class .getDeclaredMethod ("handle" ,
7272 TestEntity1 .class , PostInsertContext .class );
@@ -76,7 +76,7 @@ public void invalidContextClass() throws Exception {
7676 }
7777
7878 @ Test
79- public void invalidContextTypeVar () throws Exception {
79+ void invalidContextTypeVar () throws Exception {
8080 String beanName = "" ;
8181 Method method = InvalidContextTypeVar .class .getDeclaredMethod ("handle" ,
8282 TestEntity1 .class , PreInsertContext .class );
@@ -86,7 +86,7 @@ public void invalidContextTypeVar() throws Exception {
8686 }
8787
8888 @ Test
89- public void noArg () throws Exception {
89+ void noArg () throws Exception {
9090 String beanName = "" ;
9191 Method method = NoArg .class .getDeclaredMethod ("handle" );
9292 BeanFactory beanFactory = mock (BeanFactory .class );
@@ -95,7 +95,7 @@ public void noArg() throws Exception {
9595 }
9696
9797 @ Test
98- public void tooManyArgs () throws Exception {
98+ void tooManyArgs () throws Exception {
9999 String beanName = "" ;
100100 Method method = TooManyArgs .class .getDeclaredMethod ("handle" ,
101101 TestEntity1 .class , PreInsertContext .class , Object .class );
@@ -105,7 +105,7 @@ public void tooManyArgs() throws Exception {
105105 }
106106
107107 @ Test
108- public void multiAnnotationsWithContext () throws Exception {
108+ void multiAnnotationsWithContext () throws Exception {
109109 String beanName = "" ;
110110 Method method = MultiAnnotationsWithContext .class .getDeclaredMethod ("handle" ,
111111 TestEntity1 .class , PreInsertContext .class );
@@ -184,7 +184,7 @@ void handle(TestEntity1 entity, PreInsertContext<TestEntity1> context) {
184184 }
185185
186186 @ Nested
187- public static class OnApplicationEventTest {
187+ static class OnApplicationEventTest {
188188
189189 @ Test
190190 void handleEvent () throws Exception {
@@ -209,7 +209,7 @@ void handleEvent() throws Exception {
209209 }
210210
211211 @ Test
212- public void handleEventWithContext () throws Exception {
212+ void handleEventWithContext () throws Exception {
213213 try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext ()) {
214214 context .register (WithContextHandler .class );
215215
@@ -237,7 +237,7 @@ public void handleEventWithContext() throws Exception {
237237 }
238238
239239 @ Test
240- public void differentEventContext () throws Exception {
240+ void differentEventContext () throws Exception {
241241 try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext ()) {
242242 context .register (EntityOnlyHandler .class );
243243 context .refresh ();
@@ -259,7 +259,7 @@ public void differentEventContext() throws Exception {
259259 }
260260
261261 @ Test
262- public void differentEntity () throws Exception {
262+ void differentEntity () throws Exception {
263263 try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext ()) {
264264 context .register (EntityOnlyHandler .class );
265265 context .refresh ();
@@ -281,7 +281,7 @@ public void differentEntity() throws Exception {
281281 }
282282
283283 @ Test
284- public void handleSubEntity () throws Exception {
284+ void handleSubEntity () throws Exception {
285285 try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext ()) {
286286 context .register (SuperClassHandler .class );
287287 context .refresh ();
0 commit comments