Commit graph

79 commits

Author SHA1 Message Date
Bogdan Bodnarjuk
6bce8f3f54 Refactoring code for Easy Mock lib 2016-05-05 17:07:50 +03:00
Bogdan Bodnarjuk
d39b8ab1ea Refactoring code and change deprecated methods
Refactoring code and change deprecated methods 2

Refactoring code and change deprecated methods
2016-05-05 14:31:44 +03:00
Bogdan Bodnarjuk
22b733d8ff Update all plugins 2016-04-25 15:12:25 +03:00
Vova Perebykivskiy
529d3b738e Added test for BAC value.
Code refactoring.
(cherry picked from commit 0f00d11)
2016-04-18 14:30:29 +03:00
Vova Perebykivskiy
cf7ea8e496 Update MPXJ library.
Changes to Project Import functionality.
Code refactoring.
i18n.
2016-02-23 16:10:51 +02:00
Vova Perebykivskiy
d780b187bf Documents uploading/downloading feature + tests.
i18n.
Resolving bugs/issues.
Code refactoring.
Add Liquibase tip.
2016-02-18 15:53:05 +02:00
Vova Perebykivskiy
76d0576824 Optimizing imports.
Refactoring.
2015-12-22 18:01:51 +02:00
Vova Perebykivskiy
36668ffeed Fix MySQL test failure bug. 2015-12-22 18:01:51 +02:00
Vova Perebykivskiy
ffca70fbea Add documentation about E-mail sending functionality.
Update JUnit version.
Code refactoring.
Imports optimizations.
Changes to UI of E-mail Templates page.
New values for i18n.
Validations of E-mail functionality.
2015-11-11 15:45:24 +02:00
Oscar Gonzalez Fernandez
2c7246f868 Remove uses of @NotTransactional
@NotTransactional is deprecrated and in the next major Spring version
is removed.
2014-05-06 21:16:00 +02:00
Oscar Gonzalez Fernandez
bc675c7332 Upgrade Spring version 2014-04-30 20:04:32 +02:00
Oscar Gonzalez Fernandez
80f6f6e0cf Make tests independent of tests order execution
When changing JUnit and Spring version the test failed because of the
different order execution.
2014-04-29 20:15:03 +02:00
Oscar Gonzalez Fernandez
3c21e72f14 Improve test
It was dependant on the order of the base calendars returned. This
caused spurious errors.
2014-04-20 18:45:31 +02:00
Oscar Gonzalez Fernandez
7e773b7eb1 Fix test failure
Now all tests should pass. The error was introduced in the commit
4baa93d790.
2013-11-26 19:52:47 +01:00
Lorenzo Tilve Álvaro
4baa93d790 Moved criteria based budget calculation methods to OrderElement to use them from the OrderCRUD
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Oscar Gonzalez Fernandez
05a9767477 Fix execution order depending error in test
Since the scenario was created in the same transaction (due to using
@Before annotation) was not visible in givenOrderFromPrepareForCreate.
Now use a @BeforeTransaction instead so it's visible before.
2013-06-01 20:47:17 +02:00
Oscar Gonzalez Fernandez
48c3b1093e Remove added exception types
This test was causing errors on CalendarExceptionTypeServiceTest
because it was leaving behind some CalendarExceptionTypes in the
database.
2013-06-01 17:26:42 +02:00
Oscar Gonzalez Fernandez
26da1978f5 Use the same configuration as in other tests
Otherwise it creates a new Spring context instead of keeping using the
previous one.

This doesn't seem specially dangerous, but in some circumstances can
lead to idle transactions with associated locks that hang up the
execution of the tests. This happened with PostgreSQL version 9.1 in
WorkReportServiceTest.importValidDescriptionValuesToWorkReport().
2013-06-01 17:26:30 +02:00
Lorenzo Tilve Álvaro
cc246eedfa Merge branch 'master' into mpxj-import
Conflicts:
	libreplan-business/src/main/java/org/libreplan/business/orders/entities/Order.java
	libreplan-webapp/pom.xml
	pom.xml
2013-04-16 09:34:31 +02:00
Lorenzo Tilve Álvaro
909eab9f52 Merge branch 'master' into mpxj-import
Conflicts:
	libreplan-business/src/main/java/org/libreplan/business/orders/entities/Order.java
	libreplan-business/src/main/resources/db.changelog-1.3.xml
2013-03-27 17:57:03 +01:00
miciele Ghiorghis
2fc452d1b7 jira and tim -connector: Refactoring OrderCRUDController and other improvements
- OrderCRUDController refactored
- Save or update for OrderSyncInfo instead of creating new instance for each sync
- Name change for TimImpExpInfo to SynchronizationInfo
- JiraSyncInfo is removed instead SynchronizationInfo is used
- All files which are affected by name changes are modified
- Translations added where applicable
- clean up unused variables etc
2013-03-25 14:44:15 +01:00
miciele Ghiorghis
d764e0a3f8 Jira-connector: JIRA moved to connectors
- JIRA is moved to connectors and all files modified that has to do with this change.
- JiraConfiguration file is removed
- ImportedLabel attribute is deleted from Order and order.hbm.xml
- Imstead of importedLabel is now used the key from OrderSyncInfo
- and some more changes where applicable
2013-03-14 12:26:12 +01:00
miciele Ghiorghis
3891048f00 tim-connector: check if connector values are invalid and more
Better error handling:
* check if connector connection values are valid
* New ConnectorException
* New .zul file to show import/export failed/success information
* All files modified affected by these changes
2013-03-14 12:20:38 +01:00
Manuel Rego Casasnovas
ef1328eee1 tim-connector: Moved tests to proper package
They were in importers and they're moved to org.libreplan.importers.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-27 14:58:34 +01:00
miciele Ghiorghis
1cad4ca9b6 Jira-integration: some improvement on get issues.
getIssues gets now the issues from jira in one request. This is done by adding a
query fields with desired fields to be included in response. Moreover the max_results
is now outside if(!query.isEmpty) statetment.
Test case is modified to read label from jira-properties instead of hard coded
2013-02-08 10:33:45 +01:00
miciele Ghiorghis
946c66163b Jira-integration: modified to test the classes instead code copied and jira label is moved to jira-conn-properties 2013-02-05 14:02:25 +01:00
miciele Ghiorghis
78e1d7b10b Jira-integration: classes renamed and basic comments added 2013-02-01 09:53:24 +01:00
Manuel Rego Casasnovas
5d439b032a jira-integration: Allow to store a comma-separated list of labels instead of URL
This patch allows the user to store a URL or a comma-separated list of words to
specify the possible labels for the JIRA connector.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 17:03:45 +01:00
Manuel Rego Casasnovas
55b5bedf81 jira-integration: Replace printStackTrace by throw RuntimeException
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:53:42 +01:00
Manuel Rego Casasnovas
25d508ef46 jira-integration: By default ignore tests that only passes if you have a JIRA server
Some tests only passes if you have a JIRA server installed, as it's not
something mandatory to run LibrePlan, these tests are ignored by default.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:22:00 +01:00
Manuel Rego Casasnovas
ae3b7610f1 jira-integration: Modify bootstraps in order to set JiraConfiguration properly
* Renamed PersonalTimesheetsTypeOfWorkHoursBootstrap to
  ConfigurationTypeOfWorkHoursBootstrapa in order to set up TypeOfWorkHours for
  both personal timesheets and Jira connector.
* Modified ConfigurationBootstrap to ensure that the JiraConfiguration is
  created properly.
* Removed unneeded code in ConfigurationModel.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 11:16:50 +01:00
Manuel Rego Casasnovas
cc2568aca2 jira-integration: Move path for search operation in JIRA REST API to constant
As this path is used in several classes it has been moved to a constant in
JiraRESTClient.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-29 19:30:26 +01:00
Manuel Rego Casasnovas
89e9a58b6b jira-integration: Move code prefix for JIRA entities to a constant
As the same prefix is used in several files it has been defined as a constant in
JiraConfiguration.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-29 19:30:17 +01:00
Miciele Ghiorghis
0bd1066d20 Jira-integration: Copy right changed from Igalia, S.L. to St. Antoniusziekenhuis 2013-01-29 18:30:49 +01:00
Miciele Ghiorghis
629ff6fad1 Jira-integration: Test for JiraRESTClient
Configuration properties are located in ..scripts/jira-connector/jira-conn.properties
2013-01-29 18:30:48 +01:00
Miciele Ghiorghis
2bc8fbec6d Jira-integration: Test for JiraTimesheetSynchronizer 2013-01-29 18:30:48 +01:00
Miciele Ghiorghis
ead5bd8a11 Jira-integration: Test for JiraOrderElementSynchronizer 2013-01-29 18:30:48 +01:00
Manuel Rego Casasnovas
ddc32cea1d Bug #1553: Fixed test due to change in behavior
As the code now is copied to the parent node, the test checking its value has to
be fixed.

FEA: ItEr77S04BugFixing
2012-11-20 09:52:32 +01:00
Manuel Rego Casasnovas
af5d2b2776 Rename SUBCONTRACTED_PENDING_ORDER to OUTSOURCED
FEA: ItEr77S03Community
2012-11-08 20:01:56 +01:00
Manuel Rego Casasnovas
98eeed0801 Fix remove order elements service test in MySQL
It was working properly in PostgreSQL but not in MySQL. Now it is passing in both.

FEA: ItEr77S13AllowDeleteOrderElements
2012-11-07 11:39:46 +01:00
Manuel Rego Casasnovas
774b97a26b Add test for new delete order elements service
FEA: ItEr77S13AllowDeleteOrderElements
2012-11-06 12:49:48 +01:00
Jacobo Aragunde Pérez
b0ab592785 Bug #1551: Added FIXME notes to two tests that are causing trouble.
I have identified a problem but I haven't the knowledge to fix it now.

FEA: ItEr77S04BugFixing
2012-10-23 13:27:57 +02:00
Manuel Rego Casasnovas
f9973f2e79 Trying to fix broken test in Jenkins 2012-10-03 10:50:40 +02:00
Manuel Rego Casasnovas
b8ae09471d Fix tests broken in commit b940c78826
The problem was that now when a user or resource is saved, it's checked the
limit in the configuration fields. For that reason, we need to load the
configuration data before saving any user or resource.
2012-10-03 10:25:54 +02:00
Manuel Rego Casasnovas
3394f41aa2 Refactor source code to use personal timesheet instead of monthly timesheet
FEA: ItEr77S07PersonalTimesheetsPeriodictyConfiguration
2012-08-28 13:28:02 +02:00
Manuel Rego Casasnovas
b141fbb6ac Refactor package for stuff related to importers 2012-08-27 10:04:16 +02:00
Jacobo Aragunde Pérez
bc27ad2d7a Bug #1494: Add a valid SubcontractorDeliverDate to the SubcontractedTaskData
used in ReportAdvancesServiceTest.

FEA: ItEr76S04BugFixing
2012-07-16 10:56:29 +02:00
Manuel Rego Casasnovas
e91faa776b Finally fixing users and profiles related tests changing the way to define default users
FEA: ItEr76S30PermissionsEnhancements
2012-06-25 13:13:48 +02:00
Manuel Rego Casasnovas
36414465cf New attempt to fix tests in Jenkins machine
FEA: ItEr76S30PermissionsEnhancements
2012-06-25 11:20:31 +02:00
Manuel Rego Casasnovas
a1e4ecd38d Fix tests failing on Jenkins due to new predefined users with profiles
FEA: ItEr76S30PermissionsEnhancements
2012-06-22 13:03:39 +02:00