| 12345678910111213141516171819202122232425262728293031 |
- package handler
- import (
- "fmt"
- "lims_adapter/common"
- "testing"
- )
- var (
- url = "http://192.168.0.102:9981/dashoo.lims.adapter-0.1-jlw"
- tenant = "EmGVD5szuT"
- username = "dashoo"
- password = "Yzr0t0P4VH5HfjmIVuMQ0CRpu/zkFbJWEN7uO7qIAarMuEDSLVkcHOUEAp+HGXf+ZwxpVJM1zqzlW9br1NJDgw=="
- )
- func TestNullable(t *testing.T) {
- token := common.Token(tenant, username, password)
- resp, err := common.TestRpcxHandler(tenant, token, url, "Test", "Nullable",
- `
- {
- "Str": "",
- "Int": 0,
- "Bool": false,
- "Slice": []
- }
- `,
- )
- common.PrintIndentJson(resp)
- fmt.Println(err)
- }
|