// Path: src/main/java/org/openbakery/timetracker/web/TimeTrackerSession.java
// public class TimeTrackerSession extends WebSession {
// 
// 	private static Logger log = LoggerFactory.getLogger(TimeTrackerSession.class);
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	private User user;
// 	private DateTime currentDate;
//     private Project lastStoredProject;
// 
// 	public TimeTrackerSession(Request request) {
// 		super(request);
// 		user = new User();
// 	}
// 
// 	public User getUser() {
// 		return user;
// 	}
// 
// 	public void setUser(User user) {
// 		this.user = user;
// 	}
// 
// 
// 	public List<MenuItem> getMenuItems() {
// 
// 		return ((TimeTrackerWebApplication) getApplication()).getMenuItems();
// 	}
// 
// 	public DateTime getCurrentDate() {
// 		if (currentDate == null) {
// 			currentDate = DateHelper.trimDateTime(new DateTime());
// 		}
// 		return currentDate;
// 	}
// 
// 
// 	public void setCurrentDate(DateTime currentDate) {
// 		this.currentDate = DateHelper.trimDateTime(currentDate);
// 	}
// 
//     public Project getLastStoredProject() {
//         return lastStoredProject;
//     }
// 
//     public void setLastStoredProject(Project lastStoredProject) {
//         this.lastStoredProject = lastStoredProject;
//     }
// 
// }


import org.apache.wicket.Session;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.request.Request;
import org.apache.wicket.request.Response;
import org.openbakery.timetracker.web.TimeTrackerSession;
package org.openbakery.timetracker;


public class TestWebApplication extends WebApplication {

	private Class<? extends WebPage> webpage;

	public TestWebApplication(Class<? extends WebPage> webpage) {
		this.webpage = webpage;
	}

	@Override
	public Class<? extends WebPage> getHomePage() {
		return webpage;
	}

	@Override
	public Session newSession(Request request, Response response) {
// Path: src/main/java/org/openbakery/timetracker/web/TimeTrackerSession.java
// public class TimeTrackerSession extends WebSession {
// 
// 	private static Logger log = LoggerFactory.getLogger(TimeTrackerSession.class);
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	private User user;
// 	private DateTime currentDate;
//     private Project lastStoredProject;
// 
// 	public TimeTrackerSession(Request request) {
// 		super(request);
// 		user = new User();
// 	}
// 
// 	public User getUser() {
// 		return user;
// 	}
// 
// 	public void setUser(User user) {
// 		this.user = user;
// 	}
// 
// 
// 	public List<MenuItem> getMenuItems() {
// 
// 		return ((TimeTrackerWebApplication) getApplication()).getMenuItems();
// 	}
// 
// 	public DateTime getCurrentDate() {
// 		if (currentDate == null) {
// 			currentDate = DateHelper.trimDateTime(new DateTime());
// 		}
// 		return currentDate;
// 	}
// 
// 
// 	public void setCurrentDate(DateTime currentDate) {
// 		this.currentDate = DateHelper.trimDateTime(currentDate);
// 	}
// 
//     public Project getLastStoredProject() {
//         return lastStoredProject;
//     }
// 
//     public void setLastStoredProject(Project lastStoredProject) {
//         this.lastStoredProject = lastStoredProject;
//     }
// 
// }


// Path: src/main/test/org/openbakery/timetracker/TestWebApplication.java
import org.apache.wicket.Session;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.request.Request;
import org.apache.wicket.request.Response;
import org.openbakery.timetracker.web.TimeTrackerSession;

package org.openbakery.timetracker;


public class TestWebApplication extends WebApplication {

	private Class<? extends WebPage> webpage;

	public TestWebApplication(Class<? extends WebPage> webpage) {
		this.webpage = webpage;
	}

	@Override
	public Class<? extends WebPage> getHomePage() {
		return webpage;
	}

	@Override
	public Session newSession(Request request, Response response) {
		return new TimeTrackerSession(request);