This repository was archived by the owner on Feb 24, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-datastore/src
main/java/com/google/cloud/datastore/testing
test/java/com/google/cloud/datastore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ public class LocalDatastoreHelper extends BaseEmulatorHelper<DatastoreOptions> {
5757 private static final String GCLOUD_CMD_TEXT = "gcloud beta emulators datastore start" ;
5858 private static final String GCLOUD_CMD_PORT_FLAG = "--host-port=" ;
5959 private static final String VERSION_PREFIX = "cloud-datastore-emulator " ;
60- private static final String MIN_VERSION = "1. 2.0" ;
60+ private static final String MIN_VERSION = "2.0.2" ; // latest version compatible with java 8
6161
6262 // Downloadable emulator settings
6363 private static final String BIN_NAME = "cloud-datastore-emulator/cloud_datastore_emulator" ;
6464 private static final String FILENAME = "cloud-datastore-emulator-" + MIN_VERSION + ".zip" ;
65- private static final String MD5_CHECKSUM = "ec2237a0f0ac54964c6bd95e12c73720 " ;
65+ private static final String MD5_CHECKSUM = "e0d1170519cf52e2e5f9f93892cdf70c " ;
6666 private static final String BIN_CMD_PORT_FLAG = "--port=" ;
6767 private static final URL EMULATOR_URL ;
6868 private static final String EMULATOR_URL_ENV_VAR = "DATASTORE_EMULATOR_URL" ;
Original file line number Diff line number Diff line change 4040import com .google .cloud .datastore .Query .ResultType ;
4141import com .google .cloud .datastore .StructuredQuery .OrderBy ;
4242import com .google .cloud .datastore .StructuredQuery .PropertyFilter ;
43- import com .google .cloud .datastore .it .MultipleAttemptsRule ;
4443import com .google .cloud .datastore .spi .DatastoreRpcFactory ;
4544import com .google .cloud .datastore .spi .v1 .DatastoreRpc ;
4645import com .google .cloud .datastore .testing .LocalDatastoreHelper ;
8685import org .junit .Assert ;
8786import org .junit .Before ;
8887import org .junit .BeforeClass ;
89- import org .junit .ClassRule ;
9088import org .junit .Test ;
9189import org .junit .runner .RunWith ;
9290import org .junit .runners .JUnit4 ;
9391import org .threeten .bp .Duration ;
9492
9593@ RunWith (JUnit4 .class )
9694public class DatastoreTest {
97- private static final int NUMBER_OF_ATTEMPTS = 5 ;
98-
99- @ ClassRule
100- public static MultipleAttemptsRule rr = new MultipleAttemptsRule (NUMBER_OF_ATTEMPTS , 10 );
101-
10295 private static final LocalDatastoreHelper helper = LocalDatastoreHelper .create (1.0 , 9090 );
10396 private static DatastoreOptions options = helper .getOptions ();
10497 private static Datastore datastore ;
You can’t perform that action at this time.
0 commit comments