Showing
1 changed file
with
0 additions
and
50 deletions
application/src/test/java/org/thingsboard/server/rules/RuleEngineNoSqlTestSuite.java
deleted
100644 → 0
1 | -/** | |
2 | - * Copyright © 2016-2020 The Thingsboard Authors | |
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 org.thingsboard.server.rules; | |
17 | - | |
18 | -import org.cassandraunit.dataset.cql.ClassPathCQLDataSet; | |
19 | -import org.junit.BeforeClass; | |
20 | -import org.junit.ClassRule; | |
21 | -import org.junit.extensions.cpsuite.ClasspathSuite; | |
22 | -import org.junit.runner.RunWith; | |
23 | -import org.thingsboard.server.dao.CustomCassandraCQLUnit; | |
24 | -import org.thingsboard.server.dao.CustomSqlUnit; | |
25 | -import org.thingsboard.server.queue.memory.InMemoryStorage; | |
26 | - | |
27 | -import java.util.Arrays; | |
28 | - | |
29 | -@RunWith(ClasspathSuite.class) | |
30 | -@ClasspathSuite.ClassnameFilters({ | |
31 | - "org.thingsboard.server.rules.flow.nosql.*Test", | |
32 | -// "org.thingsboard.server.rules.lifecycle.nosql.*Test" | |
33 | -}) | |
34 | -public class RuleEngineNoSqlTestSuite { | |
35 | - | |
36 | - @ClassRule | |
37 | - public static CustomCassandraCQLUnit cassandraUnit = | |
38 | - new CustomCassandraCQLUnit( | |
39 | - Arrays.asList( | |
40 | - new ClassPathCQLDataSet("cassandra/schema-ts.cql", false, false), | |
41 | - new ClassPathCQLDataSet("cassandra/schema-entities.cql", false, false), | |
42 | - new ClassPathCQLDataSet("cassandra/system-data.cql", false, false)), | |
43 | - "cassandra-test.yaml", 30000l); | |
44 | - | |
45 | - @BeforeClass | |
46 | - public static void cleanupInMemStorage(){ | |
47 | - InMemoryStorage.getInstance().cleanup(); | |
48 | - } | |
49 | - | |
50 | -} |