@@ -0,0 +1,1949 @@
+/*%0A * Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.b2international.snowowl.snomed.api.rest.perf;%0A%0Aimport static com.b2international.snowowl.datastore.BranchPathUtils.createMainPath;%0Aimport static com.b2international.snowowl.snomed.SnomedConstants.Concepts.MODULE_SCT_CORE;%0Aimport static com.b2international.snowowl.snomed.SnomedConstants.Concepts.ROOT_CONCEPT;%0Aimport static com.b2international.snowowl.snomed.api.rest.SnomedApiTestConstants.PREFERRED_ACCEPTABILITY_MAP;%0Aimport static com.b2international.snowowl.snomed.api.rest.SnomedComponentApiAssert.assertComponentCreated;%0Aimport static com.b2international.snowowl.snomed.api.rest.SnomedComponentApiAssert.givenConceptRequestBody;%0A%0Aimport java.util.Map;%0A%0Aimport org.databene.contiperf.PerfTest;%0Aimport org.databene.contiperf.junit.ContiPerfRule;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport com.b2international.snowowl.snomed.api.rest.SnomedComponentType;%0A%0A/**%0A * @since 4.7%0A */%0Apublic class SnomedConceptCreatePerformanceTest %7B%0A%0A%09@Rule%0A%09public ContiPerfRule rule = new ContiPerfRule();%0A%09%0A%09@Test%0A%09@PerfTest(invocations = 10)%0A%09public void createConcept() throws Exception %7B%0A%09%09final Map%3C?, ?%3E requestBody = givenConceptRequestBody(null, ROOT_CONCEPT, MODULE_SCT_CORE, PREFERRED_ACCEPTABILITY_MAP, false);%0A%09%09assertComponentCreated(createMainPath(), SnomedComponentType.CONCEPT, requestBody);%0A%09%7D%0A%09%0A%7D%0A

add concept create perf. test case to run against remote server