package org.thingsboard.gateway;

import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

public class SigfoxTest {

    public static void main(String[] args) throws IOException {

        HttpHeaders headers = new HttpHeaders();
        headers.add("Authorization", "SECURITY_TOKEN");
        headers.setContentType(MediaType.APPLICATION_JSON);

        String postJson = new String(Files.readAllBytes(Paths.get("src/test/resources/post.json")));

        new RestTemplate().exchange("http://localhost:9090/sigfox/YOUR_DEVICE_TYPE_ID/", HttpMethod.POST, new HttpEntity<>(postJson, headers), String.class);
    }
}

@@ -364,24 +364,261 @@
 gfoxTest %7B%0A%0A
+    private static final String DEVICE_TYPE_ID = %22DEVICE_TYPE_ID%22;%0A    private static final String SECURITY_TOKEN = %22SECURITY_TOKEN%22;%0A    private static final String GATEWAY_URL = %22http://localhost:9090/sigfox/%22 + DEVICE_TYPE_ID + %22/%22;%0A%0A
     public s
@@ -756,17 +756,16 @@
 ation%22, 
-%22
 SECURITY
@@ -770,17 +770,16 @@
 TY_TOKEN
-%22
 );%0A     
@@ -976,59 +976,19 @@
 nge(
-%22http://localhost:9090/sigfox/YOUR_DEVICE_TYPE_ID/%22
+GATEWAY_URL
 , Ht

test fix