use of org.onap.so.db.catalog.beans.ArRecipe in project so by onap.
the class QueryResourceRecipeTest method convertToJsonEmptyRecipe.
@Test
public void convertToJsonEmptyRecipe() {
QueryResourceRecipe vnfQueryRR = new QueryResourceRecipe(new VnfRecipe());
QueryResourceRecipe networkQueryRR = new QueryResourceRecipe(new NetworkRecipe());
QueryResourceRecipe arQueryRR = new QueryResourceRecipe(new ArRecipe());
String expected = "{\"orchestrationUri\":\"\",\"action\":\"\",\"description\":\"\",\"id\":\"\",\"recipeTimeout\":\"\",\"paramXSD\":\"\"}";
assertEquals(expected, vnfQueryRR.JSON2(false, false));
assertEquals(expected, networkQueryRR.JSON2(false, false));
assertEquals(expected, arQueryRR.JSON2(false, false));
}
Aggregations