/driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestValidator.java
https://github.com/jyemin/mongo-java-driver · Java · 46 lines · 25 code · 6 blank · 15 comment · 0 complexity · 32f57bf83a6881f2fe94b99748fc388b MD5 · raw file
- /*
- * Copyright 2008-present MongoDB, Inc.
- *
- * 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
- *
- * http://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.mongodb.client.unified;
- import com.mongodb.lang.Nullable;
- import org.bson.BsonArray;
- import org.bson.BsonDocument;
- import org.junit.Before;
- import org.junit.runners.Parameterized;
- import java.io.IOException;
- import java.net.URISyntaxException;
- import java.util.Collection;
- public class UnifiedTestValidator extends UnifiedSyncTest {
- public UnifiedTestValidator(@SuppressWarnings("unused") final String fileDescription,
- @SuppressWarnings("unused") final String testDescription,
- final String schemaVersion, @Nullable final BsonArray runOnRequirements, final BsonArray entities,
- final BsonArray initialData, final BsonDocument definition) {
- super(schemaVersion, runOnRequirements, entities, initialData, definition);
- }
- @Before
- public void setUp() {
- super.setUp();
- }
- @Parameterized.Parameters(name = "{0}: {1}")
- public static Collection<Object[]> data() throws URISyntaxException, IOException {
- return getTestData("unified-test-format/valid-pass");
- }
- }