GeezerVison is showing github.com — Fix bad formatting (#823) · ruixu/java-docs-samples@d587b36
File treeExpand file treeCollapse file tree Open diff view settings analytics/src/main/java/com/example/appengine/analytics main/java/com/example/bigtable test/java/com/example/bigtable
datastore/src/test/java/com/example/appengine gaeinfo/src/main/java/com/example/appengine/standard guestbook-objectify/src/main/java/com/example/guestbook mailgun/src/main/java/com/example/appengine/mailgun mailjet/src/main/java/com/example/appengine/mailjet multitenancy/src/main/java/com/example/appengine oauth2/src/main/java/com/example/appengine remote-client/src/main/java/com/example/appengine/remote main/java/com/example/appengine/search test/java/com/example/appengine/search
taskqueues-deferred/src/main/java/com/google/cloud/taskqueue/samples taskqueues-pull/src/main/java/com/example/taskqueue taskqueues-push/src/main/java/com/example/appengine/taskqueue/push twilio/src/main/java/com/example/appengine/twilio
flexible/analytics/src/main/java/com/example/analytics
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .editorconfig -19Lines changed: 0 additions & 19 deletions Collapse file Copy file name to clipboardExpand all lines: appengine-java8/analytics/src/main/java/com/example/appengine/analytics/AnalyticsServlet.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | | 1 | +/* | 2 | 2 | * Copyright 2015 Google Inc. | 3 | 3 | * | 4 | 4 | * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/bigtable/src/main/java/com/example/bigtable/BigtableHelper.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | | 1 | +/* | 2 | 2 | * Copyright 2015 Google Inc. | 3 | 3 | * | 4 | 4 | * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/bigtable/src/test/java/com/example/bigtable/ITBigtableHelloWorld.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | | 1 | +/* | 2 | 2 | * Copyright 2016 Google Inc. | 3 | 3 | * | 4 | 4 | * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/datastore/src/test/java/com/example/appengine/EntitiesTest.java +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 46 | 46 | @RunWith(JUnit4.class) | 47 | 47 | public class EntitiesTest { | 48 | 48 |
| | 49 | + // Set no eventual consistency, that way queries return all results. | | 50 | + // https://cloud.google.com/appengine/docs/java/tools/localunittesting | | 51 | + // #Java_Writing_High_Replication_Datastore_tests | 49 | 52 | private final LocalServiceTestHelper helper = | 50 | 53 | new LocalServiceTestHelper( | 51 | | - // Set no eventual consistency, that way queries return all results. | 52 | | - // https://cloud.google | 53 | | - // .com/appengine/docs/java/tools/localunittesting | 54 | | - // #Java_Writing_High_Replication_Datastore_tests | 55 | 54 | new LocalDatastoreServiceTestConfig() | 56 | 55 | .setDefaultHighRepJobPolicyUnappliedJobPercentage(0)); | 57 | 56 |
| |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/datastore/src/test/java/com/example/appengine/GuestbookStrongTest.java +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -39,12 +39,11 @@ public class GuestbookStrongTest { | 39 | 39 | private static final Instant FAKE_NOW = new Instant(1234567890L); | 40 | 40 | private static final String GUESTBOOK_ID = "my guestbook"; | 41 | 41 |
| | 42 | + // Set maximum eventual consistency. | | 43 | + // https://cloud.google.com/appengine/docs/java/tools/localunittesting | | 44 | + // #Java_Writing_High_Replication_Datastore_tests | 42 | 45 | private final LocalServiceTestHelper helper = | 43 | 46 | new LocalServiceTestHelper( | 44 | | - // Set maximum eventual consistency. | 45 | | - // https://cloud.google | 46 | | - // .com/appengine/docs/java/tools/localunittesting | 47 | | - // #Java_Writing_High_Replication_Datastore_tests | 48 | 47 | new LocalDatastoreServiceTestConfig() | 49 | 48 | .setDefaultHighRepJobPolicyUnappliedJobPercentage(100), | 50 | 49 | // Make sure there is a user logged in. We enforce this in web.xml. | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/datastore/src/test/java/com/example/appengine/GuestbookTest.java +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,12 +55,11 @@ public boolean shouldRollForwardExistingJob(Key entityGroup) { | 55 | 55 | } | 56 | 56 | } | 57 | 57 |
| | 58 | + // Set custom, deterministic, eventual consistency. | | 59 | + // https://cloud.google.com/appengine/docs/java/tools/localunittesting | | 60 | + // #Java_Writing_High_Replication_Datastore_tests | 58 | 61 | private final LocalServiceTestHelper helper = | 59 | 62 | new LocalServiceTestHelper( | 60 | | - // Set custom, deterministic, eventual consistency. | 61 | | - // https://cloud.google | 62 | | - // .com/appengine/docs/java/tools/localunittesting | 63 | | - // #Java_Writing_High_Replication_Datastore_tests | 64 | 63 | new LocalDatastoreServiceTestConfig() | 65 | 64 | .setAlternateHighRepJobPolicyClass(CustomHighRepJobPolicy.class), | 66 | 65 | // Make sure there is a user logged in. We enforce this in web.xml. | |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/datastore/src/test/java/com/example/appengine/IndexesTest.java +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 43 | 43 | @RunWith(JUnit4.class) | 44 | 44 | public class IndexesTest { | 45 | 45 |
| | 46 | + // Set no eventual consistency, that way queries return all results. | | 47 | + // https://cloud.google.com/appengine/docs/java/tools/localunittesting | | 48 | + // #Java_Writing_High_Replication_Datastore_tests | 46 | 49 | private final LocalServiceTestHelper helper = | 47 | 50 | new LocalServiceTestHelper( | 48 | | - // Set no eventual consistency, that way queries return all results. | 49 | | - // https://cloud.google | 50 | | - // .com/appengine/docs/java/tools/localunittesting | 51 | | - // #Java_Writing_High_Replication_Datastore_tests | 52 | 51 | new LocalDatastoreServiceTestConfig() | 53 | 52 | .setDefaultHighRepJobPolicyUnappliedJobPercentage(0)); | 54 | 53 |
| |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/datastore/src/test/java/com/example/appengine/ListPeopleServletTest.java +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -74,12 +74,11 @@ public class ListPeopleServletTest { | 74 | 74 | .add("Tango") | 75 | 75 | .build(); | 76 | 76 |
| | 77 | + // Set no eventual consistency, that way queries return all results. | | 78 | + // https://cloud.google.com/appengine/docs/java/tools/localunittesting | | 79 | + // #Java_Writing_High_Replication_Datastore_tests | 77 | 80 | private final LocalServiceTestHelper helper = | 78 | 81 | new LocalServiceTestHelper( | 79 | | - // Set no eventual consistency, that way queries return all results. | 80 | | - // https://cloud.google | 81 | | - // .com/appengine/docs/java/tools/localunittesting | 82 | | - // #Java_Writing_High_Replication_Datastore_tests | 83 | 82 | new LocalDatastoreServiceTestConfig() | 84 | 83 | .setDefaultHighRepJobPolicyUnappliedJobPercentage(0)); | 85 | 84 |
| |
Collapse file Copy file name to clipboardExpand all lines: appengine-java8/datastore/src/test/java/com/example/appengine/MetadataEntityGroupTest.java +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 48 | 48 | @RunWith(JUnit4.class) | 49 | 49 | public class MetadataEntityGroupTest { | 50 | 50 |
| | 51 | + // Set no eventual consistency, that way queries return all results. | | 52 | + // https://cloud.google.com/appengine/docs/java/tools/localunittesting | | 53 | + // #Java_Writing_High_Replication_Datastore_tests | 51 | 54 | private final LocalServiceTestHelper helper = | 52 | 55 | new LocalServiceTestHelper( | 53 | | - // Set no eventual consistency, that way queries return all results. | 54 | | - // https://cloud.google | 55 | | - // .com/appengine/docs/java/tools/localunittesting | 56 | | - // #Java_Writing_High_Replication_Datastore_tests | 57 | 56 | new LocalDatastoreServiceTestConfig().setDefaultHighRepJobPolicyUnappliedJobPercentage(0), | 58 | 57 | new LocalMemcacheServiceTestConfig()); | 59 | 58 |
| |
|