Skip to content

Commit

Permalink
요구사항 2 리팩토링
Browse files Browse the repository at this point in the history
1. 패키지 구조 변경
  • Loading branch information
Gobukgol committed May 14, 2020
1 parent 7f78f35 commit 6ba2282
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/racing/RacingGameApplication.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package racing;

import racing.domain.GameInformation;
import racing.domain.GameResult;
import racing.domain.RacingGame;
import racing.domain.common.RandomNumberGenerator;
import racing.dto.GameInformation;
import racing.view.InputView;
import racing.view.OutputView;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package racing.dto;
package racing.domain;

public class GameInformation {
private String[] namesOfCars;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/racing/domain/PhaseResult.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package racing.domain;

import racing.domain.car.CarResult;

import java.util.List;
import java.util.stream.Collectors;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/racing/domain/RacingGame.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package racing.domain;

import racing.domain.car.ParticipateCars;
import racing.domain.common.NumberGenerator;
import racing.dto.GameInformation;

public class RacingGame {
private final ParticipateCars participateCars;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package racing.domain;
package racing.domain.car;

public class Car {
private static final int MOVE_CONIDTION = 4;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package racing.domain;
package racing.domain.car;


public class CarResult implements Comparable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package racing.domain;
package racing.domain.car;

import racing.domain.common.NumberGenerator;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/racing/view/OutputView.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package racing.view;

import racing.domain.CarResult;
import racing.domain.GameResult;
import racing.domain.PhaseResult;
import racing.domain.car.CarResult;

import java.util.List;
import java.util.stream.Collectors;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/racing/domain/GameResultTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import racing.domain.car.CarResult;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/racing/domain/PhaseResultTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import racing.domain.car.CarResult;

import java.util.Arrays;
import java.util.LinkedHashMap;
Expand Down
1 change: 0 additions & 1 deletion src/test/java/racing/domain/RacingGameTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import racing.domain.common.FixedNumberGenerator;
import racing.dto.GameInformation;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package racing.domain;
package racing.domain.car;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package racing.dto;
package racing.domain.car;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import racing.domain.GameInformation;

import static org.assertj.core.api.Assertions.assertThatThrownBy;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package racing.domain;
package racing.domain.car;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit 6ba2282

Please sign in to comment.