|
| 1 | +# |
| 2 | +# Copyright (C) 2022 Vaticle |
| 3 | +# |
| 4 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 5 | +# or more contributor license agreements. See the NOTICE file |
| 6 | +# distributed with this work for additional information |
| 7 | +# regarding copyright ownership. The ASF licenses this file |
| 8 | +# to you under the Apache License, Version 2.0 (the |
| 9 | +# "License"); you may not use this file except in compliance |
| 10 | +# with the License. You may obtain a copy of the License at |
| 11 | +# |
| 12 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +# |
| 14 | +# Unless required by applicable law or agreed to in writing, |
| 15 | +# software distributed under the License is distributed on an |
| 16 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 17 | +# KIND, either express or implied. See the License for the |
| 18 | +# specific language governing permissions and limitations |
| 19 | +# under the License. |
| 20 | +# |
| 21 | + |
| 22 | +package(default_visibility = ["//test/behaviour:__subpackages__"]) |
| 23 | + |
| 24 | +load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") |
| 25 | +load("//test/behaviour:rules.bzl", "typedb_behaviour_java_test") |
| 26 | + |
| 27 | +java_library( |
| 28 | + name = "steps", |
| 29 | + srcs = [ |
| 30 | + "JSONSteps.java", |
| 31 | + ], |
| 32 | + visibility = ["//visibility:public"], |
| 33 | + deps = [ |
| 34 | + # Internal Package Dependencies |
| 35 | + "//api:api", |
| 36 | + "//test/behaviour/typeql:steps", |
| 37 | + |
| 38 | + # External Maven Dependencies |
| 39 | + "@maven//:com_eclipsesource_minimal_json_minimal_json", |
| 40 | + "@maven//:io_cucumber_cucumber_java", |
| 41 | + "@maven//:junit_junit", |
| 42 | + ], |
| 43 | +) |
| 44 | + |
| 45 | +typedb_behaviour_java_test( |
| 46 | + name = "test", |
| 47 | + srcs = [ |
| 48 | + "JSONTest.java", |
| 49 | + ], |
| 50 | + test_class = "com.vaticle.typedb.client.test.behaviour.concept.serialization.json.JSONTest", |
| 51 | + data = [ |
| 52 | + "@vaticle_typedb_behaviour//concept/serialization:json.feature", |
| 53 | + ], |
| 54 | + typedb_artifact_mac = "@vaticle_typedb_artifact_mac//file", |
| 55 | + typedb_artifact_linux = "@vaticle_typedb_artifact_linux//file", |
| 56 | + typedb_artifact_windows = "@vaticle_typedb_artifact_windows//file", |
| 57 | + typedb_cluster_artifact_mac = "@vaticle_typedb_cluster_artifact_mac//file", |
| 58 | + typedb_cluster_artifact_linux = "@vaticle_typedb_cluster_artifact_linux//file", |
| 59 | + typedb_cluster_artifact_windows = "@vaticle_typedb_cluster_artifact_windows//file", |
| 60 | + connection_steps_core = "//test/behaviour/connection:steps-core", |
| 61 | + connection_steps_cluster = "//test/behaviour/connection:steps-cluster", |
| 62 | + steps = [ |
| 63 | + ":steps", |
| 64 | + "//test/behaviour/concept/thing/attribute:steps", |
| 65 | + "//test/behaviour/concept/thing/entity:steps", |
| 66 | + "//test/behaviour/concept/thing/relation:steps", |
| 67 | + "//test/behaviour/concept/type/attributetype:steps", |
| 68 | + "//test/behaviour/concept/type/relationtype:steps", |
| 69 | + "//test/behaviour/connection:steps-base", |
| 70 | + "//test/behaviour/connection/database:steps", |
| 71 | + "//test/behaviour/connection/session:steps", |
| 72 | + "//test/behaviour/connection/transaction:steps", |
| 73 | + ], |
| 74 | + deps = [ |
| 75 | + # Internal Package Dependencies |
| 76 | + "//test/behaviour:behaviour", |
| 77 | + # External Maven Dependencies |
| 78 | + "@maven//:io_cucumber_cucumber_junit", |
| 79 | + ], |
| 80 | + runtime_deps = [ |
| 81 | + "//test/behaviour/config:parameters", |
| 82 | + ], |
| 83 | + size = "small", |
| 84 | +) |
| 85 | + |
| 86 | + |
| 87 | +checkstyle_test( |
| 88 | + name = "checkstyle", |
| 89 | + include = glob(["*"]), |
| 90 | + license_type = "apache-header", |
| 91 | +) |
0 commit comments