(t *testing.T)
| 191 | } |
| 192 | |
| 193 | func TestJavaRestOpenapiFirst(t *testing.T) { |
| 194 | inspector := newTestJavaSourceInspector(t) |
| 195 | |
| 196 | sourceSpec := v1.SourceSpec{ |
| 197 | DataSpec: v1.DataSpec{ |
| 198 | Name: "test.java", |
| 199 | Content: ` |
| 200 | public void configure() throws Exception { |
| 201 | rest().openApi("petstore-v3.json"); |
| 202 | } |
| 203 | `, |
| 204 | }, |
| 205 | } |
| 206 | meta := NewMetadata() |
| 207 | err := inspector.Extract(sourceSpec, &meta) |
| 208 | require.NoError(t, err) |
| 209 | assert.Contains(t, meta.Dependencies.List(), "camel:rest-openapi") |
| 210 | } |
| 211 | |
| 212 | func TestJavaBeanDependencies(t *testing.T) { |
| 213 | inspector := newTestJavaSourceInspector(t) |
nothing calls this directly
no test coverage detected