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