// Path: 2.RealWorldExample/business/api/src/main/java/com/in28minutes/example/layering/business/api/TodoBusinessService.java
// public interface TodoBusinessService {
// 	List<Todo> retrieveTodosRelatedToSpring(String user);
// }
// 
// Path: 2.RealWorldExample/model/src/main/java/com/in28minutes/example/layering/model/api/client/Todo.java
// public class Todo {
// 
// 	private String desc;
// 	private Date date;
// 	private boolean isDone;
// 
// 	public Todo(String desc, Date date, boolean isDone) {
// 		super();
// 		this.desc = desc;
// 		this.date = date;
// 		this.isDone = isDone;
// 	}
// 
// 	public String getDesc() {
// 		return desc;
// 	}
// 
// 	public void setDesc(String desc) {
// 		this.desc = desc;
// 	}
// 
// 	public Date getDate() {
// 		return date;
// 	}
// 
// 	public void setDate(Date date) {
// 		this.date = date;
// 	}
// 
// 	public boolean isDone() {
// 		return isDone;
// 	}
// 
// 	public void setDone(boolean isDone) {
// 		this.isDone = isDone;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return String.format("Todo [desc=%s, date=%s, isDone=%s]", desc, date,
// 				isDone);
// 	}
// 
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
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.example.layering.business.api.TodoBusinessService;
import com.in28minutes.example.layering.model.api.client.Todo;
package com.in28minutes.example.layering.business;





//Application Context - java
//Business Impl - com.in28minutes.example.layering.business.impl
//Stub - com.in28minutes.example.layering.data.stub

@Configuration
@ComponentScan(basePackages = {
		"com.in28minutes.example.layering.business.impl",
		"com.in28minutes.example.layering.data.stub" })
// Path: 2.RealWorldExample/business/api/src/main/java/com/in28minutes/example/layering/business/api/TodoBusinessService.java
// public interface TodoBusinessService {
// 	List<Todo> retrieveTodosRelatedToSpring(String user);
// }
// 
// Path: 2.RealWorldExample/model/src/main/java/com/in28minutes/example/layering/model/api/client/Todo.java
// public class Todo {
// 
// 	private String desc;
// 	private Date date;
// 	private boolean isDone;
// 
// 	public Todo(String desc, Date date, boolean isDone) {
// 		super();
// 		this.desc = desc;
// 		this.date = date;
// 		this.isDone = isDone;
// 	}
// 
// 	public String getDesc() {
// 		return desc;
// 	}
// 
// 	public void setDesc(String desc) {
// 		this.desc = desc;
// 	}
// 
// 	public Date getDate() {
// 		return date;
// 	}
// 
// 	public void setDate(Date date) {
// 		this.date = date;
// 	}
// 
// 	public boolean isDone() {
// 		return isDone;
// 	}
// 
// 	public void setDone(boolean isDone) {
// 		this.isDone = isDone;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return String.format("Todo [desc=%s, date=%s, isDone=%s]", desc, date,
// 				isDone);
// 	}
// 
// }


// Path: 2.RealWorldExample/business/impl/src/test/java/com/in28minutes/example/layering/business/TodoBusinessServiceTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
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.example.layering.business.api.TodoBusinessService;
import com.in28minutes.example.layering.model.api.client.Todo;

package com.in28minutes.example.layering.business;





//Application Context - java
//Business Impl - com.in28minutes.example.layering.business.impl
//Stub - com.in28minutes.example.layering.data.stub

@Configuration
@ComponentScan(basePackages = {
		"com.in28minutes.example.layering.business.impl",
		"com.in28minutes.example.layering.data.stub" })
class SpringApplicationContextTest {