Rename test fixture to avoid class with existing TestBean class

This commit is contained in:
Stephane Nicoll
2022-07-22 12:03:00 +02:00
parent ba5ab1ad9d
commit c09eb633db
3 changed files with 37 additions and 32 deletions

View File

@@ -21,5 +21,5 @@ package org.springframework.beans.factory.aot;
*
* @author Stephane Nicoll
*/
public class TestBean {
public class SimpleBean {
}

View File

@@ -23,16 +23,16 @@ import org.springframework.beans.factory.FactoryBean;
*
* @author Stephane Nicoll
*/
public class TestBeanFactoryBean implements FactoryBean<TestBean> {
public class SimpleBeanFactoryBean implements FactoryBean<SimpleBean> {
@Override
public TestBean getObject() throws Exception {
return new TestBean();
public SimpleBean getObject() throws Exception {
return new SimpleBean();
}
@Override
public Class<?> getObjectType() {
return TestBean.class;
return SimpleBean.class;
}
}