47 changed files with 131 additions and 90 deletions
@ -0,0 +1,23 @@ |
|||||
|
package org.thingsboard.server.system; |
||||
|
|
||||
|
import org.junit.ClassRule; |
||||
|
import org.junit.extensions.cpsuite.ClasspathSuite; |
||||
|
import org.junit.runner.RunWith; |
||||
|
import org.thingsboard.server.dao.CustomPostgresUnit; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
|
||||
|
/** |
||||
|
* Created by Valerii Sosliuk on 6/27/2017. |
||||
|
*/ |
||||
|
@RunWith(ClasspathSuite.class) |
||||
|
@ClasspathSuite.ClassnameFilters({"org.thingsboard.server.system.sql.*SqlTest"}) |
||||
|
public class SystemSqlTestSuite { |
||||
|
|
||||
|
@ClassRule |
||||
|
public static CustomPostgresUnit postgresUnit = new CustomPostgresUnit( |
||||
|
Arrays.asList("postgres/schema.sql", "postgres/system-data.sql"), |
||||
|
"postgres-embedded-test.properties"); |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,12 @@ |
|||||
|
package org.thingsboard.server.system.nosql; |
||||
|
|
||||
|
import org.thingsboard.server.dao.service.DaoNoSqlTest; |
||||
|
import org.thingsboard.server.dao.util.NoSqlDao; |
||||
|
import org.thingsboard.server.system.BaseHttpDeviceApiTest; |
||||
|
|
||||
|
/** |
||||
|
* Created by Valerii Sosliuk on 6/27/2017. |
||||
|
*/ |
||||
|
@DaoNoSqlTest |
||||
|
public class DeviceApiNoSqlTest extends BaseHttpDeviceApiTest { |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
package org.thingsboard.server.system.sql; |
||||
|
|
||||
|
import org.thingsboard.server.dao.service.DaoSqlTest; |
||||
|
import org.thingsboard.server.system.BaseHttpDeviceApiTest; |
||||
|
|
||||
|
/** |
||||
|
* Created by Valerii Sosliuk on 6/27/2017. |
||||
|
*/ |
||||
|
@DaoSqlTest |
||||
|
public class DeviceApiSqlTest extends BaseHttpDeviceApiTest{ |
||||
|
} |
||||
Loading…
Reference in new issue