Search in sources :

Example 1 with ArRecipe

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));
}
Also used : ArRecipe(org.onap.so.db.catalog.beans.ArRecipe) NetworkRecipe(org.onap.so.db.catalog.beans.NetworkRecipe) VnfRecipe(org.onap.so.db.catalog.beans.VnfRecipe) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ArRecipe (org.onap.so.db.catalog.beans.ArRecipe)1 NetworkRecipe (org.onap.so.db.catalog.beans.NetworkRecipe)1 VnfRecipe (org.onap.so.db.catalog.beans.VnfRecipe)1