Move DisabledReviewDb to gerrit-server testutil
Change-Id: I7e337271766a442521069b5bcc8d0dac809a5831
This commit is contained in:
parent
ef64e7405a
commit
36db655bcb
@ -23,6 +23,7 @@ import com.google.gerrit.server.config.RequestScopedReviewDbProvider;
|
|||||||
import com.google.gerrit.server.util.RequestContext;
|
import com.google.gerrit.server.util.RequestContext;
|
||||||
import com.google.gerrit.server.util.ThreadLocalRequestContext;
|
import com.google.gerrit.server.util.ThreadLocalRequestContext;
|
||||||
import com.google.gerrit.server.util.ThreadLocalRequestScopePropagator;
|
import com.google.gerrit.server.util.ThreadLocalRequestScopePropagator;
|
||||||
|
import com.google.gerrit.testutil.DisabledReviewDb;
|
||||||
import com.google.gwtorm.server.SchemaFactory;
|
import com.google.gwtorm.server.SchemaFactory;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Key;
|
import com.google.inject.Key;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package com.google.gerrit.acceptance;
|
package com.google.gerrit.testutil;
|
||||||
|
|
||||||
import com.google.gerrit.reviewdb.server.AccountAccess;
|
import com.google.gerrit.reviewdb.server.AccountAccess;
|
||||||
import com.google.gerrit.reviewdb.server.AccountDiffPreferenceAccess;
|
import com.google.gerrit.reviewdb.server.AccountDiffPreferenceAccess;
|
||||||
@ -41,7 +41,7 @@ import com.google.gwtorm.server.Access;
|
|||||||
import com.google.gwtorm.server.StatementExecutor;
|
import com.google.gwtorm.server.StatementExecutor;
|
||||||
|
|
||||||
/** ReviewDb that is disabled for testing. */
|
/** ReviewDb that is disabled for testing. */
|
||||||
class DisabledReviewDb implements ReviewDb {
|
public class DisabledReviewDb implements ReviewDb {
|
||||||
private static final String MESSAGE = "ReviewDb is disabled for this test";
|
private static final String MESSAGE = "ReviewDb is disabled for this test";
|
||||||
|
|
||||||
@Override
|
@Override
|
Loading…
Reference in New Issue
Block a user