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
<artifactId>maven-clean-plugin</artifactId> | |
<version>2.4.1</version> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>../YOUR_DEPLOYMENT_DIRECTORY</directory> | |
<includes> | |
<directory>gwt-unitCache/**</directory> | |
</includes> | |
<followSymlinks>false</followSymlinks> |
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
<add-linker name="xs" /> | |
or | |
<add-linker name="xsi" /> |
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 testexamples; | |
import static org.fest.assertions.Assertions.assertThat; | |
import static play.test.Helpers.HTMLUNIT; | |
import static play.test.Helpers.running; | |
import static play.test.Helpers.testServer; | |
import org.junit.Test; | |
import play.libs.F.Callback; |
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
[info] [SUCCESSFUL ] org.scalatest#scalatest_2.9.1;1.6.1!scalatest_2.9.1.jar (250ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/org/codehaus/jackson/jackson-core-asl/1.9.5/jackson-core-asl-1.9.5.jar ... | |
[info] [SUCCESSFUL ] org.codehaus.jackson#jackson-core-asl;1.9.5!jackson-core-asl.jar (44ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar ... | |
[info] [SUCCESSFUL ] com.thoughtworks.paranamer#paranamer;2.3!paranamer.jar (37ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/com/google/guava/guava/r09/guava-r09.jar ... | |
[info] [SUCCESSFUL ] com.google.guava#guava;r09!guava.jar (120ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/play/play-test_2.9.1/2.0/play-test_2.9.1-2.0.jar ... | |
[info] [SUCCESSFUL ] play#play-test_2.9.1;2.0!play-test_2.9.1.jar (62ms) | |
[info] Done updating. |
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
[info] [SUCCESSFUL ] org.scalatest#scalatest_2.9.1;1.6.1!scalatest_2.9.1.jar (250ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/org/codehaus/jackson/jackson-core-asl/1.9.5/jackson-core-asl-1.9.5.jar ... | |
[info] [SUCCESSFUL ] org.codehaus.jackson#jackson-core-asl;1.9.5!jackson-core-asl.jar (44ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar ... | |
[info] [SUCCESSFUL ] com.thoughtworks.paranamer#paranamer;2.3!paranamer.jar (37ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/com/google/guava/guava/r09/guava-r09.jar ... | |
[info] [SUCCESSFUL ] com.google.guava#guava;r09!guava.jar (120ms) | |
[info] downloading http://repo.typesafe.com/typesafe/releases/play/play-test_2.9.1/2.0/play-test_2.9.1-2.0.jar ... | |
[info] [SUCCESSFUL ] play#play-test_2.9.1;2.0!play-test_2.9.1.jar (62ms) | |
[info] Done updating. |
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 com.bricktop.app.client.common.places; | |
import com.google.gwt.http.client.URL; | |
import com.google.inject.Inject; | |
import com.gwtplatform.mvp.client.proxy.ParameterTokenFormatter; | |
import com.gwtplatform.mvp.client.proxy.PlaceRequest; | |
import com.gwtplatform.mvp.client.proxy.TokenFormatException; | |
import com.gwtplatform.mvp.client.proxy.TokenFormatter; | |
import java.util.ArrayList; |
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 restRedirectToIndex() { | |
Result result = applicationController.redirectToIndex(context); | |
//assert that status is temporary redirect: | |
assertEquals(Result.SC_307_TEMPORARY_REDIRECT, result.getStatusCode()); | |
//assert that Location header was set correctly | |
Map<String, String> headers = result.getHeaders(); |
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 com.google.api.client.googleapis.auth.oauth2.GoogleCredential; | |
import com.google.api.client.http.HttpTransport; | |
import com.google.api.client.http.javanet.NetHttpTransport; | |
import com.google.api.client.json.JsonFactory; | |
import com.google.api.client.json.jackson2.JacksonFactory; | |
import com.google.api.services.drive.DriveScopes; | |
import com.google.code.samples.oauth2.OAuth2Authenticator; | |
import com.sun.mail.imap.IMAPStore; | |
import java.io.File; |
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 conf; | |
import java.io.OutputStream; | |
import ninja.Context; | |
import ninja.Renderable; | |
import ninja.Result; | |
import ninja.utils.ResponseStreams; | |
public class ResultJsonCustom { |
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
public class DatabaseAccess implements Filter { | |
@Inject | |
private UnitOfWork unitOfWork; | |
@Override | |
public Result filter(FilterChain filterChain, Context context) { | |
Result result; | |
OlderNewer