target service test
This commit is contained in:
snoop 2017-06-05 15:37:35 +09:00
parent bd705e9616
commit 82d717c79a

View File

@ -3,7 +3,7 @@ package target
import (
"testing"
//"git.loafle.net/overflow/overflow_proxy_service/proxy/member"
"encoding/json"
"git.loafle.net/overflow/overflow_proxy_service/proxy/member"
)
@ -29,24 +29,15 @@ func TestCreateTarget(t *testing.T) {
}
func TestMashal(t *testing.T){
func TestFindAll(t *testing.T) {
tt := Target{
Ip:3232235882,
Port:5432,
TargetType:"DATABASE",
Kinds:"PostgreSQL",
Version:"9.5.0",
VendorName:"PostgreSQL 9.5.0",
Member:&member.MemberService{Id:"1"},
}
ts := NewTargetService()
bytes, _ := json.Marshal(tt)
t.Log(string(bytes))
str := ts.List(&tt)
t.Log(str)
}