tests: added first test to the common/data package (maven plugin added as well)
This commit is contained in:
parent
e264f7b8dd
commit
18800c57c8
@ -119,6 +119,24 @@
|
|||||||
<skip>false</skip>
|
<skip>false</skip>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|||||||
@ -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…
x
Reference in New Issue
Block a user