Skip to content

Commit

Permalink
Tag integration tests
Browse files Browse the repository at this point in the history
This allows to exclude slow integration tests for local and continuous
builds.
  • Loading branch information
mvilliger committed Apr 9, 2020
1 parent 850207d commit df6e79a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
@@ -0,0 +1,19 @@
/*******************************************************************************
* Copyright (c) 2020 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.sdk.core.s.testing;

/**
* <h3>{@link IntegrationTest}</h3> Marker interface for integration test category
*
* @since 9.0.0
*/
public interface IntegrationTest {
}
Expand Up @@ -14,15 +14,18 @@
import java.io.IOException;

import org.eclipse.scout.sdk.core.s.testing.CoreScoutTestingUtils;
import org.eclipse.scout.sdk.core.s.testing.IntegrationTest;
import org.eclipse.scout.sdk.core.util.CoreUtils;
import org.junit.Test;
import org.junit.experimental.categories.Category;

/**
* <h3>{@link ScoutProjectNewTest}</h3>
*
* @author Matthias Villiger
* @since 5.2.0
*/
@Category(IntegrationTest.class)
public class ScoutProjectNewTest {

@Test
Expand Down
Expand Up @@ -34,6 +34,7 @@
import org.eclipse.scout.sdk.core.s.jaxws.JaxWsModuleNewHelper;
import org.eclipse.scout.sdk.core.s.jaxws.ParsedWsdl;
import org.eclipse.scout.sdk.core.s.testing.CoreScoutTestingUtils;
import org.eclipse.scout.sdk.core.s.testing.IntegrationTest;
import org.eclipse.scout.sdk.core.util.CoreUtils;
import org.eclipse.scout.sdk.s2e.IJavaEnvironmentProvider;
import org.eclipse.scout.sdk.s2e.ScoutSdkCore;
Expand All @@ -42,6 +43,7 @@
import org.eclipse.scout.sdk.s2e.util.ScoutStatus;
import org.junit.Assert;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
Expand All @@ -67,6 +69,7 @@ public void testUnsupportedService() throws IOException, WSDLException, URISynta
}

@Test
@Category(IntegrationTest.class)
public void testNewWebServicesConsumerFirst() throws CoreException, IOException, ParserConfigurationException, SAXException, XPathExpressionException {
File root = CoreScoutTestingUtils.createTestProject();
try {
Expand All @@ -88,6 +91,7 @@ public void testNewWebServicesConsumerFirst() throws CoreException, IOException,
}

@Test
@Category(IntegrationTest.class)
public void testNewWebServicesProviderFirst() throws XPathExpressionException, CoreException, ParserConfigurationException, SAXException, IOException {
File root = CoreScoutTestingUtils.createTestProject();
try {
Expand Down
Expand Up @@ -23,6 +23,7 @@
import org.eclipse.scout.sdk.core.model.api.IJavaEnvironment;
import org.eclipse.scout.sdk.core.s.jaxws.JaxWsUtils;
import org.eclipse.scout.sdk.core.s.testing.CoreScoutTestingUtils;
import org.eclipse.scout.sdk.core.s.testing.IntegrationTest;
import org.eclipse.scout.sdk.core.util.CoreUtils;
import org.eclipse.scout.sdk.s2e.IJavaEnvironmentProvider;
import org.eclipse.scout.sdk.s2e.operation.IWorkingCopyManager;
Expand All @@ -33,6 +34,7 @@
import org.eclipse.scout.sdk.s2e.testing.mock.FileSystemMockFactory;
import org.junit.Assert;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.mockito.Mockito;
import org.xml.sax.SAXException;

Expand All @@ -42,6 +44,7 @@
* @author Matthias Villiger
* @since 5.2.0
*/
@Category(IntegrationTest.class)
public class WebServiceUpdateOperationTest {

private static final String PORT_TYPE_NAME_IN_WSDL = "scoutQueryInterface2";
Expand Down

0 comments on commit df6e79a

Please sign in to comment.