(t *testing.T, s Server)
| 137 | } |
| 138 | |
| 139 | func TestApplicationGet(t *testing.T, s Server) { |
| 140 | key := ari.NewKey(ari.ApplicationKey, "1") |
| 141 | |
| 142 | runTest("simple", t, s, func(t *testing.T, m *mock, cl ari.Client) { |
| 143 | ad := &ari.ApplicationData{} |
| 144 | ad.Name = "app1" |
| 145 | |
| 146 | m.Application.On("Data", tmock.Anything).Return(ad, nil) |
| 147 | |
| 148 | if h := cl.Application().Get(key); h == nil { |
| 149 | t.Errorf("Unexpected nil-handle") |
| 150 | } |
| 151 | |
| 152 | m.Shutdown() |
| 153 | |
| 154 | m.Application.AssertCalled(t, "Data", key) |
| 155 | }) |
| 156 | } |
no test coverage detected