/*
 * Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.snomed.api.rest;

import org.junit.ClassRule;
import org.junit.rules.RuleChain;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;

import com.b2international.commons.platform.PlatformUtil;
import com.b2international.snowowl.snomed.SnomedConstants.Concepts;
import com.b2international.snowowl.snomed.api.rest.branches.SnomedBranchingApiFeature;
import com.b2international.snowowl.snomed.api.rest.branches.SnomedMergeApiFeature;
import com.b2international.snowowl.snomed.api.rest.components.SnomedConceptApiFeature;
import com.b2international.snowowl.snomed.api.rest.components.SnomedDescriptionApiFeature;
import com.b2international.snowowl.snomed.api.rest.components.SnomedRelationshipApiFeature;
import com.b2international.snowowl.snomed.api.rest.id.SnomedIdentifierApiFeature;
import com.b2international.snowowl.snomed.api.rest.io.SnomedImportApiExamplesFeature;
import com.b2international.snowowl.snomed.api.rest.io.SnomedImportApiFeature;
import com.b2international.snowowl.snomed.common.ContentSubType;
import com.b2international.snowowl.test.commons.BundleStartRule;
import com.b2international.snowowl.test.commons.Resources;
import com.b2international.snowowl.test.commons.SnomedContentRule;
import com.b2international.snowowl.test.commons.SnowOwlAppRule;

/**
 * @since 1.0
 */
@RunWith(Suite.class)
@SuiteClasses({ 
	SnomedBranchingApiFeature.class,
	SnomedMergeApiFeature.class,
	SnomedConceptApiFeature.class,
	SnomedDescriptionApiFeature.class,
	SnomedRelationshipApiFeature.class,
	SnomedIdentifierApiFeature.class,
	SnomedImportApiFeature.class,
	SnomedImportApiExamplesFeature.class
//	SnomedVersioningApiFeature.class
})
public class AllSnomedApiTests {

	@ClassRule
	public static final RuleChain appRule = RuleChain
			.outerRule(SnowOwlAppRule.snowOwl().clearResources(true).config(PlatformUtil.toAbsolutePath(AllSnomedApiTests.class, "rest-configuration.yml")))
			.around(new BundleStartRule("com.b2international.snowowl.api.rest"))
			.around(new BundleStartRule("com.b2international.snowowl.snomed.api.rest"))
			.around(new SnomedContentRule(Resources.Snomed.MINI_RF2_INT, Concepts.REFSET_LANGUAGE_TYPE_UK, ContentSubType.FULL));
	
}
@@ -1052,23 +1052,20 @@
 chingApi
-Feature
+Test
 ;%0Aimport
@@ -1132,23 +1132,20 @@
 MergeApi
-Feature
+Test
 ;%0Aimport
@@ -1212,31 +1212,28 @@
 edConceptApi
-Feature
+Test
 ;%0Aimport com
@@ -1304,23 +1304,20 @@
 ptionApi
-Feature
+Test
 ;%0Aimport
@@ -1393,23 +1393,20 @@
 nshipApi
-Feature
+Test
 ;%0Aimport
@@ -1472,23 +1472,20 @@
 ifierApi
-Feature
+Test
 ;%0Aimport
@@ -1555,23 +1555,20 @@
 Examples
-Feature
+Test
 ;%0Aimport
@@ -1630,23 +1630,107 @@
 mportApi
-Feature
+Test;%0Aimport com.b2international.snowowl.snomed.api.rest.versioning.SnomedVersioningApiTest
 ;%0Aimport
@@ -2120,31 +2120,28 @@
 BranchingApi
-Feature
+Test
 .class,%0A%09Sno
@@ -2151,23 +2151,20 @@
 MergeApi
-Feature
+Test
 .class,%0A
@@ -2174,98 +2174,89 @@
 omed
-ConceptApiFeature.class,%0A%09SnomedDescriptionApiFeature.class,%0A%09SnomedRelationshipApiFeature
+VersioningApiTest.class,%0A%09SnomedImportApiTest.class,%0A%09SnomedImportApiExamplesTest
 .cla
@@ -2279,23 +2279,20 @@
 ifierApi
-Feature
+Test
 .class,%0A
@@ -2302,105 +2302,96 @@
 omed
-ImportApiFeature.class,%0A%09SnomedImportApiExamplesFeature
+ConceptApiTest.class,%0A%09SnomedDescriptionApiTest
 .class
+,
 %0A
-//
 %09Snomed
-VersioningApiFeature
+RelationshipApiTest
 .class
+,
 %0A%7D)%0A
@@ -2911,7 +2911,6 @@
 ));%0A
-%09%0A
 %7D
+%0A

Replace Jnario features in test suite