github.com/prebid/prebid-server/v2@v2.18.0/adapters/cwire/cwire_test.go (about) 1 package cwire 2 3 import ( 4 "testing" 5 6 "github.com/prebid/prebid-server/v2/adapters/adapterstest" 7 "github.com/prebid/prebid-server/v2/config" 8 "github.com/prebid/prebid-server/v2/openrtb_ext" 9 ) 10 11 func TestJsonSamples(t *testing.T) { 12 bidder, buildErr := Builder( 13 openrtb_ext.BidderCWire, 14 config.Adapter{ 15 Endpoint: "https://cwi.re/prebid/adapter-endpoint", 16 }, 17 config.Server{ 18 ExternalUrl: "http://hosturl.com", 19 GvlID: 1, 20 DataCenter: "2", 21 }, 22 ) 23 24 if buildErr != nil { 25 t.Fatalf("Builder returned unexpected error %v", buildErr) 26 } 27 28 adapterstest.RunJSONBidderTest(t, "cwiretest", bidder) 29 }