This file contains 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
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0//EN" | |
"http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-source/core/src/gwt-module.dtd"> | |
<module rename-to="App"> | |
<!-- Inherit the core Web Toolkit stuff. --> | |
<inherits name='com.google.gwt.user.User'/> | |
<inherits name="com.google.gwt.place.Place"/> | |
<inherits name="com.google.gwt.activity.Activity"/> | |
<inherits name="com.google.gwt.logging.Logging"/> | |
<inherits name="com.google.gwt.http.HTTP" /> |
This file contains 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
package app; | |
import com.google.inject.Guice; | |
import com.google.inject.Injector; | |
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
final Injector injector = Guice.createInjector(new MyAppModule()); |
This file contains 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
@Test | |
public void testHelloWorldServiceWithSpecialMessage_returnsTheAnswerToLife() | |
throws Exception | |
{ | |
expect().body(containsString("the answer to life the universe and everything")).when().get("/hello/42"); | |
} |
This file contains 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 java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.LinkedList; | |
import java.util.Scanner; | |
import java.util.Stack; | |
final class Cell { | |
final int col; | |
final int row; |