public static List<Object> convertJsonToList(InputStream json) throws ParsingException { return convertJsonToList(json, new TypeToken<List<Object>>() { }.getType()); }
public static Map<String, Object> convertJsonToMap(String json) throws ParsingException { return convertJsonToMap(json, new TypeToken<Map<String, Object>>() { }.getType()); }
public static Map<String, Object> convertJsonToMap(InputStream json) throws ParsingException { return convertJsonToMap(json, new TypeToken<Map<String, Object>>() { }.getType()); }
public ServiceWithAlternativesCreatorTest(String inputLocation, String expected, Class<? extends RuntimeException> expectedExceptionClass) throws ParsingException, IOException { this.input = JsonUtil.fromJson(TestUtil.getResourceAsString(inputLocation, ServiceWithAlternativesCreatorTest.class), Input.class); this.expectedExceptionMessage = expected; this.expectedExceptionType = expectedExceptionClass; }
public static List<Object> convertJsonToList(String json) throws ParsingException { return convertJsonToList(json, new TypeToken<List<Object>>() { }.getType()); }
@Override protected void setProvidedDependencies( List<? extends com.sap.cloud.lm.sl.mta.model.v2.ExtensionProvidedDependency> providedDependencies) { this.providedDependencies3 = ListUtil.cast(providedDependencies); }
@Override public Map<String, Object> getParameters() { return MapUtil.unmodifiable(parameters); }
@Override public void test() { TestUtil.test(() -> { return findConfigurationEntries(input, createDao()); }, expectation, getClass(), new JsonSerializationOptions(true, false)); } }
public static char[] getCharacterRange(char start, char end) { if (start > end) { return getCharacterRange(end, start); } char[] range = new char[end - start + 1]; for (int i = 0; i < range.length; i++) { range[i] = start++; } return range; }
public routeMatchesUriTest(String routeInput, String uri, boolean isPortBasedRouting, boolean expectedResult) throws ParsingException, IOException { this.routeInput = JsonUtil.fromJson(TestUtil.getResourceAsString(routeInput, UriUtil.class), CloudRoute.class); this.uri = uri; this.isPortBasedRouting = isPortBasedRouting; this.expectedResult = expectedResult; }
@Override protected void setRequiredDependencies( List<? extends com.sap.cloud.lm.sl.mta.model.v2.ExtensionRequiredDependency> requiredDependencies) { this.requiredDependencies3 = ListUtil.cast(requiredDependencies); }
@Override public Map<String, Object> getParameters() { return MapUtil.unmodifiable(parameters); }
@Override public void test() { TestUtil.test(() -> { return findConfigurationEntriesGuid(input, createDao()); }, expectation, getClass(), new JsonSerializationOptions(true, false)); } }
@Override protected void setProvidedDependencies( List<? extends com.sap.cloud.lm.sl.mta.model.v2.ExtensionProvidedDependency> providedDependencies) { this.providedDependencies3 = ListUtil.cast(providedDependencies); }
@Override protected void setModules(List<? extends com.sap.cloud.lm.sl.mta.model.v2.Module> modules) { this.modules3 = ListUtil.cast(modules); }
public ListParser<T> setSource(List<Object> source) { this.source = ListUtil.cast(source); return this; }
@Override protected void setProvidedDependencies(List<? extends com.sap.cloud.lm.sl.mta.model.v2.ProvidedDependency> providedDependencies) { this.providedDependencies3 = ListUtil.cast(providedDependencies); }
@Override protected void setResources(List<? extends com.sap.cloud.lm.sl.mta.model.v2.ExtensionResource> resources) { this.resources3 = ListUtil.cast(resources); }
protected void setRequiredDependencies( List<? extends ExtensionRequiredDependency> requiredDependencies) { this.requiredDependencies2 = ListUtil.cast(requiredDependencies); }
@Override protected void setModuleTypes(List<? extends com.sap.cloud.lm.sl.mta.model.v2.ModuleType> moduleTypes) { this.moduleTypes3 = ListUtil.cast(moduleTypes); }