// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.graphgeckos.dashboard.storage;

import static org.junit.Assert.assertEquals;

import com.google.appengine.api.datastore.Query;
import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class DatastoreRepositoryTests {
  private final LocalServiceTestHelper helper =
      new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());

  @Before
  public void setUp() {
    helper.setUp();
  }

  @After
  public void tearDown() {
    helper.tearDown();
  }

  @Test
  private test1() {
    DatastoreRepository storage = new DatastoreRepository();
    // do stuff
  }
}

@@ -683,57 +683,8 @@
 s;%0A%0A
-import com.google.appengine.api.datastore.Query;%0A
 impo
@@ -840,24 +840,124 @@
 TestHelper;%0A
+import com.google.cloud.Timestamp;%0Aimport java.util.Calendar;%0Aimport java.util.concurrent.TimeUnit;%0A
 import org.j
@@ -1179,16 +1179,159 @@
 ig());%0A%0A
+  private BuildInfo getDummyEntity(String commitHash) %7B%0A    return new BuildInfo(new ParsedGitData(commitHash, Timestamp.now(), %22test%22));%0A  %7D%0A%0A
   @Befor
@@ -1460,101 +1460,28 @@
 %0A  p
-rivate
+ublic void
  test
-1
 () %7B%0A
-    DatastoreRepository storage = new DatastoreRepository();%0A    // do stuff
 %0A  %7D

rebase tests from cleanupProcedures