blob: 2fee745e016f5dd007d35e3b7df67d95f2ad7b4a [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2019 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.businessobjects.boundary.ResourceConstants;
import org.junit.BeforeClass;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
/**
* Test class for ValueListResource.
*
* @author Alexander Nehmer, science+computing AG Tuebingen (Atos SE)
* @see EntityResourceIntegrationTest
*
*/
public class ValueListResourceIntegrationTest extends EntityResourceIntegrationTest {
@BeforeClass
public static void prepareTestData() {
getLogger().debug("Preparing ValueListResourceIntegrationTest");
// set up test data
setContextClass(ValueListResourceIntegrationTest.class);
putTestDataValue(TESTDATA_RESOURCE_URI, "/valuelists");
putTestDataValue(TESTDATA_ENTITY_NAME, "testValueList");
putTestDataValue(TESTDATA_ENTITY_TYPE, "ValueList");
JsonObject json = new JsonObject();
json.add(ResourceConstants.ENTITYATTRIBUTE_NAME, new JsonPrimitive(getTestDataValue(TESTDATA_ENTITY_NAME)));
putTestDataValue(TESTDATA_CREATE_JSON_BODY, json.toString());
}
}