Browse Source

tests: added first test to the common/data package (maven plugin added as well)

pull/5364/head
Sergey Matvienko 5 years ago
parent
commit
18800c57c8
  1. 18
      common/data/pom.xml
  2. 13
      common/data/src/test/java/org/thingsboard/server/common/data/id/EntityIdTest.java

18
common/data/pom.xml

@ -119,6 +119,24 @@
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surfire.version}</version>
<configuration>
<systemPropertyVariables>
<spring.config.name>thingsboard</spring.config.name>
</systemPropertyVariables>
<excludes>
<exclude>**/sql/*Test.java</exclude>
<exclude>**/nosql/*Test.java</exclude>
</excludes>
<includes>
<include>**/*Test.java</include>
<include>**/*TestSuite.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>

13
common/data/src/test/java/org/thingsboard/server/common/data/id/EntityIdTest.java

@ -0,0 +1,13 @@
package org.thingsboard.server.common.data.id;
import org.junit.Assert;
import org.junit.Test;
public class EntityIdTest {
@Test
public void givenConstantNullUuid_whenCompare_thenToStringEqualsPredefinedUuid() {
Assert.assertEquals("13814000-1dd2-11b2-8080-808080808080", EntityId.NULL_UUID.toString());
}
}
Loading…
Cancel
Save