Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Removed unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
swd1tn002 committed Nov 28, 2023
1 parent 7429357 commit ad45e0e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,7 @@ Perustapauksessa metodin pitäisi muotoilla annettu liukuluku muotoon `"123 456,

Toteuta tehtäväpohjan [PriceFormatterTest](./src/test/java/price/formatter/PriceFormatterTest.java)-luokkaan omat yksikkötestit, jotka varmistavat eri syötteiden avulla, että valmis `formatPrice`-metodi toimii edellä kuvatulla tavalla. Suosittelemme, että kirjoitat jokaista sääntöä kohden oman erillisen testimetodin.

Testattava `PriceFormatter`-luokka sijaitsee `price.formatter`-paketissa ja se tulee ottaa testiluokassa käyttöön `import`-komennolla:

```java
import price.formatter.PriceFormatter;
```

Tämän jälkeen kutsu testimetodeissasi `formatPrice`-metodia erilaisilla parametreilla ja varmista, että metodin palauttamat arvot ovat esitettyjen sääntöjen mukaisia:
Kutsu testimetodeissasi `formatPrice`-metodia erilaisilla parametreilla ja varmista, että metodin palauttamat arvot ovat esitettyjen sääntöjen mukaisia:

```java
PriceFormatter formatter = new PriceFormatter();
Expand Down

0 comments on commit ad45e0e

Please sign in to comment.