// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/businessservice/TodoBusinessService.java
// @Component
// public class TodoBusinessService {
// 
// 	@Autowired
// 	TodoDataService dataService;// = new TodoDataServiceStub()
// 
// 	public List<String> retrieveTodosRelatedToSpring(String user) {
// 		List<String> todosRelatedToSpring = new ArrayList<String>();
// 
// 		List<String> todos = dataService.retrieveTodos(user);
// 
// 		for (String todo : todos) {
// 			if (todo.contains("Spring")) {
// 				todosRelatedToSpring.add(todo);
// 			}
// 		}
// 		return todosRelatedToSpring;
// 	}
// 
// }


import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.in28minutes.spring.example1.businessservice.TodoBusinessService;
package com.in28minutes.spring.example1;





@Configuration
@ComponentScan(basePackages = {
		"com.in28minutes.spring.example1.businessservice",
// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/businessservice/TodoBusinessService.java
// @Component
// public class TodoBusinessService {
// 
// 	@Autowired
// 	TodoDataService dataService;// = new TodoDataServiceStub()
// 
// 	public List<String> retrieveTodosRelatedToSpring(String user) {
// 		List<String> todosRelatedToSpring = new ArrayList<String>();
// 
// 		List<String> todos = dataService.retrieveTodos(user);
// 
// 		for (String todo : todos) {
// 			if (todo.contains("Spring")) {
// 				todosRelatedToSpring.add(todo);
// 			}
// 		}
// 		return todosRelatedToSpring;
// 	}
// 
// }


// Path: 6.ExamplesToUnderstandMore/src/test/java/com/in28minutes/spring/example1/TodoBusinessTest.java
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.in28minutes.spring.example1.businessservice.TodoBusinessService;

package com.in28minutes.spring.example1;





@Configuration
@ComponentScan(basePackages = {
		"com.in28minutes.spring.example1.businessservice",
		"com.in28minutes.spring.example1.dataservice.stub" })