@@ -172,6 +172,9 @@ public void testPrototypeFactoryBeanIgnoredByNonEagerTypeMatching() {
172172 assertTrue ("prototype not instantiated" , !DummyFactory .wasPrototypeCreated ());
173173 String [] beanNames = lbf .getBeanNamesForType (TestBean .class , true , false );
174174 assertEquals (0 , beanNames .length );
175+ beanNames = lbf .getBeanNamesForAnnotation (SuppressWarnings .class );
176+ assertEquals (0 , beanNames .length );
177+
175178 assertFalse (lbf .containsSingleton ("x1" ));
176179 assertTrue (lbf .containsBean ("x1" ));
177180 assertTrue (lbf .containsBean ("&x1" ));
@@ -201,6 +204,9 @@ public void testPrototypeSingletonFactoryBeanIgnoredByNonEagerTypeMatching() {
201204 assertTrue ("prototype not instantiated" , !DummyFactory .wasPrototypeCreated ());
202205 String [] beanNames = lbf .getBeanNamesForType (TestBean .class , true , false );
203206 assertEquals (0 , beanNames .length );
207+ beanNames = lbf .getBeanNamesForAnnotation (SuppressWarnings .class );
208+ assertEquals (0 , beanNames .length );
209+
204210 assertFalse (lbf .containsSingleton ("x1" ));
205211 assertTrue (lbf .containsBean ("x1" ));
206212 assertTrue (lbf .containsBean ("&x1" ));
@@ -229,6 +235,9 @@ public void testNonInitializedFactoryBeanIgnoredByNonEagerTypeMatching() {
229235 assertTrue ("prototype not instantiated" , !DummyFactory .wasPrototypeCreated ());
230236 String [] beanNames = lbf .getBeanNamesForType (TestBean .class , true , false );
231237 assertEquals (0 , beanNames .length );
238+ beanNames = lbf .getBeanNamesForAnnotation (SuppressWarnings .class );
239+ assertEquals (0 , beanNames .length );
240+
232241 assertFalse (lbf .containsSingleton ("x1" ));
233242 assertTrue (lbf .containsBean ("x1" ));
234243 assertTrue (lbf .containsBean ("&x1" ));
0 commit comments