GildedRose-Refactoring-Kata/Java
Kadir Sirimsi c9e770c719
feature: Adding a conjured item that should degrade twice as fast.
The test won't succeed when it does so for now only duplicates the normal item degradation
2025-02-11 15:37:15 +01:00
..
.mvn/wrapper Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
gradle/wrapper Make Gradle Java projects compatible with Java 17+ 2024-11-21 16:12:55 +01:00
src feature: Adding a conjured item that should degrade twice as fast. 2025-02-11 15:37:15 +01:00
.editorconfig Add editorconfig file for Java 2021-05-21 10:40:09 +02:00
.gitignore add gradle build capabilities 2019-11-18 17:42:08 +01:00
build.gradle chore: sourceCompatibility 1.8 is obsolete 2025-02-10 12:01:44 +01:00
gradle.properties add convenience script to run texttests 2023-11-03 13:06:02 +00:00
gradlew add gradle build capabilities 2019-11-18 17:42:08 +01:00
gradlew.bat add gradle build capabilities 2019-11-18 17:42:08 +01:00
mvnw Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
mvnw.cmd Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
pom.xml updated junit.jupiter.version for java 2021-12-23 20:17:15 +01:00
README.md tweak docs 2023-11-03 16:31:14 +01:00
settings.gradle add gradle build capabilities 2019-11-18 17:42:08 +01:00
texttest_rig.py Improve texttest documentation 2023-11-03 10:32:29 +01:00

Gilded Rose starting position in Java

Run the TextTest Fixture from Command-Line

./gradlew -q text

Specify Number of Days

For e.g. 10 days:

./gradlew -q text --args 10

You should make sure the gradle commands shown above work when you execute them in a terminal before trying to use TextTest (see below).

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. What's unusual for the Java version is there are two executables listed in config.gr for Java. The first uses Gradle wrapped in a python script. Uncomment these lines to use it:

executable:${TEXTTEST_HOME}/Java/texttest_rig.py
interpreter:python

The other relies on your CLASSPATH being set correctly in environment.gr. Uncomment these lines to use it instead:

executable:com.gildedrose.TexttestFixture
interpreter:java