mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-13 04:42:23 +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 {
|
||||
Item[] items;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
package com.gildedrose;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
@ -1,3 +1,4 @@
|
||||
package com.gildedrose;
|
||||
public class Item {
|
||||
|
||||
public String name;
|
||||
@ -1,3 +1,4 @@
|
||||
package com.gildedrose;
|
||||
|
||||
public class TexttestFixture {
|
||||
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
|
||||
|
||||
# Settings for the Java version
|
||||
executable:TexttestFixture
|
||||
executable:com.gildedrose.TexttestFixture
|
||||
interpreter:java
|
||||
# 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