github.com/stripe/stripe-go/v76@v76.25.0/applicationfee/client_test.go (about) 1 package applicationfee 2 3 import ( 4 "testing" 5 6 assert "github.com/stretchr/testify/require" 7 stripe "github.com/stripe/stripe-go/v76" 8 _ "github.com/stripe/stripe-go/v76/testing" 9 ) 10 11 func TestApplicationFeeGet(t *testing.T) { 12 fee, err := Get("fee_123", nil) 13 assert.Nil(t, err) 14 assert.NotNil(t, fee) 15 } 16 17 func TestApplicationFeeList(t *testing.T) { 18 i := List(&stripe.ApplicationFeeListParams{}) 19 20 // Verify that we can get at least one fee 21 assert.True(t, i.Next()) 22 assert.Nil(t, i.Err()) 23 assert.NotNil(t, i.ApplicationFee()) 24 assert.NotNil(t, i.ApplicationFeeList()) 25 }