mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-16 06:10:35 +00:00
Re-introduce the com.gildedrose package for the Java example. Java isn't able to reference classes in the default packge, so if you're refactoring and putting your refactored code in packges, you can't refer back to the original code (i.e. Item) from them. Ensure the TextTest reference is also updated to the new location of the test.
This commit is contained in:
parent
a2edc93325
commit
7158270109
@ -1,3 +1,4 @@
|
|||||||
|
package com.gildedrose;
|
||||||
class GildedRose {
|
class GildedRose {
|
||||||
Item[] items;
|
Item[] items;
|
||||||
|
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
package com.gildedrose;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
package com.gildedrose;
|
||||||
public class Item {
|
public class Item {
|
||||||
|
|
||||||
public String name;
|
public String name;
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
package com.gildedrose;
|
||||||
|
|
||||||
public class TexttestFixture {
|
public class TexttestFixture {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -4,7 +4,7 @@ full_name:Gilded Rose Refactoring Kata
|
|||||||
default_checkout:/Users/emily/training_materials/Refactoring-Katas/GildedRose
|
default_checkout:/Users/emily/training_materials/Refactoring-Katas/GildedRose
|
||||||
|
|
||||||
# Settings for the Java version
|
# Settings for the Java version
|
||||||
executable:TexttestFixture
|
executable:com.gildedrose.TexttestFixture
|
||||||
interpreter:java
|
interpreter:java
|
||||||
# note you'll also need to update the file environment.gr with your classpath if you keep your classfiles somewhere unusual
|
# note you'll also need to update the file environment.gr with your classpath if you keep your classfiles somewhere unusual
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user