467 Commits

Author SHA1 Message Date
stevenlmcgraw
50a28dce03 Apply renaming of with*FailureHint -> withHelpOn*Failure for issue #671 (#970) 2021-08-30 22:30:38 +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
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
76d12f3847 deprecate throwableAssertions, use new ...Expectations in api-infix 2021-05-20 21:55:34 +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
a82b7dd935 deprecate iterableAssertions, use mew ...Expectations in api-infix 2021-04-28 21:38:47 +02:00
Robert Stoll
a9d26884f3 deprecate charSequenceAssertions, use mew ...Expectations in api-infix 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
Robert Stoll
f7d2b1d23a fix typo will be removed latest -> move latest behind version 2021-04-13 22:18:59 +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
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
275397109b remove deprecated constructor from Untranslatable 2021-04-05 21:24:21 +02:00
Robert Stoll
924106a968 remove RawString and sub types 2021-04-05 21:24:21 +02:00
Robert Stoll
54aaefa846 remove MethodCallFormatter.format 2021-04-05 21:24:20 +02:00
Robert Stoll
81216138ec deprecate CoreFactory and loadService 2021-04-05 21:24:20 +02:00
Robert Stoll
8210983143 remove deprecated Reporter.atriumErrorAdjuster 2021-04-04 23:04:21 +02:00
Robert Stoll
f9cca66e14 remove FeatureExpectOptions.kt in core, only keep the one in logic
same same for related function/types
2021-04-04 22:53:26 +02:00
Robert Stoll
5f3210487b remove non-used properties for RealTranslatorIntSpec
RealTranslatorIntSpec was renamed to TranslatorIntSpec in a previous
commit
2021-04-04 22:31:55 +02:00
Robert Stoll
fbd58bfb4f remove evalOnce without replacement 2021-04-04 22:28:44 +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
91a36a93fb remove StaticName and description in Feature/FeatureWithCreator 2021-04-04 21:32:57 +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
99aef715d0 remove TODO on getImpl to replace it with components.
getImpl will be used in the future to create ProofFactory related types.
We will most likely rename it but it has a different purpose than
components. I think it will be much less likely that components are
actually exchanged where a user needs to define an own assertion verb to
do so. On the other hand, I could imagine that one wants to provide
an own implementation for a ProofFactory, e.g. to override one
particular expectation function, where with getImpl one is decoupled
from the assertion verb and instead provides an extension function
on the logic level.
2021-03-30 13:57:56 +02:00
Robert Stoll
9dbe73ae61 adjust TODO replace SubjectProvider, keep it, we will add ProofContainer 2021-03-30 13:57:56 +02:00
Robert Stoll
57856a11de move feature show only failing for contains in order only to 0.17.0 2021-03-30 13:57:55 +02:00
Robert Stoll
342ed253a7 update packges.md and add missing KDoc 2021-03-30 13:57:55 +02:00
Robert Stoll
d076897f91 mark FeatureInfo as experimental with on annotation 2021-03-30 13:57:55 +02:00
Robert Stoll
bd25186c53 move MetaFeature to logic and MetaFeatureOption to APIs 2021-03-21 22:45:03 +01: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
74f111b826 move TODOs to 0.17.0 which we no longer plan for 0.16.0 2021-03-16 22:03:30 +01:00
Robert Stoll
675fc02c33 fix typo lineSeparator instead of lineSeperator 2021-03-16 21:32:39 +01:00
Mai Le
86dbe94aab fixes 806 2021-03-04 07:08:00 +11: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
Robert Stoll
eeccac627c improve error message for TranslatableWithArgs and cover with tests
moreover:
- also cover the behaviour of Text
2021-02-18 16:29:59 +01:00
Robert Stoll
593cd80053 adjust deprecations regarding removal and remove unused constant 2021-02-18 16:27:28 +01:00
Robert Stoll
09c27e3625 move PleaseUseReplacementException to core
i.e.:
- duplicate and deprecate the one in domain-builders
- ignore failing bbc and bc tests
2021-02-12 20:57:48 +01:00
Robert Stoll
d0de536750 use MethodCallFormatter from components instead of CoreFactory
moreover:
- deprecate newMethodCallFormatter in CoreFactory
- introduce a descriptionProvider for Feature and FeatureWithCreator
  in api-infix.
  - deprecate the usage of `description` accordingly
2021-02-09 21:57:06 +01:00
Robert Stoll
241d41a825 introduce ComponentFactoryContainer and AtriumErrorAdjusters in core
In order that one is able to exchange a component which is part of
another component, we need to following to change:
- introduce a ComponentFactoryContainer which stores all factories
  and provide a way to re-define factories
- add val components to AssertionContainer which returns the specified
  ComponentFactoryContainer
- remove withReporter from RootExpectBuilder.OptionsChooser and instead
  add a more generic withComponent (and withChainedComponent)
- use AtriumErrorAdjustor not from Reporter (deprecated the property)
  but retrieve it from the ComponentFactoryContainer of the
  corresponding AssertionContainer

moreover:
- introduce @ExperimentalComponentFactoryContainer
- deprecated the AtriumErrorAdjuster creating functions in CoreFactory
  - replace usages accordingly
2021-02-08 23:50:46 +01:00
Robert Stoll
421253e73c move FeatureExpectOptionsChooser to logic 2021-01-25 22:07:50 +01:00
Robert Stoll
fdb357c02a deprecate ExpectBuilder and introduce RootExpectBuilder in logic 2021-01-25 21:55:18 +01:00
Robert Stoll
c417262554 rename assertion to expectation in KDoc
In detail:
- rename `subject of the assertion` to `subject of `this` expectation`
- rename `@return An [Expect] for the current subject of the assertion.`
  to `@return an [Expect] for the subject of `this` expectation.`
2021-01-19 20:30:36 +01:00
Robert Stoll
31e3bc13f0 update 0.16.0 TODOs due to possible replacement of Assertion with Record 2021-01-17 23:12:09 +01:00
Robert Stoll
ed0d31e47e change will be removed with 1.0.0 to latest with 1.0.0 2021-01-16 21:50:20 +01:00
Robert Stoll
5474d2fca3 deprecate SubjectProvider & Expect.maybeSubject, remove AsertionHolder
moreover:
- adjust SmokeTests use _logicAppend instead of addAssertion and impl
  function
2021-01-10 20:36:52 +01:00
Robert Stoll
aa319e34f4 remove deprecated stuff of Assertions in core and make internal...
... the Assertion which where announced to be made internal with 1.0.0

moreover:
- deprecate evalOnce in core, not used by Atrium
- adjust BC because we removed deprecated IndentAssertionGroup(Type)
2021-01-09 22:59:48 +01:00
Robert Stoll
f72e89ea2e copy and move AssertionCollector to logic, deprecate the one in domain
For this to work, we need to pass AssertionContainer around in order
that we can use the implementation configured there.
2021-01-09 22:26:48 +01:00