rename unit tests
This commit is contained in:
parent
5a8ec66b5d
commit
ee8bf9f711
@ -11,7 +11,7 @@ import com.baeldung.model.Student;
|
||||
public class ConstructorConfigTest {
|
||||
|
||||
@Test
|
||||
public void testConstructorDependencyInjection() {
|
||||
public void whenContextLoaded_thenDependencyInjected() {
|
||||
ApplicationContext context = new AnnotationConfigApplicationContext(ConstructorConfig.class);
|
||||
Student student = context.getBean(Student.class);
|
||||
assertEquals(1, student.getId());
|
||||
|
@ -11,7 +11,7 @@ import com.baeldung.model.Student;
|
||||
public class SetterConfigTest {
|
||||
|
||||
@Test
|
||||
public void testConstructorDependencyInjection() {
|
||||
public void whenContextLoaded_thenDependencyInjected() {
|
||||
ApplicationContext context = new AnnotationConfigApplicationContext(SetterConfig.class);
|
||||
Student student = context.getBean(Student.class);
|
||||
assertEquals(2, student.getId());
|
||||
|
Loading…
x
Reference in New Issue
Block a user