From 58ea1efa5ed9e542a74520d80dd20f6804d5bf62 Mon Sep 17 00:00:00 2001 From: Hammy Date: Tue, 22 Dec 2020 08:44:19 +0000 Subject: [PATCH] Move to Different Package --- Design Patterns/src/state/{atm => }/ATMMachine.java | 2 +- Design Patterns/src/state/{atm => }/ATMState.java | 2 +- Design Patterns/src/state/{atm => }/HasCard.java | 2 +- Design Patterns/src/state/{atm => }/HasPin.java | 2 +- Design Patterns/src/state/{atm => }/Main.java | 2 +- Design Patterns/src/state/{atm => }/NoCard.java | 2 +- Design Patterns/src/state/{atm => }/NoCash.java | 2 +- .../src/state/{atm => }/with/singleton/ATMMachine.java | 2 +- .../src/state/{atm => }/with/singleton/ATMState.java | 2 +- .../src/state/{atm => }/with/singleton/HasCard.java | 2 +- .../src/state/{atm => }/with/singleton/HasPin.java | 2 +- Design Patterns/src/state/{atm => }/with/singleton/Main.java | 2 +- .../src/state/{atm => }/with/singleton/NoCard.java | 2 +- .../src/state/{atm => }/with/singleton/NoCash.java | 2 +- .../state/{atm => }/with/singleton/tests/ATMMachineTest.java | 4 ++-- 15 files changed, 16 insertions(+), 16 deletions(-) rename Design Patterns/src/state/{atm => }/ATMMachine.java (97%) rename Design Patterns/src/state/{atm => }/ATMState.java (89%) rename Design Patterns/src/state/{atm => }/HasCard.java (98%) rename Design Patterns/src/state/{atm => }/HasPin.java (98%) rename Design Patterns/src/state/{atm => }/Main.java (96%) rename Design Patterns/src/state/{atm => }/NoCard.java (97%) rename Design Patterns/src/state/{atm => }/NoCash.java (97%) rename Design Patterns/src/state/{atm => }/with/singleton/ATMMachine.java (97%) rename Design Patterns/src/state/{atm => }/with/singleton/ATMState.java (82%) rename Design Patterns/src/state/{atm => }/with/singleton/HasCard.java (97%) rename Design Patterns/src/state/{atm => }/with/singleton/HasPin.java (97%) rename Design Patterns/src/state/{atm => }/with/singleton/Main.java (94%) rename Design Patterns/src/state/{atm => }/with/singleton/NoCard.java (96%) rename Design Patterns/src/state/{atm => }/with/singleton/NoCash.java (96%) rename Design Patterns/src/state/{atm => }/with/singleton/tests/ATMMachineTest.java (94%) diff --git a/Design Patterns/src/state/atm/ATMMachine.java b/Design Patterns/src/state/ATMMachine.java similarity index 97% rename from Design Patterns/src/state/atm/ATMMachine.java rename to Design Patterns/src/state/ATMMachine.java index 086bdfa..34cc63b 100644 --- a/Design Patterns/src/state/atm/ATMMachine.java +++ b/Design Patterns/src/state/ATMMachine.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public class ATMMachine { diff --git a/Design Patterns/src/state/atm/ATMState.java b/Design Patterns/src/state/ATMState.java similarity index 89% rename from Design Patterns/src/state/atm/ATMState.java rename to Design Patterns/src/state/ATMState.java index 8c67ceb..3c52024 100644 --- a/Design Patterns/src/state/atm/ATMState.java +++ b/Design Patterns/src/state/ATMState.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public interface ATMState { diff --git a/Design Patterns/src/state/atm/HasCard.java b/Design Patterns/src/state/HasCard.java similarity index 98% rename from Design Patterns/src/state/atm/HasCard.java rename to Design Patterns/src/state/HasCard.java index 591bcbb..a8985b9 100644 --- a/Design Patterns/src/state/atm/HasCard.java +++ b/Design Patterns/src/state/HasCard.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public class HasCard implements ATMState { diff --git a/Design Patterns/src/state/atm/HasPin.java b/Design Patterns/src/state/HasPin.java similarity index 98% rename from Design Patterns/src/state/atm/HasPin.java rename to Design Patterns/src/state/HasPin.java index d47ca3d..6fa9a76 100644 --- a/Design Patterns/src/state/atm/HasPin.java +++ b/Design Patterns/src/state/HasPin.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public class HasPin implements ATMState { diff --git a/Design Patterns/src/state/atm/Main.java b/Design Patterns/src/state/Main.java similarity index 96% rename from Design Patterns/src/state/atm/Main.java rename to Design Patterns/src/state/Main.java index ef0e8d9..62ce1eb 100644 --- a/Design Patterns/src/state/atm/Main.java +++ b/Design Patterns/src/state/Main.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public class Main { public static void main(String[] args) { diff --git a/Design Patterns/src/state/atm/NoCard.java b/Design Patterns/src/state/NoCard.java similarity index 97% rename from Design Patterns/src/state/atm/NoCard.java rename to Design Patterns/src/state/NoCard.java index 2f05280..de6bc87 100644 --- a/Design Patterns/src/state/atm/NoCard.java +++ b/Design Patterns/src/state/NoCard.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public class NoCard implements ATMState { diff --git a/Design Patterns/src/state/atm/NoCash.java b/Design Patterns/src/state/NoCash.java similarity index 97% rename from Design Patterns/src/state/atm/NoCash.java rename to Design Patterns/src/state/NoCash.java index 0d5317c..e95f242 100644 --- a/Design Patterns/src/state/atm/NoCash.java +++ b/Design Patterns/src/state/NoCash.java @@ -1,4 +1,4 @@ -package state.atm; +package state; public class NoCash implements ATMState { diff --git a/Design Patterns/src/state/atm/with/singleton/ATMMachine.java b/Design Patterns/src/state/with/singleton/ATMMachine.java similarity index 97% rename from Design Patterns/src/state/atm/with/singleton/ATMMachine.java rename to Design Patterns/src/state/with/singleton/ATMMachine.java index 430c06b..dae9cc6 100644 --- a/Design Patterns/src/state/atm/with/singleton/ATMMachine.java +++ b/Design Patterns/src/state/with/singleton/ATMMachine.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public class ATMMachine { diff --git a/Design Patterns/src/state/atm/with/singleton/ATMState.java b/Design Patterns/src/state/with/singleton/ATMState.java similarity index 82% rename from Design Patterns/src/state/atm/with/singleton/ATMState.java rename to Design Patterns/src/state/with/singleton/ATMState.java index d55e79b..4e259a8 100644 --- a/Design Patterns/src/state/atm/with/singleton/ATMState.java +++ b/Design Patterns/src/state/with/singleton/ATMState.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public interface ATMState { diff --git a/Design Patterns/src/state/atm/with/singleton/HasCard.java b/Design Patterns/src/state/with/singleton/HasCard.java similarity index 97% rename from Design Patterns/src/state/atm/with/singleton/HasCard.java rename to Design Patterns/src/state/with/singleton/HasCard.java index ac5172c..59a2bd5 100644 --- a/Design Patterns/src/state/atm/with/singleton/HasCard.java +++ b/Design Patterns/src/state/with/singleton/HasCard.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public class HasCard implements ATMState { diff --git a/Design Patterns/src/state/atm/with/singleton/HasPin.java b/Design Patterns/src/state/with/singleton/HasPin.java similarity index 97% rename from Design Patterns/src/state/atm/with/singleton/HasPin.java rename to Design Patterns/src/state/with/singleton/HasPin.java index edc408f..9a078e1 100644 --- a/Design Patterns/src/state/atm/with/singleton/HasPin.java +++ b/Design Patterns/src/state/with/singleton/HasPin.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public class HasPin implements ATMState { diff --git a/Design Patterns/src/state/atm/with/singleton/Main.java b/Design Patterns/src/state/with/singleton/Main.java similarity index 94% rename from Design Patterns/src/state/atm/with/singleton/Main.java rename to Design Patterns/src/state/with/singleton/Main.java index abd21f9..990ded5 100644 --- a/Design Patterns/src/state/atm/with/singleton/Main.java +++ b/Design Patterns/src/state/with/singleton/Main.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public class Main { public static void main(String[] args) { diff --git a/Design Patterns/src/state/atm/with/singleton/NoCard.java b/Design Patterns/src/state/with/singleton/NoCard.java similarity index 96% rename from Design Patterns/src/state/atm/with/singleton/NoCard.java rename to Design Patterns/src/state/with/singleton/NoCard.java index cdf8d51..ee168a9 100644 --- a/Design Patterns/src/state/atm/with/singleton/NoCard.java +++ b/Design Patterns/src/state/with/singleton/NoCard.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public class NoCard implements ATMState { diff --git a/Design Patterns/src/state/atm/with/singleton/NoCash.java b/Design Patterns/src/state/with/singleton/NoCash.java similarity index 96% rename from Design Patterns/src/state/atm/with/singleton/NoCash.java rename to Design Patterns/src/state/with/singleton/NoCash.java index d0e3ebb..1c205c4 100644 --- a/Design Patterns/src/state/atm/with/singleton/NoCash.java +++ b/Design Patterns/src/state/with/singleton/NoCash.java @@ -1,4 +1,4 @@ -package state.atm.with.singleton; +package state.with.singleton; public class NoCash implements ATMState { diff --git a/Design Patterns/src/state/atm/with/singleton/tests/ATMMachineTest.java b/Design Patterns/src/state/with/singleton/tests/ATMMachineTest.java similarity index 94% rename from Design Patterns/src/state/atm/with/singleton/tests/ATMMachineTest.java rename to Design Patterns/src/state/with/singleton/tests/ATMMachineTest.java index 42795d1..9fa7f03 100644 --- a/Design Patterns/src/state/atm/with/singleton/tests/ATMMachineTest.java +++ b/Design Patterns/src/state/with/singleton/tests/ATMMachineTest.java @@ -1,8 +1,8 @@ -package state.atm.with.singleton.tests; +package state.with.singleton.tests; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import state.atm.with.singleton.*; +import state.with.singleton.*; import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertSame;