Move to Different Package
parent
acf3189967
commit
58ea1efa5e
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public class ATMMachine {
|
public class ATMMachine {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public interface ATMState {
|
public interface ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public class HasCard implements ATMState {
|
public class HasCard implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public class HasPin implements ATMState {
|
public class HasPin implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public class NoCard implements ATMState {
|
public class NoCard implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm;
|
package state;
|
||||||
|
|
||||||
public class NoCash implements ATMState {
|
public class NoCash implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public class ATMMachine {
|
public class ATMMachine {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public interface ATMState {
|
public interface ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public class HasCard implements ATMState {
|
public class HasCard implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public class HasPin implements ATMState {
|
public class HasPin implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public class NoCard implements ATMState {
|
public class NoCard implements ATMState {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package state.atm.with.singleton;
|
package state.with.singleton;
|
||||||
|
|
||||||
public class NoCash implements ATMState {
|
public class NoCash implements ATMState {
|
||||||
|
|
@ -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.BeforeAll;
|
||||||
import org.junit.jupiter.api.Test;
|
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.assertAll;
|
||||||
import static org.junit.jupiter.api.Assertions.assertSame;
|
import static org.junit.jupiter.api.Assertions.assertSame;
|
Loading…
Reference in New Issue