MCPcopy Create free account
hub / github.com/PacoVK/tapir / getAvailableVersionsForModule

Method getAvailableVersionsForModule

src/test/java/api/ModulesTest.java:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

getProviderMethod · 0.65
getNamespaceMethod · 0.45
getNameMethod · 0.45
getModuleVersionsMethod · 0.45
getVersionsMethod · 0.45

Tested by

no test coverage detected