Commit Graph

22 Commits

Author SHA1 Message Date
Janne Valkealahti
e62b09d2bb Overhaul gradle build
- Focus of this commit is to have modern gradle build.
- Migrate most of a plugin configurations from dsl
  into buildSrc.
- This fixes issues with existing docs build.
- Allows to sign files so that we have that part
  done for central in a build.
- We can skip publishing samples.
- We're able to share similar logic for modules
  which are meant for publish or just being samples.
- It's easier to upgrade gradle versions without
  getting various build issues.
- Relates #1143
2024-03-14 12:26:47 +00:00
Janne Valkealahti
d4811bcf55 Port test tests to assertj 2020-11-28 18:03:00 +00:00
Janne Valkealahti
bd1d6492fc Testplan array contains should discard order
- Replace contains with containsInAnyOrder for asserts.
- Forward port #883
2020-10-18 17:07:09 +01:00
Janne Valkealahti
c63a6624e9 Fix deprecations 2020-09-06 09:57:25 +01:00
Janne Valkealahti
49860418f8 Duplicate base junit4 classes for junit5
- AbstractStateMachineTests to AbstractStateMachineJUnit4Tests
- StateMachineTestPlanBuilderTests to StateMachineTestPlanBuilderJUnit4Tests
- Add AbstractStateMachineJUnit5Tests and StateMachineTestPlanBuilderJUnit5Tests
- Move away from junit4 assertThat methods
- Fixes #780
- Also completes and Fixes #771
2019-12-24 20:37:11 +00:00
Janne Valkealahti
da9c68f4e6 Remove TaskExecutor and TaskScheduler
- As all execution and scheduling is now in reactor,
  remove all traces of these spring interfaces.
- Fixes #800
2019-08-03 14:40:37 +01:00
Ming Deng
9f10700da2 Refactor to junit5
- remove junit4 dependecies
- refactor the unit tests by junit5
- enhance the spring-statemachine-test and spring-statemachine-build-tests so they can work together with junit4/junit5
- relates #779
2019-06-08 07:23:59 +01:00
Janne Valkealahti
c24bac57a3 Reactive changes for StateMachineTestPlan
- Move to use reactive methods and for now block
  as concept is really blocking. Full reactive stuff
  needs bigger overhaul.
- Fix event issues in DistributedStateMachine as these
  caused issues when StateMachineTestPlan were changed to
  send events via reactive methods.
- Relates #744
- Relates #750
2019-05-12 13:37:08 +01:00
Janne Valkealahti
32dfb58a4b Testing polish and generic reactive changes
- Remove use of statemachine assertj assertions to prepare move
- Move statemachine assertj assertion to spring-statemachine-test
- Polish some tests and user TestUtils from core tests
- Remove most of a deprecation warning from core tests
- Relates #744
2019-05-10 14:54:14 +01:00
Spring Operator
426fa163b2 URL Cleanup
- Merge/squash #686 and #694
2019-05-03 15:01:31 +01:00
jvalkeal
30f48ecd54 Add hamcrest integration to variables in StateMachineTestPlanBuilder
- For testing extended state variables, it's now possible to use
  new method expectVariableWith which takes hamcrest matcher
  as an argument.
- Backport #483
2018-02-11 14:46:57 +02:00
Janne Valkealahti
3ea89d14da Add test support for intermediate state changes
- Adding expectStateEntered and expectStateExited methods
  for testing state enter/exit in a given order. This gives
  on option to expect i.e. states via anonymous transitions.
- Fixes #154
2016-02-07 15:05:47 +00:00
Janne Valkealahti
05a4155d9d StateMachineTestPlan with multiple event
- Add support for defining multiple events
  within a single step.
- Fixes #134
2015-12-06 15:27:22 +00:00
Janne Valkealahti
5dc813ab3f StateMachineTestPlan starts machine too early
- Delaying starting statemachine inside step and
  after listeners has been reset.
- Fixes #104
2015-09-04 08:29:33 +01:00
Janne Valkealahti
99275380c3 Tune tests, modify web sample, add more logging
- In web sample change other event C to K which brings
  machine back from S2 to S1.
- Add more logging.
- New test sending parallel events.
2015-08-21 12:59:41 +01:00
Janne Valkealahti
f12b94e548 Add extended state variable change into test plan
- Add missing test method for testing variable change events.
- This may also contribute to make tests more reliable when
  testing variable values.
- Should contribute to #76 also.
2015-08-14 09:36:17 +01:00
Janne Valkealahti
04f807f1a7 Add docs for testing support
- Adding some docs for testing framework which has been
  in place for some time now.
- Fixes #49
2015-08-09 15:41:09 +01:00
Janne Valkealahti
5347ea4dd9 Fix internal transition for dist machine
- Change previous DistributedStateMachine fixes which didn't
  really work. Now explicitely getting state from machine to be set
  into ensemble for post internal transition.
- Now can send Message<E> via test plan instead of plain E.
- More testing for tweaked features.
2015-08-08 10:53:44 +01:00
Janne Valkealahti
4008436d75 Better handling of zk bad version
- Remove propagating BadVersionException from ZookeeperStateMachineEnsemble
  via event so that machine can be kept running. Further logs are then read
  anyway via watcher. Thought we still need better handling but this
  is better for now.
- Relates to #92
2015-08-07 11:15:16 +01:00
Janne Valkealahti
e6c400e31c Fix jdk8 javadoc build 2015-08-04 09:08:22 +01:00
Janne Valkealahti
6684b0deda Fixes for zk ensemble operations
- Fix some concurrent event issues which were
  born with new tests
- Enhance tests for dist machine and ensemble
- Add new features to testing system
- Polish and add more logging
2015-07-29 20:15:42 +01:00
Janne Valkealahti
e92a6c5a09 Add test framework skeleton
- Relates to #49
- New project spring-statemachine-test which contains public
  classes to easy generic state machine testing.
- Concepts of StateMachineTestPlan and StateMachineTestPlanBuilder.
- Replaced one zk test to use this framework.
2015-07-26 13:27:10 +01:00