|
|
|
@ -20,6 +20,7 @@ import org.junit.Before; |
|
|
|
import org.junit.runner.RunWith; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan; |
|
|
|
import org.springframework.boot.test.mock.mockito.MockBean; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.test.context.TestExecutionListeners; |
|
|
|
@ -58,6 +59,7 @@ import org.thingsboard.server.common.data.query.KeyFilter; |
|
|
|
import org.thingsboard.server.common.data.query.StringFilterPredicate; |
|
|
|
import org.thingsboard.server.common.data.relation.EntityRelation; |
|
|
|
import org.thingsboard.server.common.data.relation.RelationTypeGroup; |
|
|
|
import org.thingsboard.server.common.stats.DummyEdqsStatsService; |
|
|
|
import org.thingsboard.server.edqs.util.EdqsConverter; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
@ -78,6 +80,8 @@ public abstract class AbstractEDQTest { |
|
|
|
protected DefaultEdqsRepository repository; |
|
|
|
@Autowired |
|
|
|
protected EdqsConverter edqsConverter; |
|
|
|
@MockBean |
|
|
|
private DummyEdqsStatsService edqsStatsService; |
|
|
|
|
|
|
|
protected final TenantId tenantId = TenantId.fromUUID(UUID.randomUUID()); |
|
|
|
protected final CustomerId customerId = new CustomerId(UUID.randomUUID()); |
|
|
|
|