GeezerVison is showing github.com — Update javaspark so it works. · soaggarwal/java-docs-samples@36518b6
File tree
Expand file treeCollapse file tree
Open diff view settings
test/java/com/google/appengine/sparkdemo
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: flexible/sparkjava/pom.xml +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
19 | 19 | <maven.compiler.source>1.8</maven.compiler.source> |
20 | 20 |
|
21 | 21 | <appengine.maven.plugin>1.0.0</appengine.maven.plugin> |
| 22 | + <app.stage.artifact>${project.build.directory}/spark-1.0-jar-with-dependencies.jar</app.stage.artifact> |
22 | 23 | </properties> |
23 | 24 |
|
24 | 25 | <dependencies> |
|
44 | 45 | </dependency> |
45 | 46 | <dependency> |
46 | 47 | <groupId>com.google.cloud</groupId> |
47 | | - <artifactId>google-cloud</artifactId> |
48 | | - <version>0.4.0</version> |
| 48 | + <artifactId>google-cloud-datastore</artifactId> |
| 49 | + <version>0.8.1-beta</version> |
49 | 50 | </dependency> |
50 | 51 | </dependencies> |
51 | 52 | <build> |
|
83 | 84 | <mainClass>com.google.appengine.sparkdemo.Main</mainClass> |
84 | 85 | <arguments> |
85 | 86 | <argument>-jar</argument> |
86 | | - <argument>target/spark-1.0-jar-with-dependencies.jar</argument> |
| 87 | + <argument>${app.stage.stagingDirectory}/spark-1.0-jar-with-dependencies.jar</argument> |
87 | 88 | </arguments> |
88 | 89 | </configuration> |
89 | 90 | </plugin> |
|
Collapse file
Copy file name to clipboard File renamed without changes.
Collapse file
Copy file name to clipboardExpand all lines: flexible/sparkjava/src/test/java/com/google/appengine/sparkdemo/UserServiceTest.java +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
31 | 31 | import com.google.cloud.datastore.testing.LocalDatastoreHelper; |
32 | 32 | import com.google.common.collect.Iterators; |
33 | 33 |
|
| 34 | +import org.joda.time.Duration; |
34 | 35 | import org.junit.AfterClass; |
35 | 36 | import org.junit.Before; |
36 | 37 | import org.junit.BeforeClass; |
37 | 38 | import org.junit.Test; |
38 | 39 |
|
39 | 40 | import java.io.IOException; |
40 | 41 | import java.util.List; |
| 42 | +import java.util.concurrent.TimeoutException; |
41 | 43 |
|
42 | 44 | public class UserServiceTest { |
43 | 45 |
|
@@ -72,8 +74,8 @@ public void setUp() { |
72 | 74 | } |
73 | 75 |
|
74 | 76 | @AfterClass |
75 | | - public static void afterClass() throws IOException, InterruptedException { |
76 | | - HELPER.stop(); |
| 77 | + public static void afterClass() throws IOException, InterruptedException, TimeoutException { |
| 78 | + HELPER.stop(Duration.standardMinutes(1)); |
77 | 79 | } |
78 | 80 |
|
79 | 81 | @Test |
|
Collapse file
Copy file name to clipboardExpand all lines: pom.xml -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
98 | 98 | <module>flexible/mailjet</module> |
99 | 99 | <module>flexible/memcache</module> |
100 | 100 | <module>flexible/sendgrid</module> |
101 | | -<!-- |
102 | 101 | <module>flexible/sparkjava</module> |
103 | | - --> |
104 | 102 | <module>flexible/static-files</module> |
105 | 103 | <module>flexible/twilio</module> |
106 | 104 | <module>language/analysis</module> |
|