791 Commits

Author SHA1 Message Date
Joshua Gleitze
3ed384af4f tests: remove mockk from SymbolicLinkResolvingSpec
it blocked test execution for a very long time
2020-12-23 22:45:19 +01:00
Joshua Gleitze
53848f88cd tests: remove mockk from PathAssertionsSpec
it blocked test execution for a very long time
2020-12-23 18:37:42 +01:00
Joshua Gleitze
097a466e8f Simplify the caveat about because in the README 2020-12-23 16:07:00 +01:00
Robert Stoll
760fd47387 use info bullet point for BigDecimal.isEqualIncludingScale
moreover:
- allow to indent Information bullet point, i.e. allow to define it via
  parameter
2020-12-23 14:34:22 +01:00
Robert Stoll
f3b39d263c use : after because, document it in README - warn about misuse 2020-12-23 11:02:42 +01:00
Robert Stoll
880ccb2f9e fix indentation for explanatory assertion group with info bullet-point 2020-12-23 11:02:41 +01:00
Valentino
22fca97e9a #660 add except because (#666)
* add because method for documenting the reason for the following assertion/s

Co-authored-by: Valefant <valentino.bernardo_ciddio@smail.th-koeln.de>

The format in this commit is not yet correct
2020-12-23 11:02:38 +01:00
Robert Stoll
5309870b70 move assertions from Map to MapLikeAssertions (remove Map..)
moreover:
- introduce Map.size based on CollectionLike
- deprecated DescriptionMapAssertion and duplicate in
  DescriptionMapLikeAssertion
2020-12-22 23:10:16 +01:00
Robert Stoll
c6b33b57b4 move TODO which are no longer planned for 0.15.0 to 0.16.0 2020-12-22 22:05:09 +01:00
Robert Stoll
8fa03ed15e rename indentBulletPoint to indentRootBulletPoint where appropriate 2020-12-22 21:15:55 +01:00
Robert Stoll
893955048b fix typo in DEDSCRIPTION -> DESCRIPTION 2020-12-22 20:26:36 +01:00
Robert Stoll
f1403dba6c use also wording element in mismatches for Iterable.contains
and further improvements in the README
2020-12-21 15:38:05 +01:00
Robert Stoll
85dd46b11c document MapLike.contains assertion functions in README.md
moreover:
- add a link for the output of the examples
2020-12-21 12:32:10 +01:00
Robert Stoll
f77885d63c also show additional entries if all assertions for inAnyOrder are OK 2020-12-21 12:27:40 +01:00
Robert Stoll
5aac8b3daa MapLike.contains.inOrder.only entry/entries/entriesOf
for api-fluent as well as for api-infix.

Moreover:
- don't wrap into explanatoryGroup in FeatureExtractor if already in
  an explanatory context, i.e. the subject is None
2020-12-21 00:17:51 +01:00
Robert Stoll
c2c019d63d cleanup specs, prepare for further features and add MapLike...Spec
moreover:
- also support IterableLike which carry a Map.Entry and not only Pair
2020-12-21 00:17:26 +01:00
Robert Stoll
0afa096a91 specs for entriesOf inAnyOrder(.only) 2020-12-21 00:17:22 +01:00
Robert Stoll
acf150cead fix bc and bbc tests, ignore MapAssertionSpec for v0.14.0 2020-12-21 00:17:08 +01:00
Robert Stoll
0ad3af264e api-fluent MapLike.contains.inAnOrder(.only) 2020-12-21 00:08:32 +01:00
Robert Stoll
983a2ecfa5 less verbose inOrder only: remove element which
see #722

moreover:
- rename InOrderOnlyBaseAssertionCreator.createAssertionsAndReturnIndex
  to addAssertionsAndReturnIndex
- likewise InOrderOnlyMatcher.createSingleEntryAssertion to
  addSingleEntryAssertion
  - simplify the implementation, reduce indirections
- no longer search for the first non-null element in an iterable, not
  needed as we no longer show the feature representation in an
  ExplanatoryAssertionGroup (first positive effect of that change)
- allow that ExplanatoryGroup can fail so that it can be used without a
  surrounding group (e.g. fixedClaimGroup) -- still hold per default
- moving the try-catch for too early subject accesses into
  CollectingExpectImpl, this way covering more cases (will be removed
  soon though)
- move ExpectImpls into own files
2020-12-18 22:36:07 +01:00
Robert Stoll
77d90fae14 fix link to readme examples 2020-12-16 22:23:50 +01:00
Robert Stoll
3058ac32bd reword entry to element in IterableLike.contains
and use `equals` instead of `is`
2020-12-16 22:05:54 +01:00
Robert Stoll
f027ce13dd fail assertions if the subject is None 2020-12-09 21:56:50 +01:00
Robert Stoll
375e63e63e establish backward compatibility tests for v0.14.0 - also run samples 2020-11-14 15:26:36 +01:00
Robert Stoll
8b59bc0445 deprecate asExpect and IterableAssertions in domain 2020-11-13 21:49:05 +01:00
Robert Stoll
5e04d636a8 move TODOs to 0.15.0 for AssertionCollector, implFactories, core and...
- MetaFeatureOption
- no longer extending SubjectProvider in AssertionContainer
- creating a Helper to change the representation of a FeatureExpect on
  the logic level
2020-11-13 21:49:04 +01:00
Robert Stoll
f1ad27a3f9 catch exceptions during feature extraction and show it in reporting
- re-use this for notToThrow, change to feature extraction as we want
  to show the value in case of a success (fixes #628)
- remove genericFeature and genericSubjectBasedFeature based on
  MetaFeature from logic
2020-11-12 21:42:34 +01:00
Robert Stoll
607ef0d644 run js sample composite build in different project
because of a Windows Server 2019 issue (or at least github action issue)
2020-11-11 23:28:07 +01:00
Robert Stoll
514e6a54c2 remove jasmine sample and turn mocha sample into js sample
It is very unlikely someone uses JS with jasmine as jetbrains has
setup everything with mocha
2020-11-11 22:53:29 +01:00
Robert Stoll
80c45cc13a fix typo notOrAst, should be notOrAt 2020-11-11 22:06:03 +01:00
Joshua Gleitze
1d4c19c53e add Path.hasDirectoryEntry (#685) 2020-10-30 09:13:06 +01:00
Jens Geiregat
4891a36183 add Path.contains (#640) 2020-10-27 15:39:06 +01:00
Fredrik Henricsson
8e96c161f7 Update Gradle wrapper to 6.7
Update the Gradle wrapper used by the root and sample
projects from 6.3 to 6.7.
2020-10-22 22:07:50 +02:00
Jakub Riegel
b49ec4005a #629 add Path.isAbsolute method 2020-10-22 12:45:14 +02:00
Robert Stoll
43cacaee88 rename atrium-scala to atrium-scala2 and change package structure
Don't prefix packages with scala but move it after ch.tutteli.atrium.
IMO it is not an extension like kotlin_1_3 and therefore should
not be at the end. Use scala2 as we are likely going to use atrium-scala
for scala 3 once it is out.
2020-10-20 21:33:31 +02:00
Jakub Riegel
b5b945d647 #630 add Path.isRelative method (#632) 2020-10-16 18:28:12 +02:00
Victor Osipov
1dbef19e9e add Iterable.containsNoDuplicates() (#601) 2020-10-16 15:26:35 +02:00
Valentino
1a10575fde #482 accept date as string for chronozoneddatetime (#625) 2020-10-15 12:41:37 +02:00
Tomasz Tarczyński
dc2f223f4a Fuse MapEntryAssertionSpecs (#622)
* Fuse MapAssertionSpecs
* Remove leftover from fusing IterableFeatureAssertionsSpec with
IterableAssertionSpec
* Comment-out IterableLike Scala specs, remove IterableFutureAssertionsSpec
2020-10-14 07:20:31 +02:00
Tomasz Tarczyński
176b02fdf0 Fuse collection and iterable specs (#602) 2020-10-10 14:37:30 +02:00
Tomasz Tarczyński
3cafcf7971 Rename .*FeatureAssertionSpec classes without fusing
Easier one this time: renamed specs which do not have a counterpart w/o
"Feature", thus do not require fusing.
2020-10-06 22:37:52 +02:00
Tomasz Tarczyński
2ebb3e7f3c Rename MapFeatureAssertionsSpec to MapAssertionsSpec (#598)
- Join existing Spec files after renaming
- add `out` to expect(map).contains...values -> add regression to ambiguityTests
- First PR to solve #329
2020-10-06 20:25:20 +02:00
Robert Stoll
f58b2adf1d deprecate FeatureExtractor and FeatureExtractorBuilder from domain 2020-10-02 22:01:03 +02:00
Robert Stoll
31cf26710d move FeatureExtractor from domain-builders to atrium-logic
- including FeatureExtractorBuilder
- use FeatureExpectOptions instead of own FeatureOptions
- move OptionsChooser to core and rename to FeatureExpectOptionsChooser
- adapt API accordingly, use FeatureExtractorBuilder.ExecutionStep
  instead of ExtractedFeaturePostStep
- rename AnyAssertions.notToBeNullBut to notToBeNullButOfType
2020-10-01 22:50:21 +02:00
Joshua Gleitze
c539d6fb0f test: reduce code duplication in PathAssertionsSpec by introducing expectedPermissionTypeHintFor 2020-10-01 12:01:14 +02:00
Joshua Gleitze
3fc64f1b6c test: give all permissions when testing execution permission on Windows 2020-10-01 00:23:13 +02:00
Joshua Gleitze
cface9fc25 test: fix executable tests on Windows 2020-09-30 22:46:44 +02:00
Joshua Gleitze
a1ec2b46e7 feat: add Path.isExecutable assertion 2020-09-30 22:21:25 +02:00
Robert Stoll
c3034bf121 deprecate SubjectChanger and SubjectChangerBuilder from domain 2020-09-24 21:32:45 +02:00
Robert Stoll
b6c293dcf0 move SubjectChanger from domain-builders to atrium-logic 2020-09-23 22:28:21 +02:00