370 Commits

Author SHA1 Message Date
Robert Stoll
1ccc1d0c9f switch default branch from master to main 2021-09-21 23:11:16 +02:00
Robert Stoll
f074b5d925 change badge to branch master 2021-08-30 10:05:15 +02:00
Robert Stoll
744657a8b7 remove last remaining bits of bintray/jcenter
and switch installation example to kotlin-dsl
2021-08-10 13:22:30 +02:00
Robert Stoll
4d845a5474 include version in link of download badge 2021-08-09 13:41:48 +02:00
Robert Stoll
e83f6b511f prepare dev cycle of 0.17.0 2021-07-13 22:25:57 +02:00
Robert Stoll
30c7f0aed1 v0.17.0-RC1 2021-07-13 22:21:02 +02:00
Robert Stoll
7edbfd9f2a mention report optiosn for in order only in README 2021-07-13 22:21:01 +02:00
Robert Stoll
f6375b1ca9 #292 show only failing for inOrder.only if more than 10 elements
I decided that I will apply a default heuristic so that (I hope) most
users don't have to change reporting options.
2021-07-12 22:33:31 +02:00
Robert Stoll
1f1f0a50ca show representation for failure in feature extraction if subject defined
or in case failure hints or sub-assertions are defined.
2021-07-06 22:40:23 +02:00
Edward Hou
1a8e024a7b Make Iterable.all and Iterable.containsNoDuplicates use hasNext (#939) 2021-07-06 20:37:40 +02:00
Edward Hou
dac885bc6e More consise reporting for contains.atLeast(1) (#934) 2021-06-11 07:53:05 +02:00
robstoll
4b7feffbe8 generate README examples 2021-06-09 09:20:45 +02:00
Robert Stoll
f67cd01e38 rename appendAssertion/CreatedBy to append and appendAsGroup
This way we can use it also on ProofContainer and users won't notice
anything as long as they recompile
2021-05-29 21:22:55 +02:00
Robert Stoll
5da01b789b update README examples to the to + infinitive schema 2021-05-22 23:40:39 +02:00
Robert Stoll
f4af95da17 deprecate pathAssertions, use new ...Expectations in api-fluent 2021-05-22 23:23:07 +02:00
Robert Stoll
3273775d60 deprecate bigDecimalAssertions, use new ...Expectations in api-fluent 2021-05-20 22:39:59 +02:00
Robert Stoll
5608af1852 deprecate throwableAssertions, use new ...Expectations in api-fluent 2021-05-20 21:52:23 +02:00
Robert Stoll
7222026a84 deprecate mapEntryAssertions, use new ...Expectations in api-fluent 2021-05-19 18:09:39 +02:00
Robert Stoll
cfe0918b3b deprecate mapAssertions, use mew ...Expectations in api-fluent 2021-05-18 14:10:02 +02:00
Robert Stoll
439d4ee13c rename toHaveNext to toHaveElements
same same notToHaveNext as well as for toHaveNextAndAll/Any/None
2021-05-04 22:36:24 +02:00
Robert Stoll
37b4e8144f deprecate iterableAssertions, use mew ...Expectations in api-fluent 2021-04-28 21:26:00 +02:00
robstoll
3f15841b59 generate README examples 2021-04-25 17:54:39 +00:00
Robert Stoll
5f436faf4e Merge pull request #879 from robstoll/to-plus-infinitive
renaming floatingPointAssertions to consistent `to + infitinive` naming schema
2021-04-25 19:52:36 +02:00
robstoll
9f0eb589e0 generate README examples 2021-04-25 17:35:50 +00:00
Robert Stoll
25f8b07c35 deprecate floatingPointAssertions, use mew ...Expectations in api-fluent
moreover:
- also change description in reporting from `to be` to `to equal`
- don't provide a replacement for BigDecimal, it is a smell if someone
  uses it.
2021-04-25 19:35:08 +02:00
Robert Stoll
e7031299a7 replace isLessThan with toBeLessThan in README 2021-04-25 00:46:33 +02:00
Robert Stoll
6c0095d738 rename toBeLess/GreaterThanOrEqual to ...OrEqualTo 2021-04-23 22:50:18 +02:00
Robert Stoll
2b8a27535c deprecate comparableAssertions, use mew ...Expectations in api-fluent 2021-04-21 21:39:38 +02:00
Robert Stoll
d7baa2efb5 fix indentation in readme examples 2021-04-20 22:26:28 +02:00
Robert Stoll
adb895091c deprecate collectionAssertions, use mew ...Expectations in api-fluent 2021-04-20 22:01:24 +02:00
Robert Stoll
b1b01645a2 deprecate charSequenceAssertions, use mew ...Expectations in api-fluent
moreover:
- do no longer provide an overload for Char for toStartWith and
  toEndsWith. I prefer to have less API methods and less maintenance
  compared to a nice to have. Which also means I prefer to force users
  to write "a" over 'a' than more maintenance, more API methods
2021-04-15 23:14:47 +02:00
Robert Stoll
1fea83a62b deprecate expectation verb assert and assertThat 2021-04-14 21:33:18 +02:00
robstoll
ef847c505a generate README examples 2021-04-13 22:01:06 +02:00
Robert Stoll
fdcbc1ab2a deprecate old anyAssertions and use new anyExpectations in api-infix 2021-04-12 22:41:33 +02:00
Robert Stoll
b81729506b deprecate old anyAssertions and use new anyExpectations in api-fluent 2021-04-12 22:41:32 +02:00
Robert Stoll
62e7d0b5b3 change download badge to maven-central 2021-04-12 10:31:56 +02:00
Robert Stoll
c2a1942c5c rename core-api to core
and use `expectation` in packages.md instead of `assertion`
2021-04-06 21:06:11 +02:00
Robert Stoll
144d35c167 replace SubjectProvider with Expect but do not yet remove
we cannot yet remove it because we still have addAssertion on Expect
and if we remove it, would also have one on AssertionContainer. Two
different definitions which would not work together. This also means:
- deprecate addAssertion/addAssertionsCreatedBy/createAndAddAssertion
  in Expect, add append... to AssertionContainer
2021-04-04 21:32:58 +02:00
Robert Stoll
2519afb254 remove deprecated modules, ReportFactory, ExpectBuilder and dependOnMe
moreover:
- adjust packages.md, also remove deprecaed modules there and remove
  documentation which is no longer used
- remove createRegisterJsServicesTask in build.gradle
- adjust bbc/bc due to breaking changes (removal of different types).
  in the same go we have to forgive bc for infix as we no longer have
  ReporterFactory and since we don't use ascii bullet points in infix
  tests any more since 0.16.0 - we have established own tests for this
  aspect
- rename RealTranslatorIntSpec to TranslatorIntSpec and remove the
  existing TranslatorIntSpec which was intended for ReporterFactory
  based implementations.
2021-04-01 22:57:33 +02:00
Robert Stoll
6385f5f93a prepare dev cycle of 0.17.0 2021-03-30 20:20:53 +02:00
Robert Stoll
5a9b74b096 v0.16.0 2021-03-30 14:13:04 +02:00
Robert Stoll
6571239140 introduce its as convenience feature extractor function 2021-03-18 21:19:06 +01:00
Robert Stoll
30f812e1a6 deprecate ReporterFactory and property reporter 2021-03-16 23:06:59 +01:00
Robert Stoll
27b3e4a4a0 fix readme re-generation, use always ReadmeObjectFormatter
moreover:
- fix the broken link for mapArguments snippet
- let TextObjectFormatterCommon extend TextObjectFormatter
2021-02-23 21:49:06 +01:00
Robert Stoll
575f5285e1 use Translator in ComponentFactoryContainer introduce ComponentFactory
ComponentFactory because we need a way to say we want kind of a
singleton which is re-used in this ComponentFactoryContainer.
We cannot / don't want to make guarantees about creating a singleton
only once, i.e. use computeIfAbsent or similar, because it would mean
we cannot have a singleton component which depends on another
singleton component.

We try at least to create a singleton as less as possible. For this to
work:
- introduce ComponentFactory (as already mentioned)
  - let ComponentFactoryContainer.getFactoryOrNull and
    getFactoryForChainedOrNull return a ComponentFactory instead of a
    simple function
- introduce ConcurrentMap as polyfill

moreover:
- deprecate get/setAtriumProperty and ReporterFactory
- deprecate all Translator and AssertionFormatter specific stuff in
  core-robstoll-lib and move to core
  - configure replacements in DefaultComponentFactoryContainer
  - get rid off most ReporterFactories only keep DefaultReporterFactory
    which we will remove with 0.17.0
- rename RemoveRunnerAtriumError to RemoveRunnerFromAtriumError
- move text specific AssertionFormatter to package `text` as preparation
  for further AssertionFormatters (like html)
- introduce RealTranslatorIntSpec which makes use of
  ComponentFactoryContainer instead of ReporterFactory
2021-02-23 15:49:36 +01:00
Robert Stoll
d010e5af67 write specs to cover custom bullet points, remove from other specs 2021-02-23 15:49:35 +01:00
ivanmiklec
9409248fc7 Update readme and disable bcc for iterable.contains 2021-02-16 21:21:19 +01:00
Robert Stoll
9ae00123d6 move away from jcenter as it will stop working on 1st of may 2021 2021-02-07 20:19:02 +01:00
Robert Stoll
6951315043 update note about feature syntax 2021-02-03 23:04:31 +01:00
Robert Stoll
7e382bd7c5 Update README.md 2021-01-15 22:33:34 +01:00