Skip to content

Commit a0f1c50

Browse files
chore: generate libraries at Mon Jan 6 17:28:37 UTC 2025
1 parent b826220 commit a0f1c50

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing/LocalDatastoreHelper.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class LocalDatastoreHelper extends BaseEmulatorHelper<DatastoreOptions> {
7676
private static final double DEFAULT_CONSISTENCY = 0.9;
7777
private static final String DEFAULT_PROJECT_ID = PROJECT_ID_PREFIX + UUID.randomUUID();
7878
private static final String FIRESTORE_IN_DATASTORE_MODE_FLAG =
79-
"--use-firestore-in-datastore-mode";
79+
"--use-firestore-in-datastore-mode";
8080

8181
private static final Logger LOGGER = Logger.getLogger(LocalDatastoreHelper.class.getName());
8282

@@ -141,6 +141,7 @@ public Builder setStoreOnDisk(boolean storeOnDisk) {
141141
this.storeOnDisk = storeOnDisk;
142142
return this;
143143
}
144+
144145
public Builder setFirestoreInDatastoreMode(boolean firestoreInDatastoreMode) {
145146
this.firestoreInDatastoreMode = firestoreInDatastoreMode;
146147
return this;
@@ -187,7 +188,7 @@ private LocalDatastoreHelper(Builder builder) {
187188
List<String> binCommand = new ArrayList<>(Arrays.asList(binName, "start"));
188189
binCommand.add("--testing");
189190
if (builder.firestoreInDatastoreMode) {
190-
binCommand.add(FIRESTORE_IN_DATASTORE_MODE_FLAG);
191+
binCommand.add(FIRESTORE_IN_DATASTORE_MODE_FLAG);
191192
} else {
192193
// At most one of --consistency | --use-firestore-in-datastore-mode can be specified.
193194
// --consistency will be ignored with --use-firestore-in-datastore-mode.
@@ -257,7 +258,9 @@ public boolean isStoreOnDisk() {
257258
return storeOnDisk;
258259
}
259260

260-
/** Returns {@code true} use firestore-in-datastore-mode, otherwise {@code false} use native mode. */
261+
/**
262+
* Returns {@code true} use firestore-in-datastore-mode, otherwise {@code false} use native mode.
263+
*/
261264
public boolean isFirestoreInDatastoreMode() {
262265
return firestoreInDatastoreMode;
263266
}

google-cloud-datastore/src/test/java/com/google/cloud/datastore/testing/ITLocalDatastoreHelperTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@ public void testStartStopResetWithBuilder()
211211
assertNotNull(ex.getMessage());
212212
}
213213
}
214-
@Test
214+
215+
@Test
215216
public void testCreateWithFirestoreInDatastoreMode()
216-
throws IOException, InterruptedException, TimeoutException {
217-
LocalDatastoreHelper helper = LocalDatastoreHelper.newBuilder().setFirestoreInDatastoreMode(true).build();
217+
throws IOException, InterruptedException, TimeoutException {
218+
LocalDatastoreHelper helper =
219+
LocalDatastoreHelper.newBuilder().setFirestoreInDatastoreMode(true).build();
218220
assertTrue(helper.isFirestoreInDatastoreMode());
219221
helper.start();
220222
Datastore datastore = helper.getOptions().getService();

0 commit comments

Comments
 (0)