From 5ff02eaae60ca2b0dc4d18fd261fede478633ef2 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Fri, 8 Feb 2013 11:55:27 +0100 Subject: [PATCH] jira-integration: By default ignore tests that only passes if you have a Tim server FEA: ItEr77S16JiraAndTimConnectorContributionIntegration --- .../src/test/java/importers/ExportTimesheetsToTimTest.java | 2 ++ .../src/test/java/importers/ImportRosterFromTimTest.java | 2 ++ .../src/test/java/importers/TimSoapClientTest.java | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/libreplan-webapp/src/test/java/importers/ExportTimesheetsToTimTest.java b/libreplan-webapp/src/test/java/importers/ExportTimesheetsToTimTest.java index 8772a73ce..f791e493e 100644 --- a/libreplan-webapp/src/test/java/importers/ExportTimesheetsToTimTest.java +++ b/libreplan-webapp/src/test/java/importers/ExportTimesheetsToTimTest.java @@ -37,6 +37,7 @@ import java.util.UUID; import javax.annotation.Resource; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.libreplan.business.IDataBootstrap; @@ -158,6 +159,7 @@ public class ExportTimesheetsToTimTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testExportTimesheetsToTimWithValidCodeAndOrder() { Order order = givenOrder(); boolean result = exportTimesheetsToTim.exportTimesheets("5160", order); diff --git a/libreplan-webapp/src/test/java/importers/ImportRosterFromTimTest.java b/libreplan-webapp/src/test/java/importers/ImportRosterFromTimTest.java index 2ac5d5187..740f2ea59 100644 --- a/libreplan-webapp/src/test/java/importers/ImportRosterFromTimTest.java +++ b/libreplan-webapp/src/test/java/importers/ImportRosterFromTimTest.java @@ -29,6 +29,7 @@ import static org.libreplan.web.test.WebappGlobalNames.WEBAPP_SPRING_SECURITY_CO import javax.annotation.Resource; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.libreplan.business.IDataBootstrap; @@ -91,6 +92,7 @@ public class ImportRosterFromTimTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testImportRosters() { importRosterFromTim.importRosters(); assertTrue(baseCalendarModel.getCalendarExceptionType() != null); diff --git a/libreplan-webapp/src/test/java/importers/TimSoapClientTest.java b/libreplan-webapp/src/test/java/importers/TimSoapClientTest.java index f0c24479c..bab11d954 100644 --- a/libreplan-webapp/src/test/java/importers/TimSoapClientTest.java +++ b/libreplan-webapp/src/test/java/importers/TimSoapClientTest.java @@ -32,6 +32,7 @@ import java.util.Properties; import org.joda.time.LocalDate; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.libreplan.importers.TimSoapClient; import org.libreplan.importers.tim.DataDTO; @@ -147,6 +148,7 @@ public class TimSoapClientTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testValidAuthorization() { boolean result = TimSoapClient.checkAuthorization( properties.getProperty("url"), @@ -164,6 +166,7 @@ public class TimSoapClientTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testImportRostersFromFile() { String filename = System.getProperty("user.dir") + "/../scripts/tim_test/rosterResponse.xml"; @@ -177,6 +180,7 @@ public class TimSoapClientTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testImportRostersFromServer() { RosterResponseDTO rosterResponseDTO = TimSoapClient .sendRequestReceiveResponse(properties.getProperty("url"), @@ -190,6 +194,7 @@ public class TimSoapClientTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testExportTimeRegistrationWith1Item() { List timeRegistrations = new ArrayList(); TimeRegistrationDTO timeRegistration = createTimeRegistration( @@ -211,6 +216,7 @@ public class TimSoapClientTest { } @Test + @Ignore("Only working if you have a Tim server configured") public void testExportTimeRegistrationWith2Items() { List timeRegistrationDTOs = new ArrayList(); TimeRegistrationDTO timeRegistrationDTO1 = createTimeRegistration(