jira-integration: By default ignore tests that only passes if you have a Tim server
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
parent
48cdded3e0
commit
5ff02eaae6
3 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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<TimeRegistrationDTO> timeRegistrations = new ArrayList<TimeRegistrationDTO>();
|
||||
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<TimeRegistrationDTO> timeRegistrationDTOs = new ArrayList<TimeRegistrationDTO>();
|
||||
TimeRegistrationDTO timeRegistrationDTO1 = createTimeRegistration(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue