This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PageRoutingServlet extends HttpServlet { | |
private Map<String, PageController> pages = Maps.newHashMap(); | |
@Override | |
public void init(ServletConfig config) throws ServletException { | |
super.init(config); | |
pages.put("/page1", new PageController() { | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Adelin Ghanayem [email protected] | |
*/ | |
public class SitebricksReplyAssertion { | |
public static <T> void assertIsRepliedWith(Reply<T> reply, T expected) { | |
assertFieldValue("entity", reply, expected); | |
} | |
public static <T> void assertThatReplyStatusIs(Reply<T> reply, int expected) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.appengine.api.taskqueue.Queue; | |
import com.google.appengine.api.taskqueue.QueueFactory; | |
import com.google.appengine.api.taskqueue.TaskQueuePb; | |
import com.google.appengine.api.taskqueue.dev.LocalTaskQueueCallback; | |
import com.google.appengine.api.urlfetch.URLFetchServicePb; | |
import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig; | |
import com.google.appengine.tools.development.testing.LocalServiceTestHelper; | |
import com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig; | |
import com.google.apphosting.api.ApiProxy; | |
import org.junit.After; |
NewerOlder