Commit Graph

41 Commits

Author SHA1 Message Date
Trobax
fa31f828a1 move methods to StorageItem
moving the methods from GildedRose to Storage item for a polimorfizm solution
2022-11-23 17:27:37 +01:00
Trobax
4e692bf70e add new class
add new class to start wrapping all the methods
2022-11-23 17:17:42 +01:00
Trobax
0d3aefb6c8 update updateExpired method
update updateExpired method to process Aged Brie then Backstage passes then Sulfuras then all the rest items

also refactoring increase and decease quality methods to prevent duplication code and for easy maintain
2022-11-23 17:14:08 +01:00
Trobax
e0c5b8b5bd update updateQuality method
update updateQuality method to process each item individually Aged Brie then Backstage passes then Sulfuras then the rest of items
2022-11-23 17:04:15 +01:00
Trobax
bdcd441019 invert if condition
invert if condition to simplify the code
2022-11-23 16:54:56 +01:00
Trobax
7422960de8 breaking down more scopes
breaking down the Gilded Rose class to several methods for a better approach
2022-11-23 16:52:22 +01:00
Trobax
aefb4310a9 break down the method
breaking down the method updateQuality for to various scopes as a refactoring
2022-11-23 16:46:46 +01:00
Trobax
1302ae4686 update item quality
updating the ite.quality affectation
2022-11-23 16:41:27 +01:00
Trobax
112db7306b test case for legendary items
legendary items never have to be sold
2022-11-23 16:38:17 +01:00
Trobax
ab94957940 test cases for aged items 2
1- aged item quality increases twice as fast past selling date
2- aged item quality 50 past selling date does not increase
3- quality of an item is never greater than 50
2022-11-23 16:37:43 +01:00
Trobax
623d654efd test cases for aged items
1- aged items increase in quality over time
2- aged item quality 49 increases up to 50
2022-11-23 16:35:25 +01:00
Trobax
e1aa1664e5 item quality test cases
1 - test case for item quality degrades twice as fast past selling date
2 - item quality degrades by one with one day left
3- item quality degrades down to zero
4 - item quality is never negative
2022-11-23 16:34:08 +01:00
Trobax
8692a3e3e9 test case 2
test case for multiple items degrade each day
2022-11-23 16:30:39 +01:00
Trobax
9b36b7d134 adding test case quality selling decreases
adding test case for quality decreases and selling decreases each day
2022-11-23 16:24:15 +01:00
Trobax
013c72196b update gildedRose
enhanced the for loop for reading the code more effecient
2022-11-23 15:56:19 +01:00
Trobax
bcaa2d1ef5 update versions
junit.jupiter and adding assertj-core  dependency for testing
2022-11-23 15:41:39 +01:00
Trobax
889455d4a0 clean up repository
clean the repo to focus only on JAVA
2022-11-23 15:17:57 +01:00
Peter Fichtner (pfichtner)
0eab1974d7 Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
Horia Constantin
a4ac836a1d
updated junit.jupiter.version for java 2021-12-23 20:17:15 +01:00
Peter Fichtner (pfichtner)
78f0e354f6 maven wrapper added 2021-12-09 19:37:05 +01:00
emily
68211523d1 move approvals version of Java to own folder, provide alternative starting point and documentation 2021-11-30 08:52:19 +01:00
Peter Fichtner (pfichtner)
3f23301beb approval tests for java analog to csharp variant 2021-11-29 22:16:30 +01:00
Amedee Van Gasse 🦄🌈✨ (they/them)
f5f84fc776 Fix Maven warnings 2021-11-16 15:19:03 +01:00
Morgan Courbet
d4ccf958e2 Add editorconfig file for Java 2021-05-21 10:40:09 +02:00
Lars Eckart
0f729f3192 update gradle wrapper & junit5 dependency 2020-06-04 10:22:28 +03:00
Görge Albrecht
948852c2c4 add gradle build capabilities 2019-11-18 17:42:08 +01:00
Görge Albrecht
eb271c686f migrate to JUnit 5 2019-11-18 17:05:22 +01:00
Ton van Bart
5605173439 reverted GildedRose to original code 2017-01-11 21:32:08 +01:00
Ton van Bart
b2422cf733 delete package with weird name 2017-01-09 22:38:54 +01:00
Ton van Bart
d4b3a30334 delete package with weird name 2017-01-09 22:31:26 +01:00
Ton van Bart
260dc83099 use java.version property in pom.xml 2016-12-01 10:47:47 +01:00
Ton van Bart
40e7ea75c6 fixed directory structure 2016-12-01 09:45:34 +01:00
Ton van Bart
dae358a131 added Eclipse files to .gitignore 2016-12-01 09:37:05 +01:00
Ton van Bart
62b3b2fdb9 added IDEA project files to gitignore, set Maven java version to 8 2016-11-29 12:40:59 +01:00
Ton van Bart
3289182cef reorganized to Maven project structure 2016-11-29 12:36:54 +01:00
Peter Kofler
f492b562df update IDEA settings to IDEA 13 2014-11-28 20:40:52 +01:00
Peter Kofler
16b7b46653 add missing @Override annotation to item's toString 2014-04-13 13:40:22 +02:00
Peter Kofler
f284d7597a add IDEA setup for Java code 2014-01-25 23:01:40 +01:00
Peter Kofler
5920278cf3 add Java Eclipse settings 2014-01-25 23:01:39 +01:00
Peter Kofler
7c817b1032 format Java code (only whitespace changes) 2014-01-25 23:01:39 +01:00
emilybache
567c27854a Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00