()
| 41 | } |
| 42 | |
| 43 | @Test |
| 44 | void getAvailableVersionsForModule() throws Exception { |
| 45 | String fakeUrl = String.format("/%s/%s/%s/versions", |
| 46 | fakeModule.getNamespace(), |
| 47 | fakeModule.getName(), |
| 48 | fakeModule.getProvider() |
| 49 | ); |
| 50 | when(moduleService.getModuleVersions(any())).thenReturn(fakeModule.getVersions()); |
| 51 | given(). |
| 52 | when().get(fakeUrl) |
| 53 | .then() |
| 54 | .statusCode(200) |
| 55 | .body(is("{\"modules\":[{\"versions\":[{\"version\":\"0.0.3\"},{\"version\":\"0.0.2\"},{\"version\":\"0.0.1\"}]}]}")); |
| 56 | } |
| 57 | |
| 58 | @Test |
| 59 | void getDownloadUrl() throws StorageException { |
nothing calls this directly
no test coverage detected