Michael Hoennig
a5f69a8cad
adding spotless to gradle config
2019-04-30 12:18:31 +02:00
Michael Hoennig
29a2178a48
splitting up build.gradle - step 1
2019-04-30 07:52:37 +02:00
Michael Hoennig
de6c7c5d4a
added links to PiTest reports in Jenkins
2019-04-30 06:56:33 +02:00
Michael Hoennig
087e6617d3
using a proper displayLabel for the parent SepaMandate->Customer (HOWTO)
...
Unfortunately without a test for the HTML template changes of the Angular components
because these seem to come only with Protractor, which we had not configured in JHipster.
2019-04-29 18:43:23 +02:00
Michael Hoennig
2980103764
run createSepaMandate test now as FINANCIAL_CONTACT of related customer
2019-04-29 15:18:45 +02:00
Michael Hoennig
d3db9d1392
added a PiTest section to HOWTO.md
2019-04-29 15:15:59 +02:00
Michael Hoennig
2fa728cc45
restructuring the HOWTO.md headline levels
2019-04-29 14:46:03 +02:00
Michael Hoennig
b433f91bea
section about HOWTO- tags
2019-04-29 14:44:02 +02:00
Michael Hoennig
0fd30a5700
adding AccessMappings SepaMandateDTO with tests + consequences (HOWTO)
2019-04-29 12:39:31 +02:00
Michael Hoennig
cc0857e33b
FluentBuilder<D> as interface with default method
2019-04-29 12:19:34 +02:00
Michael Hoennig
1916347490
Revert "adding AccessMappings SepaMandateDTO with tests + consequences (HOWTO)"
...
This reverts commit 328e809a because I want all changes of this HOWTO in a single commit.
Unfortunately due to the access filter, the SepaMandateIntTest failed with branch coverage, as some branches were not reachable anymore.
2019-04-29 11:23:05 +02:00
Michael Hoennig
328e809a2b
adding AccessMappings SepaMandateDTO with tests + consequences (HOWTO)
2019-04-29 09:39:08 +02:00
Michael Hoennig
474d51fbae
refactoring of AccessMappingsUnitTestBase overloading -> method refs in ctor
2019-04-29 09:29:04 +02:00
Michael Hoennig
0de11a2548
cleanup unused constants in SepaMandateResourceIntTest
2019-04-29 09:12:30 +02:00
Michael Hoennig
8267cef973
improved code coverage for ShareResource
2019-04-28 14:38:03 +02:00
Michael Hoennig
5835f15cd9
implemented more AssetDTO+ShareDTO tests and fixed but in ShareDTO
2019-04-28 14:15:51 +02:00
Michael Hoennig
2cd92d4e2c
generalized AccessMappingsUnitTestBase
2019-04-28 12:05:02 +02:00
Michael Hoennig
0257c83fa5
fine-tuning pitest config and increasing threshold
2019-04-28 11:14:44 +02:00
Michael Hoennig
405568fee4
fine-tuning pitest config and increasing threshold
2019-04-28 08:11:41 +02:00
Michael Hoennig
187ccfdcc7
writtenFields->updatingFields and remove fields which are not actually updating (effectively same value)
2019-04-27 21:01:29 +02:00
Michael Hoennig
c2880a3914
exclude generated *MapperImpl from pitest
2019-04-27 20:51:03 +02:00
Michael Hoennig
acfef3dfbe
test for equality via compareTo() to consider BigDecimal/DateTime etc. => effectively unchanged in update
2019-04-27 20:36:25 +02:00
Michael Hoennig
3abc201a8d
split up AssetDTOUnitTest and AssetDTOIntTest, AccessMappingsUnitTestBase
2019-04-27 17:56:50 +02:00
Michael Hoennig
5edf97b230
AssetDTOUnitTest and Membership.displayLabel now with memberFrom/Until
2019-04-27 15:03:03 +02:00
Michael Hoennig
456a2f4811
reduced logging for determined user role to debug level
2019-04-27 13:48:27 +02:00
Michael Hoennig
956cadeb09
membership.model.ts: membershipDisplayLabel -> customerDisplayLabel
2019-04-27 13:23:32 +02:00
Michael Hoennig
efa2972375
code coverage improved for MembershipResource and CustomerResource
...
and Customer not explicitly deletable anymore
2019-04-27 12:05:30 +02:00
Michael Hoennig
3b0d46a4c8
better display labels and less columns in tables (deliberately not yet in SepaMandate*)
2019-04-27 11:30:15 +02:00
Michael Hoennig
b9a7c33c6a
explicitly mock user+role in *IntTest, set global role HOSTMASTER only in dev profile
2019-04-27 11:10:36 +02:00
Michael Hoennig
5d843f4725
org.hostsharing.hsadminng logging on INFO level and logging in SecurityUtils
2019-04-27 10:28:16 +02:00
Michael Hoennig
53382beb88
MembershipDTO JSonSerializerWithAccessFilter proper membershipDisplayReference
2019-04-27 09:52:54 +02:00
Michael Hoennig
bed81ee7f8
Fix AssetResourceIntTest BigDecimal scaling problem
2019-04-27 07:16:26 +02:00
Michael Hoennig
c8bb8cb2ca
@AccessFrom in AssetDTO and AssetMapper with improved membershipDisplayReference
2019-04-27 07:13:52 +02:00
Michael Hoennig
6570981dc2
Revert "@AccessFrom in AssetDTO and AssetMapper with improved membershipDisplayReference"
...
This reverts commit 4ad0d5d954 .
2019-04-27 06:37:56 +02:00
Michael Hoennig
51ff0c4990
Revert "MembershipDTO JSonSerializerWithAccessFilter proper membershipDisplayReference"
...
This reverts commit da5b667607 .
2019-04-27 06:37:30 +02:00
Michael Hoennig
638a35ea5a
Revert "Fix AssetResourceIntTest BigDecimal scaling problem"
...
This reverts commit a86e4d7afb .
2019-04-27 06:36:47 +02:00
Michael Hoennig
7e3d3ec5de
Revert "better display labels and less columns in tables (deliberately not yet in SepaMandate*)"
...
This reverts commit d81b71cd3a .
2019-04-27 06:36:11 +02:00
Michael Hoennig
f301364d84
Revert "trying to find reason for failing tests in Jenkins, locally all tests are green"
...
This reverts commit 318ecd0be4 .
2019-04-27 06:36:01 +02:00
Michael Hoennig
f08a1d89b3
Revert "trying to find reason for failing tests in Jenkins, locally all tests are green"
...
This reverts commit 411342eb0b .
2019-04-27 06:35:51 +02:00
Michael Hoennig
411342eb0b
trying to find reason for failing tests in Jenkins, locally all tests are green
2019-04-26 23:00:21 +02:00
Michael Hoennig
318ecd0be4
trying to find reason for failing tests in Jenkins, locally all tests are green
2019-04-26 22:53:32 +02:00
Michael Hoennig
d81b71cd3a
better display labels and less columns in tables (deliberately not yet in SepaMandate*)
2019-04-26 22:11:49 +02:00
Michael Hoennig
a86e4d7afb
Fix AssetResourceIntTest BigDecimal scaling problem
2019-04-26 19:35:07 +02:00
Michael Hoennig
590a3031c7
Merge remote-tracking branch 'origin/master'
2019-04-26 19:11:25 +02:00
Michael Hoennig
da5b667607
MembershipDTO JSonSerializerWithAccessFilter proper membershipDisplayReference
2019-04-26 17:43:22 +02:00
Michael Hoennig
4ad0d5d954
@AccessFrom in AssetDTO and AssetMapper with improved membershipDisplayReference
2019-04-26 17:15:39 +02:00
Michael Hoennig
6092afe32b
better coverage
2019-04-26 11:41:48 +02:00
Michael Hoennig
a10a3a62e5
fix failing unit test and better coverage
2019-04-26 11:27:29 +02:00
Michael Hoennig
ef3e8c968b
Merge remote-tracking branch 'origin/master'
2019-04-26 10:26:34 +02:00
Michael Hoennig
ea08f4a6c6
removed bloat-code from JsonComponents in DTOs
2019-04-26 10:26:25 +02:00
Michael Hoennig
a6fd210de5
test code coverage improved and more JSon/field types
2019-04-25 18:53:32 +02:00
Michael Hoennig
fb3b79cfc4
for now, make give all users the role of a HOSTMASTER
2019-04-25 12:56:51 +02:00
Michael Hoennig
3e30cf2d17
merging current DTO during deserialization
2019-04-25 12:22:45 +02:00
Michael Hoennig
fb961ca4a1
merging from master
2019-04-24 17:41:28 +02:00
Michael Hoennig
ad1517a16e
JSonAccessFilter with generic access to grand parent role
2019-04-24 13:23:08 +02:00
Michael Hoennig
639ea06243
JSonAccessFilter with initially working (hardcoded) grand parent role
2019-04-24 12:30:26 +02:00
Michael Hoennig
a94516b3ce
JSonSerializer/DeserializerWithAccessFilter: also use role in parent
2019-04-23 14:37:49 +02:00
Michael Hoennig
1505e7bd66
JSonDeserializerWithAccessFilter: shouldDetectMultipleSelfIdFields
2019-04-23 09:22:23 +02:00
Michael Hoennig
d2b0f477f2
CustomerDTO: AccessFor/Rights-Configuration
2019-04-23 08:42:47 +02:00
Michael Hoennig
63bd602397
JSonDeserializerWithAccessFilter with working access rights validation
2019-04-23 08:31:26 +02:00
Michael Hoennig
bb0fb4aa78
parallel structure for JSonSerializer/DeserializerWithAccessFilter
2019-04-23 06:57:06 +02:00
Michael Hoennig
90316a262b
JSonSerializerWithAccessFilter - idea for parallel structure with deserializer
2019-04-23 06:28:36 +02:00
Michael Hoennig
741e91bb78
JSonSerializerWithAccessFilter - idea for generalization of field types
2019-04-23 06:27:41 +02:00
Michael Hoennig
1dae396d99
JSonDeserializerWithAccessFilter
2019-04-23 06:17:55 +02:00
Michael Hoennig
1bc7044527
fixing pitest failure by excluding purely generated code etc.
...
also removed unused methods and added a unit test to improve coverage
and setting thresholds now to 90% each
2019-04-21 11:53:30 +02:00
Michael Hoennig
1ac8df5ed9
improving branch coverage for AssetValidator+ShareValidator
2019-04-20 14:47:45 +02:00
Michael Hoennig
7ba20b3687
improving branch coverage for AssetResourceIntTest
2019-04-20 10:47:01 +02:00
Michael Hoennig
9f95af7547
fixing the ShareServiceUnitTest as validation was moved to ShareValidator
2019-04-20 09:43:11 +02:00
Michael Hoennig
98f96a72b1
fixing the AssetResourceIntTest BigDecimal equals
2019-04-19 14:25:25 +02:00
Michael Hoennig
de439a1658
fixing the *IntTest regarding required related entities and unique constraints
2019-04-19 14:13:16 +02:00
Michael Hoennig
70db76b439
comment access rights on CustomerDTO
2019-04-19 14:13:15 +02:00
Michael Hoennig
998a5a8aa1
WIP JSonDeserializerWithAccessFilter
2019-04-19 12:08:30 +02:00
Michael Hoennig
0b7ebac472
first shot @AccessFor on MembershipDTO
2019-04-19 12:08:04 +02:00
Michael Hoennig
6e017aba49
removing orphaned specialized serializer from CustomerDTO
2019-04-19 11:01:52 +02:00
Michael Hoennig
a24ca35bd7
JSonSerializerWithAccessFilterUnitTest
2019-04-19 10:46:40 +02:00
Michael Hoennig
1ad74907bd
RoleUnitTest + special case FINANCIAL_CUSTOMER_CONTACT
2019-04-19 09:13:19 +02:00
Michael Hoennig
d5a37ddfae
JavaDoc for Role
2019-04-19 07:46:11 +02:00
Michael Hoennig
f4960f260e
moving the JSonSerializer to a separate package
2019-04-19 07:18:20 +02:00
Michael Hoennig
6ab67995ff
fixing tests after merging master
2019-04-18 18:11:56 +02:00
Michael Hoennig
16cf845015
Merge branch 'master' into spike/JSonSerializerDeserializerForDTOs
...
# Conflicts:
# package-lock.json
# src/main/java/org/hostsharing/hsadminng/service/dto/CustomerDTO.java
2019-04-18 17:36:35 +02:00
Michael Hoennig
ce083e928a
comment access rights on CustomerDTO
2019-04-18 17:30:28 +02:00
Michael Hoennig
5287d78fcb
JSON serializer generalized
2019-04-18 17:16:18 +02:00
Michael Hoennig
bc87739d6f
JSON serialiezr/deserializer for CustomerDTO - manually
2019-04-18 14:48:58 +02:00
Michael Hoennig
35565e1b43
comment access rights on CustomerDTO
2019-04-17 16:45:16 +02:00
Michael Hoennig
7b7598871b
added sample data for memberships
2019-04-12 18:50:38 +02:00
Michael Hoennig
3e66a21805
added comment regarding potential race condition
2019-04-12 17:34:28 +02:00
Michael Hoennig
73969f5a40
using IntTests.createEntity() as generated by JHipster with required fields
2019-04-12 17:20:48 +02:00
Michael Hoennig
3fa514c982
Merge branch 'jhipster-generated'
...
# Conflicts:
# src/main/java/org/hostsharing/hsadminng/domain/Asset.java
# src/main/java/org/hostsharing/hsadminng/domain/Customer.java
# src/main/java/org/hostsharing/hsadminng/domain/Membership.java
# src/main/java/org/hostsharing/hsadminng/domain/Share.java
# src/main/java/org/hostsharing/hsadminng/service/dto/CustomerCriteria.java
# src/main/resources/config/liquibase/changelog/20190403083735_added_entity_Customer.xml
# src/main/webapp/app/entities/customer/customer-detail.component.html
# src/main/webapp/app/entities/customer/customer-update.component.html
# src/main/webapp/app/entities/customer/customer.component.html
# src/main/webapp/app/entities/entity.module.ts
# src/test/java/org/hostsharing/hsadminng/web/rest/CustomerResourceIntTest.java
# src/test/java/org/hostsharing/hsadminng/web/rest/ShareResourceIntTest.java
2019-04-12 16:47:18 +02:00
Michael Hoennig
bd5bb859d9
re-importing latest customer.jdl from master branch
2019-04-12 16:46:43 +02:00
Michael Hoennig
39950f0d69
several 'required' flags added to jdl and re-import
2019-04-12 16:43:16 +02:00
Michael Hoennig
4dbbd5ecde
MembershipValidator using membershipRepository.hasUncancelledMembershipForCustomer
2019-04-12 14:43:23 +02:00
Michael Hoennig
ca9879db92
improved shouldValidateThatUntilDateIsAfterSinceDate test
2019-04-11 18:16:08 +02:00
Michael Hoennig
d1d6001842
introduced MembershipValidator
2019-04-11 18:06:12 +02:00
Michael Hoennig
c6bf856b34
prevent deleting memberhsip via service call
2019-04-11 16:52:50 +02:00
Michael Hoennig
4fdcf77e8e
added mutation testing with pitest as a separate task (too slow because there are almost only IntTests)
2019-04-11 14:34:19 +02:00
Michael Hoennig
19c0049b0e
added mutation testing with pitest as a separate task (too slow because there are almost only IntTests)
2019-04-11 12:51:07 +02:00
Michael Hoennig
e7e38f68b5
lowering jacoco branch cover ratio, so it should pass
2019-04-09 15:25:58 +02:00
Michael Hoennig
19a02460e8
adds jacoco check to Jenkinsfile
2019-04-09 15:18:11 +02:00
Michael Hoennig
ec70357ea0
jacoco code coverage (with deliberately too low limit for testing)
2019-04-09 15:00:01 +02:00
Michael Hoennig
933e4f3d3d
ts-lint: do not warn if properties or parameters define inferrable type
2019-04-09 13:19:57 +02:00