Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC Cucumber #1211

Merged
merged 5 commits into from
Feb 22, 2022
Merged

POC Cucumber #1211

merged 5 commits into from
Feb 22, 2022

Conversation

olekvernberg
Copy link
Contributor

No description provided.

@olekvernberg olekvernberg requested a review from a team as a code owner February 18, 2022 19:41
Copy link
Contributor

@blommish blommish left a comment

Choose a reason for hiding this comment

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

Ser fint ut 👍 men er nog fint hvis vi ikke må ta inn junit4 ?

pom.xml Outdated

<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Hvis vi bruker cucumber-junit-platform-engine så bruker vi junit5 i stedet for 4

Copy link
Contributor

Choose a reason for hiding this comment

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

Tror cucumber-java støtter junit5 direkte, tror ikke vi burde bruke java8 her? cucumber/cucumber-jvm#2174

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Godt poeng. Jeg gikk for cucumber-java8 fordi det var så lite dokumentasjon på cucumber-java. Men så issuet du linket til og skjønte det skulle fases ut og gi lite support, så jeg gjorde en ekstra innsats for å få det til med nytt oppsett til tross for lite dokumentasjon. Har fått det til å virke nå, og det er sjekket inn 👍

import java.time.format.DateTimeFormatter

abstract class BasisDomeneParser {
companion object {
Copy link
Contributor

Choose a reason for hiding this comment

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

Trenger disse metodene å være inne i en abstract class? Eller kan de bare vare inne i et Object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Trenger ikke være i abstract class. Jeg fjernet det og companion object, så nå er det statiske metoder i en fil i stedet.

Comment on lines 21 to 22
| BehandlingId | Endringstype | Endret i behandlingId |
| 1 | ERSTATTET | 2 |
Copy link
Contributor

Choose a reason for hiding this comment

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

Her ville jeg kanskje forventet å vise til at inntekten i andelshistorikken er forskjellig - siden det er endringen i tilstand? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ja, var litt frem og tilbake når jeg lagde testen. Tenkte at testene strengt talt ikke sjekket på inntekt, men hva historikken ble. Siden du nevnte det så tok jeg med inntekt i test.

Copy link
Contributor

@charliemidtlyng charliemidtlyng left a comment

Choose a reason for hiding this comment

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

Generelt synes jeg det ser veldig bra ut. Tror det kan bli mange gode tester utfra dette oppsettet som "grunnmur"!

- Byttet oppsett til nyere java
- Sjekker at inntekt er som forventet i scenario
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@olekvernberg olekvernberg merged commit 8a5730e into master Feb 22, 2022
@olekvernberg olekvernberg deleted the poc_cucumber branch February 22, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants