Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Enclave refactoring #1684

Merged
merged 8 commits into from
Jul 12, 2019
Merged

Conversation

AbdelStark
Copy link
Contributor

PR description

  • use final modifiers when appropriate to comply with Pantheon global policy
  • use assertj assertions in tests
  • don't use local variables when not necessary
  • check exception message for upCheck method

Fixed Issue(s)

- introduce `MonitorableKeyValueStorage`
- factorise code
- remove metrics instanciation in `RocksDbKeyValueStorage` and `ColumnarRocksDbKeyValueStorage`
- use final modifiers when appropriate to comply with Pantheon global policy
- use `assertj` assertions in tests
- don't use local variables when not necessary
- check exception message for `upCheck` method
@AbdelStark AbdelStark added api Related to public APIs testing Related to tesing labels Jul 12, 2019
integrationTestImplementation 'junit:junit'
integrationTestImplementation 'org.assertj:assertj-core'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the reason for using assertj over junit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability of the code mainly, it looks more a human natural semantic. Easier to read for non tech people for example. Also we try to use it in the rest of the code when possible. So also for harmonization.

Copy link
Contributor

@iikirilov iikirilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@mbaxter mbaxter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AbdelStark AbdelStark merged commit 4e96a62 into PegaSysEng:master Jul 12, 2019
@AbdelStark AbdelStark deleted the enclave-refactoring branch August 23, 2019 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api Related to public APIs testing Related to tesing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants