ThingsboardApplicationTests.java
Home
/
application /
src /
test /
java /
org /
thingsboard /
server /
ThingsboardApplicationTests.java
package org.thingsboard.server;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.boot.test.IntegrationTest;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = ThingsboardServerApplication.class)
@WebAppConfiguration
@IntegrationTest("server.port:0")
public class ThingsboardApplicationTests {
@Test
public void contextLoads() {
String test = "[ \n" +
" {\n" +
" \"key\": \"name\",\n" +
"\t\"type\": \"text\" \n" +
" },\n" +
" {\n" +
"\t\"key\": \"name2\",\n" +
"\t\"type\": \"color\"\n" +
" },\n" +
" {\n" +
"\t\"key\": \"name3\",\n" +
"\t\"type\": \"javascript\"\n" +
" } \n" +
"]";
}
}