/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

  1. /*
  2. * Copyright 2008-present MongoDB, Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.mongodb.client.unified;
  17. import com.mongodb.lang.Nullable;
  18. import org.bson.BsonArray;
  19. import org.bson.BsonDocument;
  20. import org.junit.Before;
  21. import org.junit.runners.Parameterized;
  22. import java.io.IOException;
  23. import java.net.URISyntaxException;
  24. import java.util.Collection;
  25. public class UnifiedTestValidator extends UnifiedSyncTest {
  26. public UnifiedTestValidator(@SuppressWarnings("unused") final String fileDescription,
  27. @SuppressWarnings("unused") final String testDescription,
  28. final String schemaVersion, @Nullable final BsonArray runOnRequirements, final BsonArray entities,
  29. final BsonArray initialData, final BsonDocument definition) {
  30. super(schemaVersion, runOnRequirements, entities, initialData, definition);
  31. }
  32. @Before
  33. public void setUp() {
  34. super.setUp();
  35. }
  36. @Parameterized.Parameters(name = "{0}: {1}")
  37. public static Collection<Object[]> data() throws URISyntaxException, IOException {
  38. return getTestData("unified-test-format/valid-pass");
  39. }
  40. }