/******************************************************************************** | |
* Copyright (c) 2015-2018 Contributors to the Eclipse Foundation | |
* | |
* See the NOTICE file(s) distributed with this work for additional | |
* information regarding copyright ownership. | |
* | |
* This program and the accompanying materials are made available under the | |
* terms of the Eclipse Public License v. 2.0 which is available at | |
* http://www.eclipse.org/legal/epl-2.0. | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
* | |
********************************************************************************/ | |
package org.eclipse.mdm.businessobjects.boundary.integrationtest; | |
import org.eclipse.mdm.api.base.model.ContextType; | |
import org.eclipse.mdm.api.dflt.model.CatalogComponent; | |
import org.junit.BeforeClass; | |
/** | |
* Test class for CatalogComponentResource for TestSequence {@link ContextType}. | |
* | |
* @author Alexander Nehmer, science+computing AG Tuebingen (Atos SE) | |
* @see EntityResourceIntegrationTest | |
* | |
*/ | |
public class CatalogComponentTSQResourceIntegrationTest extends EntityResourceIntegrationTest { | |
@BeforeClass | |
public static void prepareTestData() { | |
getLogger().debug("Preparing CatalogComponentTSQResourceIntegrationTest"); | |
// set up test data | |
setContextClass(CatalogComponentTSQResourceIntegrationTest.class); | |
putTestDataValue(TESTDATA_RESOURCE_URI, "/catcomps/testsequence"); | |
putTestDataValue(TESTDATA_ENTITY_NAME, "testCatCompTSQ"); | |
putTestDataValue(TESTDATA_ENTITY_TYPE, "CatalogComponent"); | |
CatalogComponent catComp = ENTITY_FACTORY.createCatalogComponent(ContextType.TESTSEQUENCE, | |
getTestDataValue(TESTDATA_ENTITY_NAME)); | |
putTestDataValue(TESTDATA_CREATE_JSON_BODY, toJson(catComp)); | |
} | |
} |