Assert.assertThat(b.getTest2(), is(4));
}
@Test
public void testAnnotationInject() {
FoodConstructorTestService service = applicationContext.getBean(FoodConstructorTestService.class);
Assert.assertThat(service.getBeanTest().getTest1(), is("fffff"));
Assert.assertThat(service.getBeanTest().getTest2(), is(4));
Assert.assertThat(service.getFoodRepository().getFood().size(), is(3));
log.info(service.getFoodRepository().getFood().toString());
}